Questions tagged [ulimit]
181 questions
2
votes
1 answer
ulimit equivalent for all of a user's processes?
I am the unpopular guy who has brought down our high-memory linux machine twice this past week because some processes I have been running ate up way more ram then expected. One way around this would be to set a per process ulimit so if each process…

John St. John
- 123
- 5
2
votes
1 answer
fork: Cannot allocate memory
I'm having some problem with a couple of servers having quite much amount of connections.
The servers just hangs for new network connections (although the functionality of load balancing in haproxy seems to work correct). I can not connect to ssh,…

krogon
- 21
- 1
- 2
2
votes
1 answer
CentOS7: su /bin/bash: Resource temporarily unavailable
Whenever I try to change to testuser, I get resource temporarily unavailable message. The nproc and nofile limits are set to 65k. testuser runs multiple java programs.
Did not exceed the nproc and nofile values(verified using ps and lsof commands)…

vire
- 21
- 1
- 3
1
vote
2 answers
Apache2 full CPU Usage after exiting with error ('unable to create worker thread')
I've got my Apache2.4 (mpm_worker) instance exiting with following log:
[Mon May 27 11:27:33.196177 2019] [core:warn] [pid 567365:tid 139765793668032] AH00045: child process 567368 still did not exit, sending a SIGTERM
[Mon May 27 11:27:35.198179…

Sunchezz
- 61
- 1
- 6
1
vote
0 answers
Why open files limits set correctly on dedicated server but not on KVM machines?
I have set open files for all users on a dedicated server A in /etc/security/limits.conf like below:
* hard nofile 1048576
* soft nofile 983040
And in /etc/pam.d/common-session I have loaded limits module like below:
session …

Alireza
- 583
- 4
- 9
- 27
1
vote
2 answers
Is it safe to set a very high ulimit for a process?
I currently have the following entry in /etc/security/limits.d/90-nproc.conf based on Mongo DB's recommended ulimit settings.
mongod soft nofile 64000
mongod soft nproc 64000
I need to massively increase the number of permitted…

Tim
- 584
- 2
- 9
- 20
1
vote
0 answers
why soft limit in /proc/{pid}/limits is different with ulimit -Sn
I found hard limit value in /proc/{pid}/limits match the output of ulimit -Hn while soft limit value doesn't
my example output:
tomcat@myLinux:/home/azhang$ ulimit -Sn
1024
tomcat@myLinux:/home/azhang$ ulimit -Hn
1048576
tomcat@myLinux:/home/azhang$…

actan
- 111
- 4
1
vote
0 answers
change maximum number of open files for user on solaris 9
i need to change ulimit -n for the user permanently, on solaris 10 you can do
projadd -K "process.max-file-descriptor=(basic,8192,deny)" proj.files
but on solaris 9 projadd or projmod doesn't have -K key.…
1
vote
2 answers
Max open files (MySQL 5.0 on FreeBSD 7.0)
I'm getting "Can't open file: './databasename/tablename.frm' (errno: 24)" errors from MySQL but as far as I can tell, I've set the necessary limits far higher than I need.
Other than the kern.maxfiles and kern.maxfilesperproc sysctls and the…

Conor McDermottroe
- 948
- 1
- 7
- 17
1
vote
1 answer
Where is default soft limit config file debian?
I have a process running as root that is capped to 1024 ( in reality lsof shows me up to 1031 for it) open files but I don't find the file to modify this limit.
Here is the output of cat /proc/PID/limits to confirm it
#cat /proc/32531/limits
…

shrimpdrake
- 111
- 4
1
vote
1 answer
Could not set limit for 'nofile' - "Operation not permitted" in a LXD unprivileged container
I am running a centos7 unprivileged LXD container on a ubuntu 17.04 host.
I have a problem setting ulimit for NOFILE inside the container, if it is running in unprivileged mode.
Bellow are the steps to reproduce:
$ lxc launch images:centos/7/amd64…

Mircea Vutcovici
- 17,619
- 4
- 56
- 83
1
vote
0 answers
ulimit not reflected for Jenkins master which is running on Red Hat
I already saw "ulimit not reflected for jenkins slave" and the steps did not work for me. Please, help. I am using Jenkins on Red Hat and I have the same problem.
I set ulimit to 99999 and when I check the limit with command ulimit -n I get 99999…

user2056600
- 29
- 2
1
vote
0 answers
Nginx at startup does not have fd limit set in /etc/security/limits.conf
I have the following configuration for increasing the number of file descriptors available to processes of all users.
cat /etc/security/limits.conf
* hard nofile 65536
* soft nofile 65536
When the machine starts up, nginx is set to start as a…

Anas Alkhatib
- 111
- 2
1
vote
1 answer
Centos Monit ulimit not working
Centos 5.9 I have set the below in /etc/security/limits.conf but when mMonit starts my processes the ulimit is still 1024. If I do ulimit -a it correctly shows 500000 as max open files. In /etc/sysctl.conf I have fs.file-max = 512000. Also root is…

jaseUK
- 173
- 8
1
vote
0 answers
Unable to access Ubuntu EC2 ssh, Connection to Server-IP Closed
My server was having error due to high traffic and it showed this message often when I access the website
Error: EMFILE: too many open files, open '/home/ubuntu/chat2/public/style.css'
at Error (native)
To fix this, I googled and tried to…

Faizan
- 111
- 3