1753946 Members
7370 Online
108811 Solutions
New Discussion юеВ

Re: too many open files

 
SOLVED
Go to solution
Patrice Blanchard_2
Frequent Advisor

too many open files

Hi,

i have this message in my syslog.log from time to time.

rm_log_init: fopen of file /etc/opt/resmon/log/client.log failed: Too many open files

can anybody tell me what does it stand for and how to fix it?

Regards.

PB
9 REPLIES 9
Manix
Honored Contributor

Re: too many open files

Check the usage of 'nfile' ,'maxfiles' and 'maxfiles_lim' kernal parameter.

what is the OS HPUX version ?

do post sar -v 5 5 output as well

Do check the system table in glance for the
proc & file consumptions.

http://h30499.www3.hp.com/t5/System-Administration/Too-Many-Open-Files-error-message/m-p/4375445#M347864

HP-UX been always lovable - Mani Kalra
Patrice Blanchard_2
Frequent Advisor

Re: too many open files

we're on HP-UX 11.23

maxfiles is static, current value 2048
next boot value -
default value 2048
usage -

maxfiles_lim is dynamic, current value 4096
next boot value 4096
default value 4096
usage 50%

PB
Manix
Honored Contributor

Re: too many open files

please run kcusage -d for each of the
three tunable i mentioned.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
Patrice Blanchard_2
Frequent Advisor

Re: too many open files

kcusage -d maxfiles_lim returns:
Usage %
2048 50.00

kcusage -d maxfiles returns:
Unsupported Tunable: maxfiles

PB
Dennis Handly
Acclaimed Contributor
Solution

Re: too many open files

>can anybody tell me what does it stand for and how to fix it?

If it has more than 2048 open files now, you may want to stop/start this process.

>Usage %: 2048 50.00

Hmm, if only 50%, why too many files open?
Manix
Honored Contributor

Re: too many open files

Can we see 'kcusage -d nfile"

http://docs.hp.com/en/939/KCParms/KCparam.Nfile.html
HP-UX been always lovable - Mani Kalra
Patrice Blanchard_2
Frequent Advisor

Re: too many open files

I had to reboot my servers last weekend for something else.

I do not see the message anymore.

Thanks for all the help for this.

Regards.
Manix
Honored Contributor

Re: too many open files

Thats good !!
I would still appreciate if you may monitor the
usage of "maxfiles ,maxfiles_lim & nfile" with
kcusage -d.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
Ismail Azad
Esteemed Contributor

Re: too many open files

Hi,

You can monitor with kcusage as mentioned or configure an alarm with kcalarm or to the root mail, so that you know the tunable is exceeding the threshold.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....