The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
348 views

Increase FD limitation then SSH not working?

I'm using CentOS 6.3 64bit, and having trouble with increase FD limitation: SSH not working after changed the limitation, every-times I logged on my server, after typed password, then "connection ...
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?
3
votes
1answer
1k views

How do you force a process to flush the data written to an open file descriptor under Linux?

I have a binary process (with no sources available) running on an embedded Linux system. The process opens a log file (/tmp/dmaosd.log) where it logs what it's doing. The problem is the log gets ...
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 ...
3
votes
1answer
2k views

Is there a maximum of open files per process in Linux?

My question is pretty simple and is actually stated in the title. One of my applications throws errors regarding "too many open files" at me, even tho the limit for the user the application runs with ...
4
votes
1answer
722 views

Strace Apache process output showing 24 seconds wait?What can be the reason?

Performed strace on one one of the apache children and its showing 24 seconds between two system calls.How can i determine what is the cause of this behavior.It looks like both children are taking ...
6
votes
4answers
14k views

Why (or how) does the number of open file descriptors in use by root exceed ulimit -n?

Our server recently ran out of file descriptors, and in regards to that I have some questions. ulimit -n is supposed to give me the maximum number of open file descriptors. That number is 1024. I ...
3
votes
3answers
946 views

How can lsof report a higher number of open files than what ulimit says should be allowed?

How can lsof report more open files than what ulimit says is the limit? prod_web3(i-ca0b05aa):~$ sudo lsof | wc -l 4399 prod_web3(i-ca0b05aa):~$ ulimit -n 1024
2
votes
1answer
2k views

Increasing file descriptor limit on Debian does not work! Help!

I am running Debian 6 and I am trying to increase the file descriptor limit but it does not want to work. This is what I have done: I edited /etc/sysctl.conf by adding fs.file-max = 64000 at the end ...
1
vote
1answer
258 views

max file descriptors with nginx and IM erlang server

I'm using nginx for serving static files and as a proxy for an Erlang IM server. Each user is using two long-polling http connections. OS is ubuntu server. On peak hours I see: > sudo more ...
1
vote
1answer
2k views

Getting MongoDB to use max open file descriptors in /etc/security/limits.conf

I've got a MongoDB server that runs out of file descriptors for open connections. I changed the settings in /etc/security/limits.conf so that every user gets a hard and soft limit of 65000 of open ...
3
votes
3answers
4k views

Squid running out of file descriptors on Ubuntu

I am running Squid 2.7 on Ubuntu 10.04 64bits. I had the problem of Squid running out of file descriptors, with the following error showing in /var/log/squid/cache.log: WARNING! Your cache is ...
1
vote
6answers
3k views

Apache Crashes Every Night Due To “Too Many Open Files”

I am running a SmartMachine on Joyent. I beleive these are some sort of virtual machine running Solaris. We have a web application on this machine running on Apache, PHP, and MySQL. It handles our ...
2
votes
1answer
2k views

How does RHEL 5 (Linux kernel 2.6.18) determine the default fs.file-max setting?

If fs.file-max is not set in /etc/sysctl.conf on RHEL 5 or its derivatives, how does the kernel determine the default value? Is there a formula used to set the fs.file-max value based on the amount of ...
3
votes
2answers
6k views

How to configure linux file descriptor limit with fs.file-max and ulimit

Server applications running on linux often require large quantities of open file handlers, for ex. HBase ulimit, Hadoop epoll limit This wiki entry should serve as documentary for Linux file limits ...
0
votes
3answers
4k views

How to track down a file descriptor leak?

I have a java process (Glassfish) which is leaking file descriptors. I know this because I get the helpful java.io.IOException: Too many open files exception. I can look in /proc/PID#/fd and see all ...
1
vote
1answer
2k views

File-descriptors setting on /etc/sysctl.conf

I have recently learnt that to be able to increase the amount of virtualhosts that we can serve via apache depends on file-descriptors. they say the value should be added to /etc/sysctl.conf as ...
26
votes
5answers
61k views

Practical maximum open file descriptors (ulimit -n) for a high volume system

We recently began load testing our application and noticed that it ran out of file descriptors after about 24 hours. We are running RHEL 5 on a Dell 1955: CPU: 2 x Dual Core 2.66GHz 4MB 5150 / ...