# Too many open files

**URL:** <https://discuss.elastic.co/t/too-many-open-files/335677>\
**Category:** Elasticsearch\
**Created:** [June 10, 2023, 7:39am UTC](https://discuss.elastic.co/t/too-many-open-files/335677 "2023-06-10T07:39:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lchqlchq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lchqlchq/32/122088_2.png) [@lchqlchq](https://discuss.elastic.co/u/lchqlchq)\
**Post date:** [June 10, 2023, 7:39am UTC](https://discuss.elastic.co/t/too-many-open-files/335677/1 "2023-06-10T07:39:27Z")

</div>

i have a three node es7.4 cluster without data. choose one node,ifdown the network，and es filehandler increasing quickly until the ulimit filehandler fills up。the new added filehandler point the same socket id as:ll /proc/esid/fd  
965 -\> socket:[12437267]  
967 -\> socket:[12437267]  
...  
all new filehanler point to socket:[12437267]

and socket:[12437267] is same to command "netstat -anp|grep espid" output:  
unix 2 STREAM COMMECTED 12437267 espid/java

why?how to fix it

---

<div class="post-metadata">

**Author:** ![lemontree](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lemontree](https://discuss.elastic.co/u/lemontree)\
**Post date:** [June 10, 2023, 5:06pm UTC](https://discuss.elastic.co/t/too-many-open-files/335677/2 "2023-06-10T17:06:54Z")

</div>

yes,as network is recoveryed, the es service can not be auto recoveryed because the file handler has filled up.es7.4.0 indeed has this problem,but es7.10.0 is ok。  
also wish reply,many thanks

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [June 10, 2023, 6:50pm UTC](https://discuss.elastic.co/t/too-many-open-files/335677/3 "2023-06-10T18:50:59Z")

</div>

Both 7.4 and 7.10 are very old versions, long past EOL, and missing out on literally years of new features and bug fixes. You need to upgrade to a supported version as soon as possible.

---

<div class="post-metadata">

**Author:** ![lemontree](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lemontree](https://discuss.elastic.co/u/lemontree)\
**Post date:** [June 11, 2023, 12:30am UTC](https://discuss.elastic.co/t/too-many-open-files/335677/5 "2023-06-11T00:30:44Z")

</div>

thanks for your reply! I will upgrade version as soon as possible. but want to know the general reasons leading to too many file handler using the same socket with type of unix.  
is it possible that a leak of channel connecting itself or other nodes?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [June 11, 2023, 7:36am UTC](https://discuss.elastic.co/t/too-many-open-files/335677/6 "2023-06-11T07:36:32Z")

</div>

I've no idea, but it's such an old version it's not worth investigating further.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 9, 2023, 7:37am UTC](https://discuss.elastic.co/t/too-many-open-files/335677/7 "2023-07-09T07:37:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
