Questions tagged [ulimit]
181 questions
17
votes
2 answers
nginx uLimit 'worker_connections exceed open file resource limit: 1024'
I keep getting this error in nginx/error.log and its driving me nuts:
8096 worker_connections exceed open file resource limit: 1024
I've tried everything I can think of and cant figure out what is limiting nginx here. Can you tell what am I…

Neel
- 1,441
- 7
- 21
- 35
16
votes
3 answers
How can I permanently set ulimit -n 8192 in Centos 7?
I would like to permanently set the open file limit for all users in Centos 7, but there seems to be a lot of conflicting information out there on the googles.

jestro
- 271
- 1
- 2
- 7
16
votes
3 answers
Ulimit file descriptor limits not being applied for particular process
I recently checked one of our redis processes to what ulimits where applied using:
cat /proc//limits
And was suprised to learn that is was at the low default value:
Limit Soft Limit Hard Limit
Max…

UpTheCreek
- 1,628
- 10
- 32
- 48
15
votes
4 answers
Cannot switch, ssh to specific user: su: cannot set user id: Resource temporarily unavailable?
/var/log/secure:
su: pam_keyinit(su-l:session): Unable to change UID to 500 temporarily
su: pam_keyinit(su-l:session): Unable to change UID to 500 temporarily
su: pam_unix(su-l:session): session opened for user adtech by root(uid=0)
su:…

quanta
- 51,413
- 19
- 159
- 217
15
votes
4 answers
How can lsof report a higher number of open files than what ulimit says should be allowed?
How can lsof report more open files than what ulimit says is the limit?
prod_web3(i-ca0b05aa):~$ sudo lsof | wc -l
4399
prod_web3(i-ca0b05aa):~$ ulimit -n
1024

Adam Nelson
- 1,647
- 3
- 14
- 12
14
votes
4 answers
ulimit for windows
Are there true ulimit for windows?
I'm finding ways/programs how to prevent one program eating 100% cpu.
Thanks.
thelay
13
votes
2 answers
understanding max file descriptors for linux and nginx, and best value for worker_rlimit_nofile
I got the seemingly-common "too many file descriptors" error on nginx. After much searching, the solution is clearly to increase the number of file descriptors available to nginx. But there isn't enough info out there for me to feel comfortable…

John Bachir
- 2,364
- 7
- 29
- 37
12
votes
2 answers
What is the impact of increasing "nofile" limits in /etc/security/limits.conf?
I've found a number of articles describing how to increase the limits for the number of open files through /etc/security/limits.conf, but I don't understand the impact of doing so. Many times I see people updating 1024 to 2048. Ok, those file…

Adam
- 276
- 1
- 3
- 8
12
votes
1 answer
Difference between ulimit, launchctl, sysctl?
When managing the limits of the operating system (specifically OSX), what is the difference and overlap between the functionality and history of these three tools:
ulimit
launchctl, launchd
sysctl
I found it confusing to adjust the maximum…

Eric
- 221
- 1
- 3
11
votes
6 answers
Increase file ulimit for the asterisk daemon
How do i increase the file limit for the asterisk daemon on my ubuntu computer? When I login as root and use the ulimit, it says unlimited already. I can't login as asterisk because that user doesn't have shell access, it's just a daemon.
I can…

John
- 7,343
- 23
- 63
- 87
10
votes
2 answers
How do ulimit settings impact Linux?
Lately, I had a EAGAIN error with some async code that made me take a closer look at ulimit settings. While I clearly understand certain limits, such as nofile, others are still quite confused to me.
It's quite easy to find resources on how to set…

Buzut
- 815
- 3
- 10
- 23
9
votes
4 answers
Why does redis report limit of 1024 files even after update to limits.conf?
I see this error at the top of my redis.log file:
Current maximum open files is 1024. maxclients has been reduced to
4064 to compensate for low ulimit.
I have followed these steps to the letter (and rebooted):
Moreover, I see this when I run…

esilver
- 335
- 2
- 5
- 11
9
votes
5 answers
How to set ulimits for mongod?
How do I set ulimits for the mongod process/user on CentOS?
I've read the official documentation but it doesn't provide OS-specific instructions.
I need to set ulimit -u 64000 and need this to persist after reboot.
I'm running CentOS 5.5 although…

Tim
- 584
- 2
- 9
- 20
9
votes
1 answer
Changing open-files-limit in mysql 5.5
I'm having an issue with mysql 5.5 running on Ubuntu 12.04 with the open-files-limit parameter.
I recently noticed some problems due to the 1024 limit, and actually the main system limit was set to 1024, so I modified /etc/security/limits.conf with…

davidv
- 91
- 1
- 1
- 2
9
votes
2 answers
What are the ramifications of increasing the maximum # of open file descriptors
Ubuntu seems to have a default limit of 1024 open file descriptors. Nginx was complaining during some load testing I was doing that the maximum number has been reached and the server basically was unusable.
I'm testing a service that will have to…

codecompleting
- 513
- 1
- 4
- 14