Score:0

Apache processes and threads hanging

cn flag

I have apache on some of my servers using mpm_prefork, and from time to time processes start getting busy in W and hanging there forever. This actually happens on the prod server only, and at the end of the day I have like 50-60 stuck processes, and then a cron job restarts the apache at 3am to clear out the garbage. The problem with this is mainly the OLTP issue, but also I wouldn't expect this behavior. I checker the request that are "stuck" there, all of them gives response and then the status stays in W and eats up the slot.

So I got the idea that mb if I switch to mpm_event, then I'll have less issues. So I have a CI, DEV and a test/prod server. All of these are originally a copy of the CI server - instances on AWS EC2. So CI, DEV was fine, then I updated the config on the PROD - only deactivated mpm_prefork, and activated mpm_event, and the requests ate up all the free threads in like 10 minutes. There was 150 in total. I got a picture about this as well. enter image description here

My question is; what's going on? How to solve this issue? So I just want a properly functioning webserver, that does exactly what it should, without any random issues.

Romeo Ninov avatar
in flag
Post text, not image.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.