1753940 Members
9514 Online
108811 Solutions
New Discussion юеВ

no locks available

 
SOLVED
Go to solution
Brian Bientz
Advisor

no locks available

When trying to send mail from the development server, we are getting:

cannot lockf(....): No locks available.

If I'm not mistaken, there is an flocks kernal parameter. Does this need to be increased?
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: no locks available

Brian,

From SAM's help on configurable parameters for nflocks;
Description
nflocks gives the maximum number of file/record locks that are
available system-wide. When choosing this number, note that one file
may have several locks and databases that use lockf() may need
an exceptionally large number of locks.

Open and locked files consume memory and other system resources.
These resources must be balanced against other system needs to
maintain optimum overall system performance. Achieving an optimum
balance can be quite complex, especially on large systems, because of
wide variation in the kinds of applications being used on each system
and the number and types of applications that might be running
simultaneously, the number of local and/or remote users on the
system, and many other factors.
Related Parameters
None.

I'd try increasing it.

Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: no locks available

Hi Brian:

Yes, I would increase the kernel parameter 'nflocks'. 'nflocks' controls the maximum number of file locks available system-wide to all processes.

Regards!

...JRF...
T G Manikandan
Honored Contributor
Geetha Alagappan
Regular Advisor

Re: no locks available

I had the same problem. I increased nflocks and it worked. The default is 200; increasing this will fix the problem.
hercules
MANOJ SRIVASTAVA
Honored Contributor

Re: no locks available

Hi Brian


Also you can monitor is using glance--->next keys---->Stystabls.

This will give you the real time usage , but increase it first.


Manoj Srivastava