System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

No space left on device: apr_proc_mutex_lock failed

SOLVED
Go to solution
Mike Phillips_1
Occasional Advisor

No space left on device: apr_proc_mutex_lock failed


When starting Apache we are getting this message: No space left on device: apr_proc_mutex_lock failed

I saw this thread:

http://forums11.itrc.hp.com/service/forums/postQuestion.do?categoryId=156&forumId=1

But Glance tells me we are no where near running out of any of the listed kernel params, memory, swap or anything else. Has anyone received this message and found it to be caused by any other kernel params or outside sources?

We are running Apache 2.0.47 bundled with Websphere on HPUX 11.11.
Thanks!
7 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: No space left on device: apr_proc_mutex_lock failed

Hi Mike:

The "No space left on device" refers to a filesystem that is full.

Regards!

...JRF...
Mike Phillips_1
Occasional Advisor

Re: No space left on device: apr_proc_mutex_lock failed

Yes, you would expect to see that in the case of a full file system but that is not the issue, none of the file systems are full or nearly full. I should have specified that in my original post.

It appears that Apache will also report "no space on device" when it hits kernel limits as well.

Thanks!
Duncan Edmonstone
Honored Contributor
Solution

Re: No space left on device: apr_proc_mutex_lock failed

Mike,

Here is a set of "recommended" kernel parms for apache - I can't say they are right for you, but if any of yours are significantly elow these numbers you might want to adjust them up:

maxdsiz (recommended value 0X40000000)
maxssiz (recommended value 0X17f00000)
maxtsiz (recommended value 0X40000000)
max_thread_proc (recommended value 2048)
maxuprc (recommended value 512)
nproc (recommended value 2048)
nkthread (recommended value 6000)


HTH

Duncan

HTH

Duncan
Mike Phillips_1
Occasional Advisor

Re: No space left on device: apr_proc_mutex_lock failed

Wow, some of those are kind of high for just for Apache. I definitely need a little beefing up in some areas. I will recommend we increase some of those and see where that gets us. I'll report back once we have done that.

Thanks!
Mike Phillips_1
Occasional Advisor

Re: No space left on device: apr_proc_mutex_lock failed

I increased max_thread_proc, maxssiz, maxtsiz and maxuprc, the other params were already increased. Apache appears to be running!

I suspect maxssiz and maxtsiz may have had the most impact as they were still set at defaults so the increase was huge.

Thanks!
Mike Phillips_1
Occasional Advisor

Re: No space left on device: apr_proc_mutex_lock failed

Case closed!
Dennis Handly
Acclaimed Contributor

Re: No space left on device: apr_proc_mutex_lock failed

>I suspect maxssiz and maxtsiz may have had the most impact

maxtsiz has no impact since nobody writes programs that large.

I would suggest you put back maxssiz since this will decrease maxdsiz. You don't need 400 Mb for your stack size.