<?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:open files error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013762#M299136</link>
    <description>Thanks Clay. Shalom (again) Steve, yes this is HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe.</description>
    <pubDate>Tue, 05 Jun 2007 19:50:39 GMT</pubDate>
    <dc:creator>joe_91</dc:creator>
    <dc:date>2007-06-05T19:50:39Z</dc:date>
    <item>
      <title>Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013746#M299120</link>
      <description>Here is the error from syslog&lt;BR /&gt; &lt;BR /&gt;syslog: Java: Number of open files: 1024&lt;BR /&gt;Jun  5 08:17:32  syslog: Java: Maximum number of allowed open files: 1024&lt;BR /&gt;&lt;BR /&gt;The current nfile setting is 50000. maxfiles and maxfiles_lim are both 2048.&lt;BR /&gt;&lt;BR /&gt;Does this require a kernel parm change. I can't think of any other parameter for these open files error. no other error in syslog. Please advise.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 14:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013746#M299120</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2007-06-05T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013747#M299121</link>
      <description>Looks like you will have to drop the maxfile limit from 2048 to 1024 for the particular user who own the java processes. nfile can stay the same as it is system-wide while maxfile and maxfiles_lim are soft and hard limits on a per process basis.</description>
      <pubDate>Tue, 05 Jun 2007 15:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013747#M299121</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-06-05T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013748#M299122</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Yes it probably requires a kernel change.&lt;BR /&gt;&lt;BR /&gt;Check maxuprc&lt;BR /&gt;&lt;BR /&gt;Thats probably the problem.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 05 Jun 2007 15:39:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013748#M299122</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-05T15:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013749#M299123</link>
      <description>It's possible that a ulimit has been issued which has reduced the per process maximum number of files.  Normally, you should set maxfiles_lim &amp;gt; maxfiles.&lt;BR /&gt;&lt;BR /&gt;Before invoking java, issue a&lt;BR /&gt;ulimit -Sn&lt;BR /&gt;and ulimit -Hn&lt;BR /&gt;to display the soft and hard limits, respectively.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 15:41:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013749#M299123</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-06-05T15:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013750#M299124</link>
      <description>Is the an ulimit set for the user executing the java program?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jov&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 16:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013750#M299124</guid>
      <dc:creator>Jov</dc:creator>
      <dc:date>2007-06-05T16:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013751#M299125</link>
      <description>current ulimit settings as follows&lt;BR /&gt;&lt;BR /&gt;# ulimit -Sa&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         2015464&lt;BR /&gt;stack(kbytes)        8192&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;&lt;BR /&gt;# ulimit -Ha&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         2015464&lt;BR /&gt;stack(kbytes)        8192&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     unlimited&lt;BR /&gt;&lt;BR /&gt;Also clay, ulimit -Sn and ulimit -Hn, is that the correct command?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe</description>
      <pubDate>Tue, 05 Jun 2007 16:05:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013751#M299125</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2007-06-05T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013752#M299126</link>
      <description>Shalom Steve:&lt;BR /&gt;&lt;BR /&gt;The maxuprc is set at 2550. I am not sure where it thinks the open files for java is set to 1024. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe.</description>
      <pubDate>Tue, 05 Jun 2007 16:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013752#M299126</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2007-06-05T16:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013753#M299127</link>
      <description>Yes, the 'ulimit -Sn' and 'ulimit -Hn' commands are correct.  They display the (S)oft and (H)ard limits for '-n' which is the number of file descriptors.&lt;BR /&gt;&lt;BR /&gt;For more information on 'ulimit' have a look at the man page for whatever shell you are using.&lt;BR /&gt;&lt;BR /&gt;If POSIX (the HP-UX default /usr/bin/sh or /sbin/sh (for root) ) then do 'man sh-posix' and search for 'ulimit'.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 16:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013753#M299127</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-06-05T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013754#M299128</link>
      <description>maxuprc is irrelevant.  maxuprc is the maximum number of processes (NOT files) per user.</description>
      <pubDate>Tue, 05 Jun 2007 16:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013754#M299128</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-06-05T16:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013755#M299129</link>
      <description>here is what i get. I run HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;# ulimit -Sn&lt;BR /&gt;ksh: ulimit: bad option(s)&lt;BR /&gt;# ulimit -Hn&lt;BR /&gt;ksh: ulimit: bad option(s)&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe</description>
      <pubDate>Tue, 05 Jun 2007 16:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013755#M299129</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2007-06-05T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013756#M299130</link>
      <description>Since you are posting in the HP-UX Forum, I am making the silly assumption that this is an HP-UX box. The ulimit command I supplied assumed that you were running the POSIX shell --- as you should be. The ulimit -Xa output makes me think that you are running the Korn shell. Ksh does not display the nofiles (number of file descriptors per process) value.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 16:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013756#M299130</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-06-05T16:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013757#M299131</link>
      <description>OK. i changed the shell to sh and the commands ulimit -Sn and ulimit -Hn comes back with 2048. I think with ksh it takes the default value 1024..is that correct?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe</description>
      <pubDate>Tue, 05 Jun 2007 16:28:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013757#M299131</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2007-06-05T16:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013758#M299132</link>
      <description>Thanks Clay. MY BAD.So, is that all that is required a change of shell for that user who launches java. i see the ulimit -Sn and ulimit -Hn both give 2048 now.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe</description>
      <pubDate>Tue, 05 Jun 2007 16:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013758#M299132</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2007-06-05T16:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013759#M299133</link>
      <description>It is possible that having that user change their shell from ksh to sh will work.  There's only one way to really know thoug....Try it.</description>
      <pubDate>Tue, 05 Jun 2007 16:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013759#M299133</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-06-05T16:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013760#M299134</link>
      <description>Now the bad news is that Java itself may be using a setrlimit(RLIMIT_NOFILE,...) system call to set the maxfiles value either to a hard-coded limit or by a value controlled in some configuration file. In any event, if you still are having problems I would increase maxfiles and maxfiles_lim but this time set maxfiles &amp;lt; maxfiles_lim because any well-written application is going to make that assumption at least initially. You could start your java under tusc (or attach it after starting if it doesn't immediately die) and see if getrlimit and/or setrlimit are being called.</description>
      <pubDate>Tue, 05 Jun 2007 17:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013760#M299134</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-06-05T17:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013761#M299135</link>
      <description>Shalom Joe,&lt;BR /&gt;&lt;BR /&gt;If all limits are set higher than 1024 and this is still happening, then it probably is a Java issue.&lt;BR /&gt;&lt;BR /&gt;Then its time to go to sun and report it.&lt;BR /&gt;&lt;BR /&gt;What other OS's have maxfiles_lim and maxuprc other than HP-UX.&lt;BR /&gt;&lt;BR /&gt;This IS a HP-UX box is it not?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 05 Jun 2007 17:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013761#M299135</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-05T17:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Java:open files error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013762#M299136</link>
      <description>Thanks Clay. Shalom (again) Steve, yes this is HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Joe.</description>
      <pubDate>Tue, 05 Jun 2007 19:50:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-open-files-error/m-p/4013762#M299136</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2007-06-05T19:50:39Z</dc:date>
    </item>
  </channel>
</rss>

