Skip to main content

Questions tagged [limits]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
186 votes
8 answers
284k views

Filename length limits on linux?

Are there any filename or path length limits on Linux?
readonly's user avatar
  • 3,439
39 votes
5 answers
70k views

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 ...
kāgii's user avatar
  • 491
19 votes
2 answers
76k views

/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] ...
John M's user avatar
  • 333
17 votes
3 answers
51k views

Is there a hard limit to the number of files a directory can have? [duplicate]

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. ...
Juan Carlos Coto's user avatar
14 votes
5 answers
15k views

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 ...
intelfx's user avatar
  • 311
10 votes
2 answers
24k views

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) ...
Ole Tange's user avatar
  • 3,146
9 votes
3 answers
23k views

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 ...
myforwik's user avatar
8 votes
2 answers
17k views

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 ...
moinudin's user avatar
  • 205
6 votes
3 answers
7k views

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 ...
fadedbee's user avatar
  • 2,138
5 votes
2 answers
10k views

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 ...
Steffen Winkler's user avatar
5 votes
1 answer
2k views

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 ...
JDS's user avatar
  • 2,638
5 votes
1 answer
6k views

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 ...
moritz's user avatar
  • 151
4 votes
2 answers
3k views

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 ...
Nils's user avatar
  • 7,757
4 votes
4 answers
11k views

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 - ...
Andrey Zentavr's user avatar
3 votes
1 answer
8k views

how do i set hard and soft file limits for a non-root user at boot?

I have a xen HVM vps and I'm trying to raise the hard and soft file limits for nobody at boot time. I'm using Ubuntu 10.04.3 and inside /etc/security/limits.conf I have: nobody soft nofile ...
incognito2's user avatar
3 votes
4 answers
844 views

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 ...
Pablo Fernandez's user avatar
3 votes
1 answer
7k views

Linux : Count Open Files for Process

How can I check how many open files are currently used? Checking on PM2 is just an example: I found the PID: ps aux | grep pm2 | awk '{ print $2 }' Checked that there is a limit of 65536 ...
crashoverbike's user avatar
3 votes
1 answer
4k views

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 ...
Itai Ganot's user avatar
  • 10.9k
3 votes
1 answer
4k views

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 (...
lsalamon's user avatar
3 votes
2 answers
4k views

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 - ...
Alexander Farber's user avatar
2 votes
1 answer
10k views

From which Apache version onward is LimitRequestFieldSize no longer hardcoded to 8k max?

Title says it all: from which version onward is the LimitRequestFieldSize no longer hardcoded to a max. of 8k? It seems 2.2.15 is still affected.
Michael Böckling's user avatar
2 votes
2 answers
597 views

Process limit for user in Linux

This is the standard question, "How do I set a process limit for a user account in Linux to prevent fork-bombing," with an additional twist. The running program originates as a root-owned Python ...
BrainCore's user avatar
  • 161
2 votes
1 answer
5k views

How do I increase the open file limit on Linux?

I am using CentOS 7. I found out that the current value can be seen using $ ulimit -a (look for open files). Or just $ ulimit -n Then I try to edit these limits by editing the file at $ vim /etc/...
Alex's user avatar
  • 301
2 votes
3 answers
18k views

How to setup a traffic limit per user on OpenVPN?

I am setting up a VPN server using OpenVPN. The authentication method is the certificate one (different certs for client and server). The VPS has 1TB of traffic monthly. I plan allowing up to 4 ...
user6232516's user avatar
2 votes
1 answer
1k views

KVM Raw file size limitations

What are the technical and practical size limitations of raw disk files to be used with KVM? Can I create a 2 or 3TB raw disk file as a data drive for a KVM based windows virtual machine (acutally ...
AudioDan's user avatar
  • 398
2 votes
2 answers
3k views

Fork-bomb Protection on OS X - Limit processes with ulimit?

Got introduced to the fascinating world of UNIX about a year ago, but after, for lack of a better expression, "the waste-matter colliding with the rapidly spinning blades" today as a result of my ...
user avatar
2 votes
1 answer
2k views

EKS Pods with ephemeral-storage constantly evicted

I'm working on EKS v1.20.11-eks-f17b81 and I'm facing an issue with a Java container Alpine based. Basically my deployment have the limits of ephemeral-storage for the request's and also the limit's ...
user2275908's user avatar
2 votes
1 answer
1k views

Can quotas and limits checked at organization level in Google cloud?

Please help me on my question,I spent a lot time to know the difference between quotas and limits and for checked out quotas at organization level. As I am seeing some limits are their per ...
Mahaboob's user avatar
2 votes
3 answers
969 views

What are performance limits of a database?

What are some rough performance limits (read/s, write/s) for a single database server (no master-slave architecture), assuming storage on disk? How many read/s, write/s, depending on the kind of disk? ...
user avatar
1 vote
3 answers
419 views

Limiting specific process to just one per user

My scripts are using wget to retrieve data from Internet. When many users are using this script I got very high load (about 20.00), because of disk I/O. Wget is automatically started each hour by cron....
Spacedust's user avatar
  • 568
1 vote
3 answers
97 views

Aggregation under the radar [closed]

I'm considering writing an application that aggregates information from a fairly popular website. This application would request information from this website at a set interval. I know this is a ...
lotri's user avatar
  • 143
1 vote
1 answer
3k views

What is the upper limit (maximum limit ) of WinRM MaxShellsPerUser

For executing the remote powershell commands i need to configure WsMan, In WsMan MaxShellsPerUser specifies the maximum number of concurrent shells that any user can remotely open on the same computer....
asvignesh's user avatar
  • 127
1 vote
1 answer
1k views

How to current Linux process count (compared to pid_max)

How can I get the number of Linux processes (including lightweight processes)? I want to see how many before I hit the limit dictated by /proc/sys/kernel/pid_max.
Paul Draper's user avatar
1 vote
1 answer
850 views

nginx and Mysql Server Load limits (depend on Server config)

my server config is Technology: Ivy Bridge Processor: Intel Xeon E3 1245v2 Intel Smart Cache: 8MB Cores: 4 Threads: 8 Frequency: 3.4GHz+ Turbo Boost: 3.8GHz Virtualization: yes ...
user3143813's user avatar
1 vote
1 answer
5k views

systemctl limits - solr complaining

I'm building a solr server (on Ubuntu 18.04, using the repo solr-common and solr-jetty). On startup, solr was reporting that nfile and nproc (1024, 6721 resp) was set too low. I ran systemctl edit ...
symcbean's user avatar
  • 22.7k
1 vote
1 answer
881 views

How to change max file limits on a process

Yes I know this question has been asked before and I have tried all the solutions I have seen and none of them work for me. We are running Ubuntu 12, and we have a process that automatically gets ...
Marc's user avatar
  • 151
1 vote
1 answer
447 views

Bootup process does not respect file limits config in Ubuntu Linux

I have open files limit configured in /etc/security/limits.conf * hard nofile 500000 * soft nofile 500000 root hard nofile 500000 root soft nofile ...
Daniel Cukier's user avatar
1 vote
1 answer
3k views

Is it possible to increase the max limit of 10 pc's to any number of times without making the user a domain admin?

Normally a domain user has a maximum limit for 10 computers to join to a domain. But what i want to know is, is it possible (by joining a account to a group) to do this any number of times without ...
Anonymous's user avatar
1 vote
1 answer
736 views

Can I globally set to cut off too big cron e-mails?

Is there a way to limit the body of all e-mails sent out by cron (to MAILTO receivers) to a specific length. If the particular output exceeds the limit, it just gets cutt off at that point. Is there ...
Jānis Elmeris's user avatar
1 vote
0 answers
227 views

Iptables, Limit the number of IPs connected to a specific port per second

iptables can limit connections per ip at the same time with the --connlimit command . but I want to know is there a way to limit connected IPs at the same time? for example, if you limit connections ...
A H's user avatar
  • 11
1 vote
0 answers
20 views

Marking services for killing in a resource-starvation situation

We use systemd --user to run certain services of our own. In some cases, these "get out of hand" -- spawn way too many processes, which exhausts RAM and causes the machine to "thrash&...
Mikhail T.'s user avatar
  • 2,411
1 vote
0 answers
343 views

RHEL8 Limits not applied when setuid is configured

I have configured my limits.conf file to allocate a huge stack size * soft stack 65535 * hard stack 65535 ulimit -s shows the correct value for both root ...
Sam Daniel's user avatar
1 vote
0 answers
652 views

Force nproc ulimit on non interactive user

I have a script that can be launched n times at the same time through php-fpm. php-fpm pool is set to run under a certain username and I want to limit the number of processes this username can launch. ...
w00t's user avatar
  • 1,164
1 vote
0 answers
300 views

OOM using CRON but not using SHELL

When I start a java program by shell, everything is working well. However if I start the same program with the same command and same user by CRON, I get a java.lang.OutOfMemoryError just after a few ...
DOB's user avatar
  • 11
1 vote
4 answers
38k views

Exchange 2010, 2013 and 2016 maximum mailbox size

Which is the maximum size limit for a single mailbox in exchange 2010, 2013 and 2016?
user327925's user avatar
1 vote
1 answer
3k views

How to configure the niceness or priority of service started on boot

I want to increase the niceness of an service (decrease the CPU priority) started as an dedicated user or group during the boot process. I'm not able to define the niceness or priority in the /etc/...
devnox's user avatar
  • 11
1 vote
0 answers
763 views

How can I limit total quota using squid without authentication for per user

I am having Raspberry Pi running Raspbian, I have configured it as a wifi hotspot using hostapd and dhcpd, I have configured transparent squid proxy server on it. Now all traffic goes through my proxy ...
slashRahul's user avatar
1 vote
1 answer
835 views

Changing ulimit on ubuntu 12.04 Never works

I am working with hadoop and need to change number of open files ulimit -n. I have seen similar questions on stackoverflow and elsewhere and have tried everything in those answers, but it still does ...
Ravi Bhatt's user avatar
1 vote
0 answers
161 views

Stack , data and address space limits on an Ubuntu server

I am running an Ubuntu server which has around 5000 users. The users are allowed to SSH in to the system. So in order to cap the memory used up by a process I have capped the address space limits ...
PaulDaviesC's user avatar
1 vote
2 answers
965 views

Setup MySQL per account limits similar to shared hosting

Similar questions have been asked before, such as this one, but none of the answers I've seen so far really tell me what I'm after. I have a need to set up a Linux box for internal development and ...
John Gardeniers's user avatar