Questions tagged [ulimit]

181 questions
2
votes
2 answers

Optimize Apache for high concurrent requests

I am running a Apache2 Ubuntu server which serves the API request from mobile apps. Recently I am facing a bottleneck that when the request getting higher (more concurrent users), the request response is getting slow. Previously ~1 or 2 seconds will…
neobie
  • 121
  • 1
  • 4
2
votes
2 answers

pam_limits: Operation not permitted for sshd

Debian 8.0, pam 1.1.8-3.1, sshd 1:6.7p1-5. I'm trying to permanently increase the maximum number of open files. In /etc/pam.d/ I've got: /etc/pam.d# grep pam_limits.so * atd:session required pam_limits.so common-session:session required…
Yuri Ushakov
  • 1,113
  • 2
  • 8
  • 9
2
votes
1 answer

Process has more open sockets than should be allowed by prlimit

Running debian jessie. The following is done as root to avoid any permissions issues. First I find the pid of my program, then I check its open file limit to verify that it is set at 1024. But when I count the number of open files, I find 1851. $…
nullUser
  • 236
  • 1
  • 7
2
votes
1 answer

Forcing a user to use swap space after certain memory usage (using limits.conf?)

I have a backend app that is being used internally by developers hosted on our server, however, the app unfortunately requires the use of Passenger and Ruby, both of which are very memory-hungry. I have an SSD swapfile that should allow reasonable…
Ecksters
  • 123
  • 4
2
votes
2 answers

How to enable core files on CentOS 6

I am trying to enable core files on a machine running CentOS 6; however, nothing I have tried has produced core files…here is what I have done: Added the following two lines to /etc/security/limits.conf: * hard core unlimited * soft …
Kabb5
  • 121
  • 1
  • 5
2
votes
1 answer

LImiting overall memory usage for child processes

I have a long-running script that launches several child processes on a Linux machine with 8GB of memory. After a few hours of running, it takes up nearly 90% of memory, and this makes other services, like SSH, unresponsive when it starts disk…
Cerin
  • 3,600
  • 19
  • 61
  • 79
2
votes
3 answers

Different stack size limit for different users, how can I make sure that all users have the same stack size set?

I have a CentOS 6.4 server, when i run ulimit -a as root i get this: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
2
votes
4 answers

ulimit -n not persisting, tried everything

I need to increase ulimit -n on Ubuntu 12.04. It's currently: open files (-n) 1024 (1024 soft, 4096 hard) In /etc/security/limits.conf I have: root soft nofile 10240 root hard nofile 10240 In /etc/pam.d/login,…
apscience
  • 121
  • 1
  • 4
2
votes
1 answer

Apache HTTPD configuration for high load

Good day, I want to be able to serve at least 7000 (preferably 10k) concurrent requests from my Apache Httpd. I have configured my httpd.conf with MPM worker with the following setup ServerLimit 330 StartServers 25 ThreadsPerChild…
Franz See
  • 189
  • 2
  • 5
  • 10
2
votes
2 answers

Nginx's Too many open files, is setting of worker_rlimit_nofile enough?

Is setting the right value of worker_rlimit_nofile in nginx.conf enough solve the issue of Too many open files in nginx? Or do I still need to update the sysctl.conf and limits.conf?
Ryan
  • 5,831
  • 24
  • 72
  • 91
2
votes
1 answer

Best way to override 1024 process ulimit

On CentOS distros, there is an /etc/security/limits.d/90-noproc.conf that sets a process limit for all users: # Default limit for number of user's processes to prevent # accidental fork bombs. # See rhbz #432903 for reasoning. * soft …
CamelBlues
  • 303
  • 4
  • 10
2
votes
1 answer

What steps are required to ensure more than 1024 clients can connect to redis?

I require more than 1024 clients to be connected to a single redis instance at once. My redis process runs as user ubuntu. I have edited /etc/security/limits.conf to specify: ubuntu soft nofile 65535 ubuntu hard nofile 65535 I have also ensured…
esilver
  • 335
  • 2
  • 5
  • 11
2
votes
1 answer

What are the potential problems with globally setting ulimit to unlimited?

My team recently had an issue with ulimit being set too low on our Apache servers. We talked about increasing the limit to some arbitrary number, but we couldn't think of any reason not to just globally set it to unlimited. Are there some good…
Joe Hillenbrand
  • 143
  • 1
  • 5
2
votes
1 answer

Mysterious per-session CPU limiting?

TL;DR: CPU-hungry processes are sharing cores on a multi-core server while other cores sit idle, whereas I expect the Linux scheduler to distribute jobs evenly across cores. What could cause this behavior? My workgroup has a new 4-core server…
dmonner
  • 21
  • 1
  • 3
2
votes
2 answers

Apply ulimit globally on Ubuntu

I need to apply "ulimit -s 256" to any system thread. Is there any way to achieve this under Ubuntu Server?
SiberianGuy
  • 635
  • 1
  • 8
  • 19