Subject: Re: [vserver] Problem with locks
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Sat, 17 Mar 2012 03:13:09 +0100

On Fri, Mar 16, 2012 at 04:59:54PM +0100, PSTM wrote:
> Hello,
> I have a problem with a VPS. 

What version of Linux-VServer (kernel/patch) is running there?

> When I speak with support about it, they said 
> that "it's my problem".

> After reinstall all software CentOS 6 problem persist.
> Really, before doing something about it, I 
> need know where the problem is.

> After some time programs fail to work:

> Mar 13 09:54:53 vs2706 postfix/tlsmgr[5176]: fatal: cannot lock PRNG 
> exchange file /var/lib/postfix/prng_exch: Cannot allocate memory
> Mar 13 09:54:54 vs2706 postfix/master[881]: warning: process 
> /usr/libexec/postfix/tlsmgr pid 5176 exit status 1
> Mar 13 09:54:54 vs2706 postfix/master[881]: warning: 
> /usr/libexec/postfix/tlsmgr: bad command startup -- throttling

> updatedb: can not lock `/var/lib/mlocate/mlocate.db': No locks available

> Seems that have not locks available. 

looks like ...

> In support said that I have too much locks > 20000. 
> But with lslk I only can see two mine.

I wouldn't trust lslk too much, it is a rather ancient
tool and probably misses quite a lot (similar to ifconfig)

> Any suggestion?

find what creates filesystem locks and doesn't release
them when done and fix the software ...

HTH,
Herbert