Questions tagged [ulimit]

181 questions
3
votes
2 answers

Too many file descriptors on Debian, ulimit -n has no effect

Let me get all of the ulimit -n and /etc/security/limits.conf answers out of the way by saying this: I've tried setting ulimit -n to 2048, 4096, and 65535. I have set both the soft and hard limit for nofiles to all of those values. ulimit -n shows…
Ramsey
3
votes
3 answers

How to limit Apache sub-process memory usage?

— Yeah, just that simple question. It's too easy to consume a lot of RAM in brain-dead mod_XxX (say, mod_php) application, so I'm just wondering what does Apache allow to do as countermeasure.
poige
  • 9,448
  • 2
  • 25
  • 52
3
votes
0 answers

"Open files" ulimit applied only when using 'su - userX' but not when I SSH into server

I'm running Ubuntu 12.04. My problem is that the ulimit values described in limits.conf are not being applied when I SSH into my server using a non root account. Either that or they are being applied and overridden. I've added the appropriate values…
JohnP
  • 248
  • 5
  • 12
3
votes
0 answers

Does AWS EC2 have limits on concurrent connections?

No matter what I do to my EC2 instance, any size and with apache/ubuntu. I can't get it to go over 1400 concurrent connections. Have set the prefork settings high, set ulimit to 1000000 Is this something to do with AWS?
3
votes
2 answers

Increasing nproc on CentOS/RHEL

I have a problem where mysqld runs out of threads and throws errors when under heavy load. I have traced this back to a problem where the pid seems to be limited a soft limit of 1024 processes (have removed other limits for readability): [root@db1…
Noodles
  • 1,386
  • 3
  • 18
  • 29
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
3
votes
2 answers

ulimit not reflected for jenkins slave

Problem Got java.io.IOException: Too many open files in solr indexing through jenkins. Did some googling and found we have to set the ulimit for the box in where we are running the job. So set the ulimit in a linux box with spec Linux x86_64…
raksja
  • 191
  • 1
  • 2
  • 8
3
votes
1 answer

ulimit permissions are hard set directly from a screen instance. How can this be fixed?

At best I can describe this issue with a shell session: This shows that ulimit works fine. This is the start of a normal ssh session: $>ulimit -c 0 (ushanka:973:0) ~ $>ulimit -c unlimited (ushanka:974:0) ~ $>screen -t question <-- see next…
James
  • 151
  • 5
3
votes
1 answer

Trying to solve "nginx too many files"

We recently started getting the following error on one of our nginx boxes: 2011/05/25 16:35:51 [alert] 3580#0: accept() failed (24: Too many open files) Checking /etc/security/limits.conf, we have this: * soft nofile …
Mediocre Gopher
  • 803
  • 1
  • 13
  • 24
3
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
  • 161
  • 1
  • 1
  • 5
3
votes
3 answers

can you help me with this simple 'ulimit'?

I have a badly coded infinite looping program that I want to run on the command line - but not forever. I want to use ulimit so if it loops forever, it gets cut off. I'm trying: $> bash -c "ulimit -t 1; java myinfloopprogram" but it's like nothing…
rlb.usa
  • 163
  • 10
3
votes
0 answers

Permission issue preventing increase in Open Files Limit in Ubuntu

My Digital Ocean droplet's ulimit -n yields 1024. Now it's a dedicated machine with Ubuntu 16.04, 32GB Ram, 16 Cores. I want to crank it up to 65535. The problem: I followed a bunch of steps to configure this (given at the end). However, I run into…
Hassan Baig
  • 2,325
  • 12
  • 29
  • 48
2
votes
1 answer

How to set max file descriptors for a container?

I want to run elasticsearch in a container (namely nspawn) and it requires the number of max file descriptors to be higher than the default 1024. This is done, in the container, in the systemd service file appropriate for elasticsearch. This request…
WoJ
  • 3,607
  • 9
  • 49
  • 79
2
votes
1 answer

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/security/limits.conf and adding these two…
Alex
  • 301
  • 2
  • 7
  • 14
2
votes
1 answer

How does nginx websocket proxy work?

I'm wondered about how nginx handles tons active websocket connections? There is a lot of limitations, like a number of open files, maximum of 65k TCP connections between IP <-> (IP, port) and so on. When I'm using nginx as reverse proxy and have,…