I was aware of those particular specifics.
Regarding maintainment, it is both, we can manage it as we have root access and we can ask hosting to do things for us like recompile apache, etc. Although this support is limited.
How i solve the problem now?
- I delete semaphores and restart apache when their number.
Regarding your methods - i am not sure we can hack the kernel code to raise the limit, however 'shut down other apps running with semaphores that are not required', sounds like an option - what could be such apps that require semaphores.
If you need more info let me know. I really do not feel good about having to SSH my server each three or four days, delete semaphores and restart apache
My suspection is that this is Apache problem, so i have one reserved optional solution is ask hosting to recomile apache. However, i am not sure this will help much.
I also have a question, can mod_rewrite .htaccess rules cause this problem somehow?
No, if you don't own the box, you can't hack the kernel. The problem is I just don't know enough about your setup to make a valid diagnosis; I fell like I am shooting randomly.
OK. Let's start with this.
What version of Apache? What OS at what level and what kernel? Run an ipcs and post the results.
Do you have AcceptMutex <something> in your httpd.conf? If so, what is it? Do these boxes run anything else? Middleware?
Anything else you can think of that might be helpful, would be good to post.
Cheers.