The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
32 views

Unable to change ulimit setting [migrated]

I edited /etc/security/limits.conf to have root hard nofile 20000 root soft nofile 10000 And added session required pam_limits.so to /etc/pam.d/common-session and ...
0
votes
1answer
33 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
33 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
95 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 ...
0
votes
3answers
81 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 ...
0
votes
2answers
362 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 ...
0
votes
0answers
47 views

Debugging a Node.js EMFILE Error

I have a Node.js API that gets heavy traffic. In my logs, I regularly see the following error: events.js:71 throw arguments[1]; // Unhandled 'error' event ^ Error: accept ...
0
votes
3answers
140 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 ...
0
votes
0answers
68 views

sudo and ulimit - behaviour change?

I've noticed a behaviour change between sudo in Ubuntu Saucy 13.10, which has sudo 1.8.6p3, and Ubuntu Trusty 14.04.1 LTS, which has sudo 1.8.9p5, but I don't understand precisely what it is, or what ...
0
votes
0answers
149 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 ...
0
votes
2answers
919 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
55 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
45 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. ...
1
vote
1answer
596 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 ...
0
votes
0answers
54 views

changes in limits.conf - now I cant login

I have problem with limits.conf and login to server. After I raised limit in limits.conf, I try reconnect to server. But SSH after auth is disconecting. SCP too. Direct access too. Idea?:)
0
votes
1answer
66 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, ...
0
votes
0answers
442 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 ...
1
vote
3answers
545 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
733 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
votes
1answer
350 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 ...
1
vote
1answer
464 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
158 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
329 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
68 views

optimal ulimit value for debian

I have an issue with my tomcat service, for more background info click here. What I am here about is that i suspect it has to do with my ulimit as my application does use rabbitmq and similar ...
0
votes
0answers
506 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
302 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 ...
1
vote
3answers
3k 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 ...
1
vote
1answer
337 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
707 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
852 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 ...
6
votes
2answers
13k 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] ...
0
votes
3answers
1k 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
3answers
464 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
82 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
644 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 ...
2
votes
1answer
218 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 - ...
6
votes
2answers
5k 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. ...
2
votes
3answers
2k 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 ...
2
votes
0answers
152 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 ...
0
votes
0answers
164 views

File descriptor limit RHEL (Scientific Linux) with PHP Server

I want to serve with a PHP more than 1024 Clients! I dont have a apache! When I run the script I come in to a issue once I have more than 1023 Clients connected! I have exactly this issue: ...
0
votes
2answers
318 views

Where to find the mod_cgi.c script

Where is the mod_cgi.c script, or where are all the modules in the apache software? I have a problem with the RLimitNProc settings on my server, because this settings don't work properly. I've found ...
0
votes
0answers
136 views

ulimit -u could be exceeded by some user

Our server is forced to restart sometimes because some users (not all) could start more zombie suphp defunct processes than allowed through the RLIMIT_NPROC / ulimit -u statement. How is that ...
-2
votes
1answer
495 views

Why ulimit shows different outputs? [closed]

I am very confused, and I tried a lot but I didn't get any way to overcome from a bug. I am posting the same. I am hoping that someone helps me. My problem is, When I run ulimit -n it shows 12000. ...
0
votes
3answers
539 views

How to set the ulimit (fd) when you fork a process?

Normally /etc/security/limits.h only work when you login into a shell. How about when you fork a process in Linux, where is the value of Max open files of /proc/PID/limits is controlled by?
1
vote
1answer
403 views

Increasing the maximum amount of open files for libvirt

For an experiment I'm trying to start as many VM's as possible through libvirt, however with a little over 1000 VM's running I get an error saying: "Failed to create pipe: Too many open files". Any ...
2
votes
1answer
4k views

Apache HTTPD configuration for high load [duplicate]

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

Raising file limits for a service rather than a user

I have seen various posts here about raising the open file limit on Linux systems for specific users (which is performed in a variety of different ways depending on the Linux distro being talked ...
1
vote
2answers
1k views

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?
2
votes
3answers
2k 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 ...
1
vote
1answer
106 views

Execution time differs for different users

I am running simple R job by root and another limited user. The execution time differs significantly. What can be the source of problem? Further information Here is how I compare the run time: # ...