The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
18 views

can't set nofile more than 65536

I use debian 8 x64. I'm trying set max open file value to 2097152, but get only 65536. root@server:/backups# sysctl fs.file-max fs.file-max = 2097152 root@server:/etc/security# egrep -v '^#|^$' ...
0
votes
2answers
76 views

How do ulimit settings impact Linux?

Lately, I had a EAGAIN error with some async code that made me take a closer look at ulimit settings. While I clearly understand certain limits, such as nofile, others are still quite confused to me. ...
4
votes
0answers
22 views

proc's limit and ulimit -f don't match

I have an issue where a process has a different max file size than the ulimit for a user. The log file for this process is basically not growing past 524288 proc: less /proc/20238/limits Limit ...
0
votes
0answers
12 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. ...
0
votes
2answers
42 views

Getting Too many Open files error for Postgres

In Ubuntu 14.04 server on a JAVA application we are getting Too many Open files error for Postgres (Using Postgresql 9.5). We set the following in /etc/security/limits.conf * soft nofile 16384 * ...
4
votes
4answers
3k views

How to increase max FD limit for a daemon process running under a headless user?

To increase the FD limit for a daemon process running under a headless user on a Ubuntu Linux machine we did following changes in /etc/security/limits.conf soft nofile 10000 hard nofile 10000 We ...
3
votes
3answers
8k views

How can I permanently set ulimit -n 8192 in Centos 7?

I would like to permanently set the open file limit for all users in Centos 7, but there seems to be a lot of conflicting information out there on the googles. Thanks!
0
votes
0answers
95 views

prlimit not found centos6.3

After finding out that ulimit -m no longer does anything on linux... I am now investigating the use of prlimit. I have found that this is supposed to exists as part of util-linux / util-linux-ng, I ...
1
vote
0answers
37 views

How can I decide which unix or unix-like OS will give me the most open files permissible? [closed]

I am looking to deploy a service that is capable of serving more than 65535 simultaneous connections on one host. 65535 seems to be the practical limit of most common linux distributions. Are there ...
1
vote
1answer
58 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/...
0
votes
0answers
52 views

Setting threads stack limit

I have a strange issue. We have an asterisk module and it started to crash, however the only core dumps generated are by ps command. I asked the question in stack overflow and it seems issue is with ...
0
votes
0answers
72 views

File descriptor limit on CentOS 7

I am having hard time understanding resource limits (ulimit) with systemd. As I understand it, systemd brings some additional complexities to setting file descriptor limit. /etc/security/limits.d/99-...
0
votes
1answer
123 views

increase max_connections in mysql on ubuntu wily

I have ubuntu wily installed on my server. I'm trying to increase max_connections of mysql server to 1237 but when running mysql client and executing show variables like 'max_connections'; i get 214. ...
6
votes
2answers
10k views

Why does redis report limit of 1024 files even after update to limits.conf?

I see this error at the top of my redis.log file: Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. I have followed these steps to the ...
3
votes
4answers
4k views

How to set ulimits for mongod?

How do I set ulimits for the mongod process/user on CentOS? I've read the official documentation but it doesn't provide OS-specific instructions. I need to set ulimit -u 64000 and need this to ...
3
votes
3answers
7k views

samba stuck at maximum of 1024 open files

I'm running a Ubuntu 10.04 (lucid) samba fileserver. I have a Windows 7 client which opens a large number of files while doing a copy of thousands of tiny files at once. It receives the error "Too ...
5
votes
2answers
11k views

nginx uLimit 'worker_connections exceed open file resource limit: 1024'

I keep getting this error in nginx/error.log and its driving me nuts: 8096 worker_connections exceed open file resource limit: 1024 I've tried everything I can think of and cant figure out what is ...
9
votes
1answer
316 views

Difference between ulimit, launchctl, sysctl?

When managing the limits of the operating system (specifically OSX), what is the difference and overlap between the functionality and history of these three tools: ulimit launchctl, launchd sysctl ...
3
votes
2answers
391 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 - ...
18
votes
5answers
19k 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 ...
23
votes
6answers
74k views

where are the default ulimit values set? (linux, centos)

I have two CentOS 5 servers with nearly identical specs. When I login and do ulimit -u, on one machine I get unlimited, and on the other I get 77824. When I run a cron like: * * * * * ulimit -u &...
2
votes
2answers
3k views

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/...
3
votes
4answers
5k views

Increase file ulimit for the asterisk daemon

How do i increase the file limit for the asterisk daemon on my ubuntu computer? When I login as root and use the ulimit, it says unlimited already. I can't login as asterisk because that user doesn'...
2
votes
1answer
658 views

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 ...
0
votes
2answers
138 views

Can't raise nginx max files opened limit

I'm running Ubuntu Server. This is what I've done: /etc/security/limits.conf: * soft nofile 10240 * hard nofile 10240 And added in /etc/pam.d/...
14
votes
8answers
22k views

How to set ulimits for a service starting at boot?

I need, for mysql to use large-pages, to set a ulimit - I've done this in limits.conf. However, limits.conf (pam_limits.so), doesn't get read in for init, only for "real" shells. I solved this before ...
9
votes
3answers
17k views

Too many open files with nginx, can't seem to raise limit

The server is Ubuntu 13.04 (GNU/Linux 3.9.3-x86_64-linode33 x86_64). nginx is nginx/1.2.6. I've been working on this for an several hours now, so here's what I'm getting and here's what I've done. ...
1
vote
2answers
320 views

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 ...
3
votes
0answers
169 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 ...
5
votes
2answers
15k views

How to set ulimit value permanently?

On Debian Wheezy, ulimit -a gives: open files (-n) 1024 I add this to /etc/security/limits.conf * hard nofile 64000 then reboot. And ulimit -a ...
12
votes
4answers
39k views

Cannot switch, ssh to specific user: su: cannot set user id: Resource temporarily unavailable?

/var/log/secure: su: pam_keyinit(su-l:session): Unable to change UID to 500 temporarily su: pam_keyinit(su-l:session): Unable to change UID to 500 temporarily su: pam_unix(su-l:session): session ...
1
vote
2answers
1k views

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 ...
1
vote
1answer
56 views

How does pam_limits decide on the default limits?

In a linux system that is using the pam_limits module, but has nothing configured in /etc/security/limits.conf (or /etc/security/limits.d/*) how does pam_limits decided on what limits to implement?
1
vote
4answers
989 views

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 ...
5
votes
5answers
6k views

limits.conf not being applied.

I have the following lines in /etc/security/limits.conf * soft nofile 32768 * hard nofile 65536 root soft nofile 32768 root ...
2
votes
1answer
57 views

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 ...
1
vote
5answers
4k views

Limit amount of RAM to a process (Linux)

I have a Zope server (just a long running python process) which tends to eat up all RAM on my server after a couple of days. I do not want to restart it every night - maybe it's better to limit the ...
1
vote
1answer
182 views

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 ...
17
votes
2answers
15k views

How do ulimit -n and /proc/sys/fs/file-max differ?

I notice that on a new CentOS image that I just booted up off of EC2 that the ulimit default is 1024 open files, but /proc/sys/fs/file-max is set at 761,408 and I'm wondering how these two limits work ...
5
votes
1answer
1k views

Are ulimits inherited by the shell, by the user, or a combination?

When a process spawns a subshell, how is the ulimit inherited? Is it by user, by shell, or a combination? Specifically, this was found in the context of HP Server Automation jobs failing on some ...
3
votes
2answers
361 views

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.
1
vote
1answer
5k views

Apache keeps crashing due to unable to create worker thread

Am getting a lot of these in our error log ((11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread) and (110)Connection timed out: proxy: HTTP: attempt to connect ...
1
vote
1answer
1k views

Stunnel, limits.conf

After reading the fine advice and accepted answer at Stunnel too many clients , I'm finding that this looks like our problem, but I'm having trouble applying the solution. First of all, ulimit is a ...
3
votes
2answers
2k views

Can we set ulimit in /etc/sysconfig/init file to apply the value at boot time

I need to have the ulimit value set at the boot time to all my services. I have values set in /etc/sysconfig/limits.conf but these values are not applicable during the boot time and it takes 1024 as ...
1
vote
1answer
98 views

Process specific ulimit still low after changes to soft and hard ulimits

I'm having trouble with increasing the open-files ulimit (ulimit -n) for a particular process on a Debian 6 server. AFAIK I've done everything to change the servers hard and soft limits in this case, ...
4
votes
3answers
14k views

ulimit -n not changing - values limits.conf has no effect

I am trying to raise the open file descriptor maximum for all users on an ubuntu machine. This question is somewhat of a follow up to this question. open file descriptor limits.conf setting isn'...
4
votes
1answer
242 views

Practical ulimits

One of the projects I'm working on is moving certain puppet-applied ulimit settings away from "that sounds about right" to dynamically allocated based on the environment. This is for single-...
1
vote
0answers
186 views

“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 ...
5
votes
1answer
3k views

How to set systemwide ulimit on ubuntu

I want to set systemwide ulimit on ubuntu (all processes, all users). How can I set it? thanks JP
4
votes
3answers
5k views

Ulimit file descriptor limits not being applied for particular process

I recently checked one of our redis processes to what ulimits where applied using: cat /proc/<redis-pid>/limits And was suprised to learn that is was at the low default value: Limit ...