1837962 Members
2964 Online
110124 Solutions
New Discussion

Max nflocks reached

 
SOLVED
Go to solution
ASO MANUFACTORING
Occasional Contributor

Max nflocks reached

In our system there there was a lot of problem due to a file lock table full.
By a shell script (found in a document )we discovered that there were more than 190 entries in the kernel file lock table.
This is very strange as, I'm sure, there are only 2 products running (oracle 8.1 and vantive 8.2).
Now. The question is:
How can I discover what process keep those entries ?
Or
May be the kernel doesn't release these entries ?
Do anyone had an idea ?

Thank to all in advance
Always trouble
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Max nflocks reached

Hi:

Perhaps you have a great number of orphaned processes left around. See this thread for more suggestions:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x6f717e990647d4118fee0090279cd0f9,00.html

...JRF...
Kofi ARTHIABAH
Honored Contributor
Solution

Re: Max nflocks reached

The utility you want is lsof (it tells you what files are opened and by what process...) do search in the forums for lsof there have been a lot discussed about it earlier.

cheers
nothing wrong with me that a few lines of code cannot fix!
Carlos Fernandez Riera
Honored Contributor

Re: Max nflocks reached

In the fists versions of HP-UX 11.00 each telnet sessions need flocks. Im not sure if it remains, because we configured lots of flocks. This parameter must be higher than npty. A value of NPROC must be run ok.
unsupported
CHRIS_ANORUO
Honored Contributor

Re: Max nflocks reached

Check with "sar -v" to see if you have reached the maximum configured in kernel. or echo "nflock"/D|adb -k /stand/vmunix /dev/kmem. This will give you the size in the kernel.
You can also check the processes with lsof, download and install from http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.48/
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRIS_ANORUO
Honored Contributor

Re: Max nflocks reached

Check with "sar -v" to see if you have reached the maximum configured in kernel. or echo "nflock"/D|adb -k /stand/vmunix /dev/kmem. This will give you the size in the kernel.
You can also check the processes with lsof, download and install from http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.48/
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRIS_ANORUO
Honored Contributor

Re: Max nflocks reached

SORRY, "SAR -V" SHOULD BE "SYSDEF"
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Wade Satterfield
Occasional Advisor

Re: Max nflocks reached

While using adb will let you know the value of nflocks that was compiled into the kernel, adb will not tell you how much of that table is in use.

A new product was introduced in HP-UX 11.0. Kernel Resource Monitoring (KRM) and is available on the Support Plus CD. It think this is free.

Installing KRM requires the Event Monitoring Service (EMS), which is also on the same CD. EMS is also available at www.software.hp.com. It is a free download.

Once KRM and EMS are installed you can what percent of the file lock table is in use. You can use SAM to view this value, or use it to send you email when the table starts getting full.

Once you have a way to monitor the usage of your file lock table, you can experiment with stopping and starting different applications to see which is consuming the locks.