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 '^#|^$' ...
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 * ...
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 ...
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. ...
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
124 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. ...
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/...
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 ...
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 ...
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?
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
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 ...
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.
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!
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 ...
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-...
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 ...
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 ...
6
votes
3answers
20k views

Increasing ulimit on CentOS

We have a CentOS box that I'm trying to increase the max number of files that a user can have open. Currently when I run ulimit -Sn I get 1024 and ulimit -Hn gives 4096. I need that number up around ...
1
vote
0answers
2k views

How do I increase the curr_connections limit using memcache?

I am using a server with Centos 6.5 64 bits Kernel 2.6.32 and 64 GB RAM and 12 threads cores, and I cannot get increase the current connections used in memcache. This is my STATS output: # echo ...
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 ...
1
vote
1answer
157 views

ulimit value when output is “hard” or “soft”

Can someone explain to me how can I determine actual values of for ulimit when the output of ulimit command is "hard" or "soft". This is on AIX machine. For example: # ulimit -f hard And on another ...
0
votes
1answer
55 views

limits.conf not being read when logging in

I have 2 entries in my limits.conf, * hard nofile 10240 * soft nofile 4096 but running ulimit -Sn or ulimit -Hn only displays the default values. gabriel@server:...
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 ...
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, ...
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
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
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 ...
0
votes
1answer
796 views

Removeing ulimit from boot / init

In CentOs as from version 6 there is a by default process limit 1024 for every user i.e /etc/security/limits.d/90-nproc.conf * soft nproc 1024 I have to execute a backend service/...
2
votes
1answer
1k views

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

How do I configure Linux to log when ulimits are hit?

For example, say I'm hitting nproc. I would expect a log message to appear /var/log/messages or similar, but it looks like that needs to be configured. How do I do that? I can't find anything relevant ...
1
vote
2answers
3k views

can't log in when nofile is set to unlimited in /etc/security/limits.conf

I set the following values (-1 will be resolved to unlimited, I suppose) in /etc/security/limits.conf (CentOS 6.2) root nofile soft -1 root nofile hard -1 and I can't log in with root user now. ...
0
votes
0answers
2k views

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

What is the impact of increasing “nofile” limits in /etc/security/limits.conf?

I've found a number of articles describing how to increase the limits for the number of open files through /etc/security/limits.conf, but I don't understand the impact of doing so. Many times I see ...
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'...
1
vote
1answer
532 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 ...
2
votes
2answers
2k views

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

Linux: limits.conf values are not honored

I set some values in /etc/security/limits.conf as below: * hard stack 204800 * hard nofile 8192 Then rebooted the server. Also I have removed the file /etc/security/limits.d/90-nproc....
12
votes
2answers
42k 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] ...
1
vote
3answers
4k views

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 ...
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 ...
-1
votes
1answer
92 views

available file handles is 0, how to increase [closed]

Since some days, we're getting "Too Many Open Files" within an Java application while loading files. So i start searching on Google, and increased fs.file-max to 200000 in my /etc/sysctl.conf. After ...
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 ...