# Too many open files?

**URL:** <https://discuss.elastic.co/t/too-many-open-files/29969>\
**Category:** Logstash\
**Created:** [September 25, 2015, 9:21am UTC](https://discuss.elastic.co/t/too-many-open-files/29969 "2015-09-25T09:21:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulkeogh](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@paulkeogh](https://discuss.elastic.co/u/paulkeogh)\
**Post date:** [September 25, 2015, 9:21am UTC](https://discuss.elastic.co/t/too-many-open-files/29969/1 "2015-09-25T09:21:30Z")

</div>

I am seeing errors in myLF log file around too many open files and observe that no events are subsequently forwarded after this error.

I am processing files that are effectively closed - if I set the "dead time" variable to something small like 1h, am I correct in assuming the LF will release the file descriptor for a file after 1 hour ?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [September 26, 2015, 7:38pm UTC](https://discuss.elastic.co/t/too-many-open-files/29969/2 "2015-09-26T19:38:09Z")

</div>

"dead time" closes open file handles after they are idle for the specified time period. So in your case, files should be closed if nothing has been written to them for an hour.

---

<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 6, 2017, 5:27am UTC](https://discuss.elastic.co/t/too-many-open-files/29969/3 "2017-07-06T05:27:56Z")

</div>

Closed on July 6, 2017, 5:27am UTC


