ulimit gets or sets the upper limit for resources available to the current shell.
Questions tagged [ulimit]
356 questions
0
votes
2 answers
Openfire process does not follow ulimit nofiles value in limits.conf
I have the following values set in my
/etc/security/limits.conf
* hard nofile 1048576
* soft nofile 1048576
openfire hard nofile 1048576
openfire soft nofile 1048576
I expect the openfire process to set its…

jeffsia
- 369
- 3
- 8
- 19
0
votes
1 answer
Ulimit chnage after reboot as no effect
I have changed /etc/security/limits.com and rebooted the machine remotely, However, after the boot, the nproc parameter has still the old value.
[ost@compute-0-1 ~]$ cat /etc/security/limits.conf
* - memlock -1
* - stack -1
* - …

mahmood
- 23,197
- 49
- 147
- 242
0
votes
1 answer
Why doesn't ulimit -t kill a process sleeping beyond the limit with time.sleep?
I am trying to limit the CPU usage of one python script using ulimit -t. The script contains one time.sleep() statement and it is not killed after the specified time limit. Here is the simplified python script named test.py:
import time
while…

Xuan Tung Vu
- 972
- 9
- 18
0
votes
1 answer
MongoDB "open files limit" error during repairDatabase
I'm trying to do repairDatabase of MongoDB on Ubuntu 16.04 but it fails with an error "errno:24 Too many open files" ("code" : 16818).
I've raised "ulimit -n" up to 1024000, restarted the server, but still getting the same error.
It does not seem…

Artico
- 101
- 6
0
votes
1 answer
Ulimit for managed server and other java processes
Nn a AIX interface, ulimit is defined across two stages,
One under etc/security
-One under $WL_HOME/common/bin/commEnv.sh
Need to understand, the java objects coming spawning from managed servers uses which ulimit ?

Amit Baid
- 107
- 2
- 3
- 12
0
votes
1 answer
In docker run, how to set multi-value in --ulimit
$ sudo docker run --ulimit fsize=10240 cpu=12 -it ubuntu /bin/bash
docker: Error parsing reference: "cpu=12" is not a valid repository/tag.
See 'docker run --help'.
$ sudo docker run --ulimit fsize=10240 --ulimit cpu=12 -it ubuntu…

h22q
- 3
- 3
0
votes
1 answer
Where is the default max locked memory value coming from?
So on one system, I have values that are pretty wide open:
$ ulimit -a | grep mem
max locked memory (kbytes, -l) 40000
max memory size (kbytes, -m) unlimited
virtual memory (kbytes, -v) unlimited
Another system has much more…

Dan McGee
- 161
- 1
- 8
0
votes
0 answers
prlimit and ulimit -u does not seem to work
I am writing a simple code which sets the Nproc prlimit to 0. I then try to fork a process which should generate an error. But the child is created. I tried creating multiple children and there seems to be no error message ever.
import…
0
votes
0 answers
User limits for a Kerberos secured Hadoop cluster
I am running map reduce jobs in a kerberos secured hadoop cluster.
Distribution is Hortonworks.
Some jobs that were working fine before, happen to fail since we set kerberos.
We reach the ulimit -u (nbproc) for the applicative user that launches…

rgirodon
- 1
0
votes
0 answers
Cancelling ulimit bounds
I am writing isolated sandbox for untrusted code so I am looking for safe way to isolate code execution. Also I need a way to collect code stats (memory usage, cpu usage, etc.)
I have tried Docker but Stats API can stream only with a second period…

Nikita Lapkov
- 121
- 1
- 6
0
votes
1 answer
Android system wide nofiles(descriptors) limit
Is there any way to set system wide nofiles(descriptors) limit - like editing /etc/security/limits.conffile in linux?
I have root access to system - so access rights is not problem

Art
- 903
- 9
- 20
0
votes
0 answers
What is going to happen if my pending signals limit is exceeded?
I'm blocking certain signals in my process, and I'm wondering what is going to happen if the pending signals limit is exceeded.
Do the new ones get lost or is my process going to crash?

Arapajoe
- 161
- 1
- 1
- 14
0
votes
1 answer
How to increase carbon-cache nofile limit on Debian 7?
I'm running Graphite 0.9.12 on a Debian 7 server.
Recently I found errors in carbon-cache's log, saying "too many open files". According to carbon-cache's website, I need to increase nofile limit for carbon-cache.…

Liu Yunao
- 61
- 4
0
votes
1 answer
lsof outputs greater than ulimit -Hn
The following commands run in a single session shows lsof size greater than ulimit supported size. How is this possible?
$ lsof | wc -l
226863
$ ulimit -n
200000
$ ulimit -Hn
200000

Talespin_Kit
- 20,830
- 29
- 89
- 135
0
votes
2 answers
Allocate memory to a process that other process can not use in linux
To limit memory resource for particular process we can use ulimit as well as cgroup.
I want to understand that if using cgroup, I have allocated say ~700 MB of memory to process A, on system having 1 GB of RAM, and some other process say B,…

SD.
- 1,432
- 22
- 38