"ulimit" is a shell command for setting limits on what resources a process can use
Questions tagged [ulimit]
95 questions
201
votes
4 answers
How do I increase the open files limit for a non-root user?
This is happening on Ubuntu Release 12.04 (precise) 64-bit Kernel Linux 3.2.0-25-virtual I'm trying to increase the number of open files allowed for a user. This is for my eclipse java application where the current limit of 1024 is not enough.…
iCode
- 2,221
- 2
- 15
- 15
35
votes
3 answers
How to increase max open files limit on Ubuntu 18.04?
I've run ulimit -n 65536 , added the following lines to /etc/security/limits.conf : * soft nofile 65536 * hard nofile 65536 alix soft nofile 65536 alix hard nofile 65536 root soft nofile 65536 root hard nofile 65536 And added session required…
Alix Axel
- 1,083
24
votes
4 answers
Too many open files
when i open Lutris and then LOL client , this happening. And game never work good. I tried many things but never can change the open file limit. How can fix this ? Waiting on children Waiting on children eventfd: Too many open files eventfd: Too…
FullMetaLJacket
- 241
20
votes
1 answer
core file size with ulimit
My question is probably not related to Ubuntu in particular, but since my desktop running this OS, I came to this forum. I am trying to change the core file size using ulimit -c command as follows: $ ulimit -a core file size (blocks, -c) 0 data seg…
maximb
- 301
15
votes
3 answers
Why it cannot get past 4096 max open files for non-root user?
I can't seem to increase the nofile limit for non-root users on Ubuntu 14.04, despite following every StackExchange answer related to this problem. So far I have: $ cat /etc/security/limits.d/custom.conf @www-data hard nofile 50000 @www-data soft…
Caffeine Coma
- 471
- 2
- 4
- 11
12
votes
1 answer
Permanently raising nofile limits in Ubuntu 14.04 LTS
I cannot seem to figure out what exactly is needed to allow the maximum number of file descriptors to be raised permanently for all users. /etc/security/limits.conf : root hard nofile 1500000 root soft nofile 1000000 root hard nproc 15000 root soft…
w3rthl3ss
- 225
12
votes
1 answer
How to set a memory limit for a specific process?
I tried to execute mpiexec -16 ... on a 384 GB RAM server, but it induced OOM Killer and was aborted. How can I set a memory limit for mpiexec execution? I know ulimit , but it might affect other processes. Thank you.
Benben
- 225
11
votes
1 answer
How to remove limit on core dump file size
I would like to increase the maximum size limit for core dump files as a regular user. Using bash , I can set it like this: $ ulimit -c 100 which works well the first time I set it. However, the next time I use this command, I can only set this…
Peter Bašista
- 211
9
votes
2 answers
Downside of unlimited core size? Where do core files go?
I have an upstart job that occasionally crashes with a segmentation fault, and I have a few questions about core dumps. First, should I add a stanza: limit core unlimited unlimited Is there a downside to allowing unlimited core sizes? Would a finite…
brooks94
- 383
9
votes
3 answers
Is the kilobyte used by time and ulimit commands either 1000 (SI) or 1024 (old school) bytes?
From man time : M Maximum resident set size of the process during its lifetime, in Kilobytes. From ulimit -a : max memory size (kbytes, -m) unlimited But a "kilobyte" may mean either 1000 or 1024 bytes . I guess here it is a round 1024, but I want…
abukaj
- 485
8
votes
2 answers
Permanently set process limit
How do you permanently set process limit per user ( ulimit -u ) in Ubuntu?
redman
- 233
8
votes
1 answer
Fork bomb protection not working : Amount of processes not limited
I just came to realize that my system is not limiting the amount of processes per user properly thus not preventing a user from doing a fork-bomb and crashing the entire system: user@thebe:~$ cat /etc/security/limits.conf | grep user user hard nproc…
d_inevitable
- 1,922
7
votes
1 answer
Ulimit and make_sock errors
I'm trying to configure Redmine for Ubuntu 11.10, using this method Redmine for 11.10 but ran into some crazy snag somewhere with apache. Upon issuing service apache2 restart I get the following errors. * Restarting web server apache2 ulimit: 88:…
ehime
- 546
- 1
- 4
- 16
7
votes
2 answers
nofile ulimit -n on Ubuntu 14.04 LTS
➜ sudo sysctl -a|grep file fs.file-max = 2037581 fs.file-nr = 2784 0 2037581 ➜ ~ cat /proc/sys/fs/file-max 2037581 ➜ ~ cat /proc/sys/fs/file-nr 2720 0 2037581 /etc/security/limits.conf * hard nofile 2037581 * soft nofile 2037581 root hard nofile…
sharewind
- 171
7
votes
1 answer
What is a safe ulimit ceiling?
This is the output of ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 16382 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m)…
theTuxRacer
- 16,543