Questions tagged [limits]

82 questions
165
votes
8 answers

Filename length limits on linux?

Are there any filename or path length limits on Linux?
readonly
  • 3,209
  • 4
  • 24
  • 23
37
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
  • 471
  • 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
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
  • 677
  • 2
  • 6
  • 13
10
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
  • 151
  • 1
  • 1
  • 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,836
  • 5
  • 29
  • 45
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
  • 1,988
  • 4
  • 22
  • 33
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,508
  • 4
  • 29
  • 48
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
4
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
  • 239
  • 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
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
  • 16
  • 38
3
votes
4 answers

If I upgrade an ext3 fs to ext4, will it automatically increase the maximum amount of directories per directory?

Due to an external unavoidable situation*, I need to have more than 32k directories in a directory (but as far as I can tell, less than 64k). I'm hitting the limit of ext3. I presume the original server was running ReiserFS. The backup is stored in…
Pablo
  • 7,249
  • 25
  • 68
  • 83
1
2 3 4 5 6