Questions tagged [limits]
82 questions
197
votes
8 answers
Filename length limits on linux?
Are there any filename or path length limits on Linux?
readonly
- 3,579
39
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
- 491
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
17
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
- 679
16
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
- 331
12
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
- 3,186
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
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
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,168
6
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
- 269
- 2
- 4
- 15
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,678
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
4
votes
2 answers
When NOT to use virtualisation?
When virtualisation was new, we tried to virtualise everything, but then we noticed use cases where the our virtual machines were much slower than a bare metal.
For us, we use the following rules when deciding not to virtualise:
Network IO…
Nils
- 7,815
4
votes
4 answers
Setup "open files" limit in Linux per user. Cannot setup more than 1024
I try to increase open file limit for certain user on CentOS 5.5 Linux.
I added a new line to /etc/security/limits.conf:
seed hard nofile 10240
Then do test:
runuser -s /bin/bash - seed -c "ulimit -S -c 0>/dev/null 2>&1; ulimit…
Andrey Zentavr
- 168
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