Operating System - HP-UX
1753796 Members
7061 Online
108799 Solutions
New Discussion юеВ

Maximum number of allowed open files

 
skt_skt
Honored Contributor

Maximum number of allowed open files

HP-UX 11.11

maxfiles 2048 - 2048
maxfiles_lim 8192 Y 8192

I have maxfiles set to 2048. But java application is hitting the limit at 1000. Any one know where can be the this setting at java side.

May 6 19:30:27 adea209p syslog: Java: Maximum number of allowed open files: 1000

May 6 19:40:38 adea209p syslog: Java: Number of open files: 1000

May 6 19:40:38 adea209p syslog: Java: Maximum number of allowed open files: 1000

May 6 19:45:38 adea209p syslog: Java: Number of open files: 1000

May 6 19:45:38 adea209p syslog: Java: Maximum number of allowed open files: 1000

May 6 20:00:28 adea209p syslog: Java: Number of open files: 1000

May 6 20:00:28 adea209p syslog: Java: Maximum number of allowed open files: 1000

5 REPLIES 5
Ganesan R
Honored Contributor

Re: Maximum number of allowed open files

Hi Santhosh,

Check this thread related to same issue. It say's ulimit value might have set for the user who starts java application.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1242909247454+28353475&threadId=1133656
Best wishes,

Ganesh.
skt_skt
Honored Contributor

Re: Maximum number of allowed open files


$kintana: sh ulimit -Sn
2048

$kintana: sh ulimit -Hn
8192

user settings are same as kernel limit.
Dennis Handly
Acclaimed Contributor

Re: Maximum number of allowed open files

>user settings are same as kernel limit.

This may be the nfile limit for total open files?
Not sure why it appears at exactly 1000?
skt_skt
Honored Contributor

Re: Maximum number of allowed open files


that wasn't the case. I check it by "sar -v 3 3" during the problem
Dennis Handly
Acclaimed Contributor

Re: Maximum number of allowed open files

>that wasn't the case.

If this is repeatable you may want to use "tusc -fp -o tusc.out" on your application and see where the error is occurring.