Operating System - HP-UX
1826451 Members
4316 Online
109692 Solutions
New Discussion

Re: Monitoring File Locks

 
Jim Adamson
Frequent Advisor

Monitoring File Locks

How can I monitor the number of file locks in hpux 11.11. The host is a C360 workstation.

We had a problem with sendmail this morning. The mail.log showed multiple message - 'Failed to lock /var/spool/mqueue (mail header number) with unexpected error. No locks available'.

I have increased nflocks from 200 to 800 and increased nfile from 3000 to 12000, and rebuilt the kernel.

The problem seems to have been caused by us receiving around 2000 junk messages this morning. This caused sendmail to fail and hpux problems. I'm now trying to strengthen the machine against this happening again. So how can I now check file lock usage.
thanks in advance,
Jim Adamson
Oh dear
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Monitoring File Locks

If you have Glance (and you really ought to), the System Tables Report will show you the nflocks info: current, high water mark, etc.


Pete

Pete
Ross Zubritski
Trusted Contributor

Re: Monitoring File Locks

Fire up Glance Plus and type "t". This will show you system tables.

Regards,

RZ
Jim Adamson
Frequent Advisor

Re: Monitoring File Locks

Guys, we do not have Glance Plus though I do have trial version on an application CD.

Any non-Glace methods available?
Jim
Oh dear
Michael Steele_2
Honored Contributor

Re: Monitoring File Locks

Glance can get the information as below.

$echo "print tbl_file_lock_util " >> file

$glance -j 1 -i 1 -adviser_only -syntax test

You can what percent of the file lock table is in use with Kernel Resource Monitoring (KRM) which is available on the Support Plus CD.

"...sysdef..." will report nflock kernel parameters.

sysdef | grep -i nflock
Support Fatherhood - Stop Family Law
Dietmar Konermann
Honored Contributor

Re: Monitoring File Locks

1) Use a recent EMS version with KRM:

# resls -s /system/kernel_resource/file_system/nflocks
Contacting Registrar on hprtdd32

NAME: /system/kernel_resource/file_system/nflocks
DESCRIPTION: Percentage of file lock table consumption.
TYPE: /system/kernel_resource/file_system/nflocks is a Resource Instance
whose values are 64-bit floating point values.

There are no active monitor requests reported for this resource.

The current value of the resource is 2.343750


2) Use Q4, see Doc KBRC00008493
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062909254

Best regards...
Dietmar.

"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Ramkumar Devanathan
Honored Contributor

Re: Monitoring File Locks

Michael,

just correcting a typo -

$echo "print tbl_file_lock_util " >> file

$glance -j 1 -i 1 -adviser_only -syntax file

your post mentioned this -

$glance -j 1 -i 1 -adviser_only -syntax test

- ramd.
'cosmetic change...'
HPE Software Rocks!