<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java program always hang.. message &amp;quot;Too many open files&amp;quot; appears sometime. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528296#M70141</link>
    <description>cat /proc/sys/fs/file-max&lt;BR /&gt;209689</description>
    <pubDate>Wed, 20 Apr 2005 05:19:02 GMT</pubDate>
    <dc:creator>NiCK_76</dc:creator>
    <dc:date>2005-04-20T05:19:02Z</dc:date>
    <item>
      <title>Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528293#M70138</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;perform command lsof will appear following error message.&lt;BR /&gt;java    21929 mms31   53u  sock                0,0          15544497 can't &lt;BR /&gt;identify protocol&lt;BR /&gt;java    21929 mms31   54u  sock                0,0          15544498 can't &lt;BR /&gt;identify protocol&lt;BR /&gt;java    21929 mms31   55u  sock                0,0          15544522 can't &lt;BR /&gt;identify protocol&lt;BR /&gt;java    21929 mms31   56u  sock                0,0          15544523 can't &lt;BR /&gt;identify protocol&lt;BR /&gt;java    21929 mms31   57u  sock                0,0          15544562 can't &lt;BR /&gt;identify protocol&lt;BR /&gt;........&lt;BR /&gt;&lt;BR /&gt;my platform:&lt;BR /&gt;Redhat enterprice AS3 update 4  x86_64&lt;BR /&gt;j2sdk1.4.2_03&lt;BR /&gt;CPU Intel(R) Xeon(TM) CPU 2.80GHz *2 &lt;BR /&gt;MEMORY 2G&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;NiCK &lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2005 23:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528293#M70138</guid>
      <dc:creator>NiCK_76</dc:creator>
      <dc:date>2005-04-19T23:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528294#M70139</link>
      <description>Seems like you may want to increase the number of open files permitted with the kernel.&lt;BR /&gt;&lt;BR /&gt;If I'm right, adding memory will do no good. &lt;BR /&gt;&lt;BR /&gt;Java could stand some patching though.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 19 Apr 2005 23:35:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528294#M70139</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-04-19T23:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528295#M70140</link>
      <description>check the value of /proc/sys/fs/file-max.&lt;BR /&gt;&lt;BR /&gt;cat /proc/sys/fs/file-max&lt;BR /&gt;&lt;BR /&gt;if the value is low increase the number.&lt;BR /&gt;&lt;BR /&gt;echo 10000 &amp;gt; /proc/sys/fs/file-max&lt;BR /&gt;&lt;BR /&gt;This will change the kernel limit.No need to reboot.</description>
      <pubDate>Wed, 20 Apr 2005 00:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528295#M70140</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2005-04-20T00:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528296#M70141</link>
      <description>cat /proc/sys/fs/file-max&lt;BR /&gt;209689</description>
      <pubDate>Wed, 20 Apr 2005 05:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528296#M70141</guid>
      <dc:creator>NiCK_76</dc:creator>
      <dc:date>2005-04-20T05:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528297#M70142</link>
      <description>More likely its a problem with the ulimit set for the user you are running the program as.&lt;BR /&gt;&lt;BR /&gt;If you use bash you can check the number of open files allowed by the shell with the following command:&lt;BR /&gt;&lt;BR /&gt;ulimit -f &lt;BR /&gt;&lt;BR /&gt;or all limits with this:&lt;BR /&gt;&lt;BR /&gt;ulimit -a &lt;BR /&gt;&lt;BR /&gt;ulimit is built into bash.  All its documentation is in the bash man page.&lt;BR /&gt;&lt;BR /&gt;man bash then search for ulimit.&lt;BR /&gt;&lt;BR /&gt;--Dave</description>
      <pubDate>Wed, 20 Apr 2005 10:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528297#M70142</guid>
      <dc:creator>Dave Falloon</dc:creator>
      <dc:date>2005-04-20T10:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528298#M70143</link>
      <description>Woops, ulimit -f is the file size switch, you'll want the -n&lt;BR /&gt;&lt;BR /&gt;snipped from the man page:&lt;BR /&gt;&lt;BR /&gt; -n     The maximum number of open file descriptors&lt;BR /&gt;&lt;BR /&gt;--Dave</description>
      <pubDate>Wed, 20 Apr 2005 10:43:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528298#M70143</guid>
      <dc:creator>Dave Falloon</dc:creator>
      <dc:date>2005-04-20T10:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528299#M70144</link>
      <description>I use ulimit to change number of open file to 2048, but problem still happen.&lt;BR /&gt;&lt;BR /&gt;Anything else?&lt;BR /&gt;&lt;BR /&gt;Now,I upgrade jdk from 1.4.2-03 to 1.4.2-08 to have a try.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Apr 2005 07:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528299#M70144</guid>
      <dc:creator>NiCK_76</dc:creator>
      <dc:date>2005-04-21T07:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java program always hang.. message "Too many open files" appears sometime.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528300#M70145</link>
      <description>You could try ulimit -n unlimited&lt;BR /&gt;&lt;BR /&gt;I remember having trouble with a Analog CAD tool that used this really clunky java GUI and it would spawn a hundred garbage file descriptors anytime you clicked on a icon so eventually it would tank with too many open files.&lt;BR /&gt;&lt;BR /&gt;If it still doesn't work then it could be your /proc/sys/fs files like other people have said:&lt;BR /&gt;&lt;BR /&gt;file-max&lt;BR /&gt;inode-max ( if your system has an inode-max file )&lt;BR /&gt;&lt;BR /&gt;--Dave</description>
      <pubDate>Fri, 22 Apr 2005 15:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/java-program-always-hang-message-quot-too-many-open-files-quot/m-p/3528300#M70145</guid>
      <dc:creator>Dave Falloon</dc:creator>
      <dc:date>2005-04-22T15:22:36Z</dc:date>
    </item>
  </channel>
</rss>

