How to increase Neo4j's maximum file open limit (ulimit) in Ubuntu?
I am using Debian but this solution should work fine with Ubuntu.
You have to add a line in the neo4j-service script.
Here is what I have done :
nano /etc/init.d/neo4j-service
Add « ulimit –n 40000 » just before the start-stop-daemon line in the do_start section
Note that I am using version 2.0 Enterprise edition.
Hope this will help you.
How to increase the open files user limit in boxfuse?
Boxfuse Client 1.26.7.1312 and up now automatically adjust the user limits to match the kernel limits. See https://cloudcaptain.sh/docs/releasenotes#1.26.7.1312 and https://cloudcaptain.sh/docs/payloads/springboot#sysctl
Simply upgrade with boxfuse -u
and you should be good to go.
How to increase maximum open file limit in Red Hat Enterprise Linux 5?
I don't know what is true RHEL way, but you can change the limit using sysctl:
$ sysctl -w fs.file-max=100000
To make the change permanent, add next string to /etc/sysctl.conf:
fs.file-max = 100000
then apply the change using command
$ sysctl -p
How to change *default* open-file limit on Ubuntu 12.4
1. check system wide settings: /etc/security/limits.conf
A very no limitations config file:
* soft nofile 102400
* hard nofile 102400
* soft nproc 102400
* hard nproc 102400
root hard nofile 102400
root soft nofile 102400
2. check program auto startup script and its settings
program auto startup script is a bit different, it has its own settings, or it will use the default 1024.
Example: program supervisor(Test on Ubuntu 12/14)
/etc/init.d/supervisor - auto startup script
/etc/init/supervisor.conf - auto startup script settings
You can add ulimit command in /etc/init.d/supervisor to set the limits, or just add limits settings in /etc/init/supervisor.conf. /etc/init/supervisor.conf example:
limit nofile 102400 102400
3. check program specific settings
Some program has its own limits. Like supervisor, it has its own file/process limits, so you must also add minfds and minprocs settings on its config files /etc/supervisor/supervisord.conf. Some other program just use the system or auto startup settings.
Raise number of files a process can open beyond 2^20
Okay, I got it. You can't just set fs.file-max
. You also have to set fs.nr_open
, which has a default value of 2^20. I also removed the /etc/pam.d/common-session
I created and commented out the session required pam_limits.so
line in /etc/pam.d/sudo
.
Related Topics
How to Monitor a Complete Directory Tree for Changes in Linux
Self Modifying Code Always Segmentation Faults on Linux
How to Automatically Add User Account and Password with a Bash Script
How to Perform a For-Each Loop Over All the Files Under a Specified Path
Why Exit Code 141 with Grep -Q
How to Use Gdb in Eclipse for C/C++ Debugging
How to Recall the Argument of the Previous Bash Command
Makefile That Distinguishes Between Windows and Unix-Like Systems
Why Child Process Still Alive After Parent Process Was Killed in Linux
Is It Ok to Use the Same Input File as Output of a Piped Command
Creating Temporary Files in Bash
Install Mono and Monodevelop on Centos 5.X/6.X
Docker Command Can't Connect to Docker Daemon
Colour Highlighting Output Based on Regex in Shell
How to Compile and Link a 32-Bit Windows Executable Using Mingw-W64
How to Convert Linux 32-Bit Gcc Inline Assembly to 64-Bit Code