<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1044 "java.io.FileNotFoundException: /XXX/filename.ext (Too many open files)" error thrown on Linux</title><link>https://community.appian.com/support/w/kb/269/kb-1044-java-io-filenotfoundexception-xxx-filename-ext-too-many-open-files-error-thrown-on-linux</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1044 "java.io.FileNotFoundException: /XXX/filename.ext (Too many open files)" error thrown on Linux</title><link>https://community.appian.com/support/w/kb/269/kb-1044-java-io-filenotfoundexception-xxx-filename-ext-too-many-open-files-error-thrown-on-linux</link><pubDate>Tue, 14 Feb 2017 15:18:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48f71667-0da1-4ba2-b947-78ce45581969</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/269/kb-1044-java-io-filenotfoundexception-xxx-filename-ext-too-many-open-files-error-thrown-on-linux#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 3:18:05 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following error is shown in the application server log:&lt;/p&gt;
&lt;pre&gt;2015-08-17 09:44:37,569 [http-/0.0.0.0:8080-8] ERROR com.appiancorp.kougar.mapper.parameters.BeanParameterConverter - unexpected exception while accessing property  in 
java.io.FileNotFoundException: /XXX/filename.ext (Too many open files)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.(FileInputStream.java:138)
    at java.io.FileInputStream.(FileInputStream.java:93)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
    at java.net.URLConnection.getContent(URLConnection.java:739)
    at java.net.URL.getContent(URL.java:1052)
    at sun.reflect.GeneratedMethodAccessor5594.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.appiancorp.kougar.mapper.parameters.BeanParameterConverter.convert(BeanParameterConverter.java:44)
    at com.appiancorp.kougar.mapper.parameters.ArrayParameterConverter.convert(ArrayParameterConverter.java:25)
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The application server machine has reached the maximum number of open files.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Increase the maximum allowable number of file descriptors available to the user running Appian. The recommendation is 100000.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Check the current value of the maximum allowable number of file descriptors: &lt;/p&gt;
&lt;pre&gt;ulimit -n
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the value returned from previous step is less than 100000, then increase the limit.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;For a temporary solution (configuration will be reset after a server restart), run the following command: &lt;/p&gt;
&lt;pre&gt;ulimit -n 100000 
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For a permanent solution (configuration persists after a server restart), add the following to &lt;strong&gt;/etc/security/limits.conf&lt;/strong&gt;: &lt;/p&gt;
&lt;pre&gt;*      hard    nofile      100000
*      soft    nofile      100000
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Refer to &lt;a href="https://docs.appian.com/suite/help/latest/Prerequisites.html#Increase_Maximum_Open_File_Limit_for_the_Application_User_Account"&gt;Increase Maximum Open File Limit for the Application User Account&lt;/a&gt;&amp;nbsp;for more information.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian installed on Unix-based operating systems.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: October 2015&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, linux, application server&lt;/div&gt;
</description></item></channel></rss>