Apache Mod-Python - new mod_python faq (fwd)

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > July 2006 > new mod_python faq (fwd)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author new mod_python faq (fwd)
Gregory (Grisha) Trubetskoy

2006-07-18, 1:12 am


This was sent to me directly, anyone willing to act on it? (I don't have
the CPU cycles right now).

---------- Forwarded message ----------
Date: Mon, 17 Jul 2006 18:12:07 +0200
To: grisha@ispol.com
Subject: new mod_python faq

I think may be useful to add this question:

2.30. Why do I get "No space left on device: Failed to create global
mutex" ?

Because mod_python has get all the available semaphores of your os.
To avoid this error on GNU/Linux do
#ipcs (to see all locked semaphores)
#for i in `ipcs | grep "www-data" | awk '{print $2}'`; do ipcrm -s $i;
done

www-data is the user which runs apache[12] (in Debian)
In this way you release all resources locked by apache[12]

If you want to increase the number of available semaphores append
kernel.sem = 512 32000 100 512
to your /etc/sysctl.conf
and do
#sysctl -p

------------------------------
Some of the content has benne derived from
http://www.modpython.org/pipermail/...ril/017858.html

You can change anything you want of course
Thank you for the great work
(even if configuring mod_python in debian is painfully... )


Jim Gallacher

2006-07-18, 1:13 pm

I'll deal with it.

Jim

Gregory (Grisha) Trubetskoy wrote:
>
> This was sent to me directly, anyone willing to act on it? (I don't have
> the CPU cycles right now).
>
> ---------- Forwarded message ----------
> Date: Mon, 17 Jul 2006 18:12:07 +0200
> To: grisha@ispol.com
> Subject: new mod_python faq
>
> I think may be useful to add this question:
>
> 2.30. Why do I get "No space left on device: Failed to create global
> mutex" ?
>
> Because mod_python has get all the available semaphores of your os.
> To avoid this error on GNU/Linux do
> #ipcs (to see all locked semaphores)
> #for i in `ipcs | grep "www-data" | awk '{print $2}'`; do ipcrm -s $i;
> done
>
> www-data is the user which runs apache[12] (in Debian)
> In this way you release all resources locked by apache[12]
>
> If you want to increase the number of available semaphores append
> kernel.sem = 512 32000 100 512
> to your /etc/sysctl.conf
> and do
> #sysctl -p
>
> ------------------------------
> Some of the content has benne derived from
> http://www.modpython.org/pipermail/...ril/017858.html
>
> You can change anything you want of course
> Thank you for the great work
> (even if configuring mod_python in debian is painfully... )
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com