# Open () failed (24 too many open files

**URL:** <https://www.ruby-forum.com/t/open-failed-24-too-many-open-files/244843>\
**Category:** NGINX\
**Created:** [June 23, 2016, 3:56pm UTC](https://www.ruby-forum.com/t/open-failed-24-too-many-open-files/244843 "2016-06-23T15:56:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [June 23, 2016, 3:56pm UTC](https://www.ruby-forum.com/t/open-failed-24-too-many-open-files/244843/1 "2016-06-23T15:56:06Z")

</div>

I have a lot of below error in error.log.  
Open /home/user/… failed (24 too many open files.  
So i search in google and config below files.  
Limits.conf , sysctl.conf nginx.conf for adjust rlimit nofile.  
I set open file limit to 999999 and fs.max to 2000000.

When i am geting error i used command ( lsof | wc -l ) for see total  
open  
file that it show 16000.  
I use command ( cd /proc/nginx pid/limits ) it show max open file  
999999.  
Now i am geting above error yet.  
So what is problem?

Posted at Nginx Forum:

> **[Open () failed (24 too many open files](https://forum.nginx.org/read.php?2,267827,267827#msg-267827)**
>
> I have a lot of below error in error.log. Open /home/user/... failed (24 too many open files. So i search in google and config below files. Limits.conf , sysctl.conf nginx.conf for adjust rlimit nofile. I set open file limit to 999999 and fs.max to...

---

<div class="post-metadata">

**Author:** ![clubi64](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@clubi64](https://www.ruby-forum.com/u/clubi64)\
**Post date:** [June 24, 2016, 6:18pm UTC](https://www.ruby-forum.com/t/open-failed-24-too-many-open-files/244843/2 "2016-06-24T18:18:36Z")

</div>

anybody don’t know about that ?

Posted at Nginx Forum:

> **[Re: Open () failed (24 too many open files](https://forum.nginx.org/read.php?2,267827,267861#msg-267861)**
>
> I have a lot of below error in error.log. Open /home/user/... failed (24 too many open files. So i search in google and config below files. Limits.conf , sysctl.conf nginx.conf for adjust rlimit nofile. I set open file limit to 999999 and fs.max to...
