# Resolving "Too many open files" DVServer exception on Linux

**URL:** <https://community.cdata.com/t/resolving-too-many-open-files-dvserver-exception-on-linux/767>\
**Category:** CData Virtuality \[Archived\]\
**Tags:** article, cdata-virtuality\
**Created:** [June 10, 2024, 4:27pm UTC](https://community.cdata.com/t/resolving-too-many-open-files-dvserver-exception-on-linux/767 "2024-06-10T16:27:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@anonymous](https://community.cdata.com/u/anonymous)\
**Post date:** [June 10, 2024, 4:27pm UTC](https://community.cdata.com/t/resolving-too-many-open-files-dvserver-exception-on-linux/767/1 "2024-06-10T16:27:30Z")

</div>

Sometimes DVServer starts to report the following exceptions in logs:

_04:46:04,054 WARNING [io.netty.channel.DefaultChannelPipeline] (NIO0) An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.:&nbsp; **java.io.IOException: Too many open files** _

The server may go unresponsive or even stop due to those errors.

This happens because the set limit of open files is too restrictive (1024 by default), either system-wide or, most probably, for a particular user that runs DVServer. To extend the user’s limit edit the system “limits.conf” configuration file adding the following lines:

```auto
<username> soft nofile 65536<username> hard nofile 65536

```

The \<username\> placeholder should be replaced with actual system user name or with asterisk “\*” to increase the limit for all users.&nbsp;  
The “limits.conf” configuration file resides in /etc/security directory on most modern Linux distributions, but this may very, consult with particular Linux distribution documentation.

To extend the system-wide limit edit the /etc/sysctl.conf file adding or changing the following setting:

```auto
fs.file-max = 262144

```

To apply the new setting run the following command:

```auto
sysctl -p

```

and it may also require the DVServer restart.
