Operating System - HP-UX
1833582 Members
3659 Online
110061 Solutions
New Discussion

How can I know if max open file was reached on OS

 
Hidehito Maruta
Occasional Contributor

How can I know if max open file was reached on OS

As I mentioned avobe I would like to know whether max open files(nfile) was overed.
I can see number of files which is being opened currently with glance but for past info I'm no idea.
Please give me any idea for this.

Regards
Hide
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: How can I know if max open file was reached on OS

Hi Hide,

-Quote-

MANOJ SRIVASTAVA
May 01, 2002 16:04 PM GMT [ unassigned ]

--------------------------------------------------------------------------------
Hi Christopher


Do a sar -v 2 10 and you can get the dynamic values og nfile , nproc and ninodes , you can increase the same using SAM.It looks the nfile is getting saturated.
Manoj Srivstava

-quote-

James R. Ferguson


July 20, 2001 11:08 AM GMT [ unassigned ]

--------------------------------------------------------------------------------
Hi Kevin:

Insofar as measuring file, inode and process table sizes, 'sar -v' is quite useful as is Glance's [t]able screen. For file table metrics, 'sar' reports the current, the maximum and the number of times an overflow has occured.


Hope it helps.

Kind regards,

Robert-jan.

Patrick Wallek
Honored Contributor

Re: How can I know if max open file was reached on OS

If you have measureware and perfview installed you MIGHT be able to see the number of open files at any point in time.

The only way I know of the determine if the nfile limit was reached is to look in /var/adm/syslog/syslog.log for any error messages telling you that the limit was reached.
Yogeeraj_1
Honored Contributor

Re: How can I know if max open file was reached on OS

hi,
to add to above replies, please note that you can also use Glance+ System Table report.

Example report:
============================================================
--------------------------------------------------------------------------------
SYSTEM TABLES REPORT Users= 1

System Table Available Used Utilization High(%)
--------------------------------------------------------------------------------
Proc Table (nproc) 4116 435 11 11
File Table (nfile) 63798 3206 5 5
Shared Mem Table (shmmni) 512 14 3 3
Message Table (msgmni) 4116 2 0 0
Semaphore Table (semmni) 4096 27 1 1
File Locks (nflocks) 4096 74 2 2
Pseudo Terminals (npty) 60 0 0 0
Buffer Headers (nbuf) na 77724 na na
============================================================


Hope this helps!

Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Dave Wherry
Esteemed Contributor

Re: How can I know if max open file was reached on OS

Using Glance you can see if nfile has hit 100%. Start Glance and hit "t" to go to the system tables. The right column shows the high water mark for several items.
It will not tell you when it happened but, you will see if it has hit 100%. At that point you know you should probably increase it.
Jeff Schussele
Honored Contributor

Re: How can I know if max open file was reached on OS

Hi Hidehito,

Normally if nfile is execeeded you *should* find an entry in /var/adm/syslog/syslog.log stating date/time it occurred.
Run the following
grep -i nfile /var/adm/syslog/syslog.log

Now if it is/was max files/process then these may not log an entry in syslog. These kernel params are
maxfiles (soft limit/process)
maxfiles_limk (hard, absolute limit/process)

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!