Neo4j WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual

前端 未结 8 1632
孤街浪徒
孤街浪徒 2020-12-13 17:17

I installed Neo4j on Ubuntu 12.04 using these instructions: http://www.neo4j.org/download/linux

wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt         


        
相关标签:
8条回答
  • 2020-12-13 18:03

    In the /etc/security/limits.conf file you need to set the limits for the user as whom you will run the neo4j server so if the user you want to use is root, then use root but it is probably bad idea, the settings:

    neo4j   soft    nofile  40000 
    neo4j   hard    nofile  40000
    

    would work if you where to add neo4j user, I had some problems with that so i just set these to my default user which is 'bob'.

    bob   soft    nofile  40000 
    bob   hard    nofile  40000
    

    and then I just started the neo4j logged in as bob.

    0 讨论(0)
  • 2020-12-13 18:05

    As mentioned in this issue comment and fixed by this commit, since Neo4J 3.1,

    you can add a line in /etc/default/neo4j:

    NEO4J_ULIMIT_NOFILE=60000
    

    to set the ulimit setting (60000 open files) for the service.

    There is no need anymore to use /etc/security/limits.conf on debian to set the number of open files.

    0 讨论(0)
提交回复
热议问题