I'm using neo4j 1.8M06 on ubuntu. When I start it, I get this warning:
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended.
what does it mean? If it is required, how can I adjust this setting?
I've seen this thread on the issue but still could not understand it.
It means that you can open only '1024'(default) files for writing. But NEO4J
recommends this value to be 40K
. This can be achieved with the fix as described below.
Edit /etc/security/limits.conf
and add these two lines:
root soft nofile 40000
root hard nofile 40000
The neo4j recommends "neo4j" in place of "root" here. That won't work.
You also need to edit /etc/pam.d/common-session*
and add the following line to the end:
session required pam_limits.so
And yes, finally you've to restart NEO4J.
sudo service neo4j-service restart
Reference: NEO4J server setup
For now(neo4j 3.1.1), neo4j has the official solution for this.
Most Neo4j configuration goes into neo4j.conf. Some package-specific options are set in /etc/default/neo4j.
Add this config to /etc/default/neo4j
NEO4J_ULIMIT_NOFILE=40000
then restart the neo4j service to get it work.
sudo service neo4j start
see
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With