Currently ulimit -n
displays 10000
. I want to increase it to 40000
. I edited /etc/sysctl.conf and put fs.file-max=40000
. I also edited /etc/security/limits.conf
and updated the hard and soft values. But still ulimit shows 10000
. Having made all these changes, I rebooted my laptop. I have access to the root password.
usr_name@usr_name-lap:/etc$ /sbin/sysctl fs.file-max fs.file-max = 500000
Added the following lines to /etc/security/limits.conf
-
* soft nofile 40000 * hard nofile 40000
I also added the following line to /etc/pam.d/su
-
session required pam_limits.so
I tried all possible ways, as it was given in other forums, but I can reach the maximum limit of 10000
, and not beyond this. What could be the problem?
I am making this change because neo4j
gives the maximum permissible open file limits.
linux neo4j ubuntu limit ulimit
theharshest Feb 02 '14 at 19:58 2014-02-02 19:58
source share