Questions tagged [limits]
82 questions
178
votes
8 answers
Filename length limits on linux?
Are there any filename or path length limits on Linux?

readonly
- 3,359
- 4
- 26
- 23
38
votes
5 answers
Set max file limit on a running process
I have a long running process that is eventually going to hit the max open file limit. I know how to change that after it fails, but is there a way to change that for the running process, from the command line?

kāgii
- 481
- 1
- 4
- 4
19
votes
2 answers
/etc/security/limits.conf soft nproc limit appears to be ignored
My MongoDB database was running into problems under load, with the following errors spamming the logs:
[initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable
[initandlisten] can't create new thread, closing connection
I've…

John M
- 333
- 1
- 3
- 7
16
votes
3 answers
Is there a hard limit to the number of files a directory can have?
Wondering if there is a limit to the number of files that can be stored inside a directory, in CentOS 6. There is one particular directory which could potentially have millions of subdirectories.
Storage capacity aside, is there a limit to the…

Juan Carlos Coto
- 677
- 2
- 6
- 13
14
votes
5 answers
systemd, per-user cpu and/or memory limits
There is similar question: Cgroups, limit memory per user, but the solution doesn't work in "modern" systems, where cgroups hierarchy is
managed by systemd.
Straightforward solution — templating user-UID.slice — won't work, because it is not…

intelfx
- 311
- 1
- 2
- 11
9
votes
3 answers
Linux /etc/security/limits.conf explanation
Can anyone explain (or know of a source) that provides details about the items in limits.conf? The man page doesn't give much detail.
For example it says:
rtprio
maximum realtime priority allowed for non-privileged processes (Linux 2.6.12 and…

myforwik
- 93
- 1
- 1
- 3
9
votes
2 answers
Reload /etc/security/limits.conf
I would like to:
make a soft 64GB limit for resident memory (so inexperienced users will get their run-amok processes killed, but experienced users can raise the limit for memory hungry processes)
raise the hard limit for nofile, but keep the soft…

Ole Tange
- 2,946
- 6
- 32
- 47
8
votes
2 answers
Monitor open files limits, etc
We've been hitting the max open files limit on a few services recently. There are also a bunch of other limits in place. Is there a way to monitor how close processes are to these limits so we can be alerted when it's time to either up the limits or…

moinudin
- 205
- 1
- 3
- 7
6
votes
3 answers
How to use iptables or tc to limit packets per client.
I have some problem network clients which send data too fast.
I want to slow them down, using iptables, or possibly tc.
I've seen iptables solutions like:
sudo iptables -A INPUT -m state --state RELATED,ESTABLISHED -m limit --limit 50/second…

fadedbee
- 2,068
- 5
- 24
- 36
5
votes
1 answer
Limit number of concurrent users switching to root account?
This is for Ubuntu 14.04 and Centos 7.
I need to limit the number of users actively running as root. i.e. Logged in as root on the CLI.
Basically, I want only one user at a time to be able to run commands as root. The purpose here is auditing.
I…

JDS
- 2,598
- 4
- 30
- 49
5
votes
1 answer
How to apply memory limits to all cron jobs?
On a shared server (Debian Jessie), there are some memory limits (and other limits, like number of processes) that apply for a group of users, configured in /etc/security/limits.conf.
It seems that those limits do not apply to processes started by…

moritz
- 151
- 1
- 5
5
votes
2 answers
FAT32 limit on total length of all filenames in a directory combined?
I've kind of a weird problem on one of our customer's backup harddrives: The harddrive is formatted in FAT32 and last night our backup jobs threw an error on a subdirectory, claiming that it couldn't copy the files that it had to copy.
I checked the…

Steffen Winkler
- 259
- 1
- 4
- 15
3
votes
1 answer
High CPU usage by WMIPRVSE.EXE process at regular intervals in Windows
I noted eventually at production server with almost 200.000 handle and wmiprvse.exe process with high cpu usage.
The server has approximately 200 processes running on Windows server 2012-R2 (virtualized with VMWare) with 12 processors and 12.4 Gb…

lsalamon
- 46
- 1
- 4
3
votes
1 answer
Ubuntu: Unable to change limit for number of open files for root (all users), what could be the reason?
I Have an Ubuntu 16.04 server.
When I run as root, ulimit -n I get 1024.
When I run it as my user I get 65535.
But I want to make sure that all users, including root has the open files limit set to 65535.
The problem is that I've done everything I…

Itai Ganot
- 10,644
- 29
- 93
- 146
3
votes
2 answers
Find out limits of other user
On CentOS 6.4 / 64 bit - how to find the limits of the user "nobody"?
Because I can not just su - nobody and call ulimit -a:
# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
# su - nobody
This account is currently not…

Alexander Farber
- 714
- 4
- 17
- 38