Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I increase the "max file open" #91

Open
BearGrass opened this issue Jul 3, 2020 · 1 comment
Open

Can I increase the "max file open" #91

BearGrass opened this issue Jul 3, 2020 · 1 comment

Comments

@BearGrass
Copy link

I increase the system max file open in LINUX success,but my process always 1024
#cat /proc/4918/limits
Limit Soft Limit Hard Limit Units
...
Max open files 1024 1024 files
...

#ulimit -n
655350

@bunjiboys
Copy link

The proc / sysctl limit is the global limit, you may need to add a config to the /etc/limits.d/ or /etc/security/limits.d/ folder for your specific user.

For example if your username is beargrass you could add a new file to the limits.d directory called beargrass.conf

# principal  type  item    value
beargrass    soft  nofile  655350

You can also increase the limits for an entire group by user @groupname instead of the username.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants