• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

7.5.3 apache random crashing

N

Naughty

Guest
Since begin this week, apache is randomly crashing. Weird thing is, cant find anything in any log file.

Even Sim say that apache was up during the time it was down!
Well, meaby it its up, but no page can be reached.

Anyone else an idea what i can check?
 
If Apache is really running and sites cannot be accessed, I would then look at if you have any bandwidth limiting installed (bw_mod, mod_throttle, etc) or things like dosevasive. It may be something like those are kicking in and limiting connections either from too low a threshold or from an actual attack (like a flood).

You said 'since begin this week' it began. Was there anything changed, installed or updated at the beginning of the week?
 
Originally posted by jamesyeeoc
If Apache is really running and sites cannot be accessed, I would then look at if you have any bandwidth limiting installed (bw_mod, mod_throttle, etc) or things like dosevasive. It may be something like those are kicking in and limiting connections either from too low a threshold or from an actual attack (like a flood).

You said 'since begin this week' it began. Was there anything changed, installed or updated at the beginning of the week?

update to Plesk 7.5.3 :x
 
Have you specifically checked the following logs:

/home/httpd/vhosts/yourdomain.com/statistics/logs/error_log
/home/httpd/vhosts/yourdomain.com/statistics/logs/access_log

/var/log/httpd/error_log
/var/log/httpd/access_log

and

/var/log/messages
 
i did check em out before and did again now but still cant find anything special in any of them

only thing what i think it can be:
- buggy frontpage extentions, because i see a try to reach some map in the logs just before it crashes
or
- some guy is hosting maps and stuff for his counter-strike server and to many request on new maps at map change

or something like that


httpd.conf:
<IfModule prefork.c>
StartServers 2
MinSpareServers 1
MaxSpareServers 5
MaxClients 10
MaxRequestsPerChild 1000
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 10
MinSpareThreads 1
MaxSpareThreads 4
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

i dont know **** about prefork.c and worker.c but shoudnt max clients be at last more then 100? (150 or 300)
 
I would certainly think so.

I would bump these values up:

<IfModule prefork.c>
StartServers 2
MinSpareServers 1
MaxSpareServers 5
MaxClients 10

<IfModule worker.c>
StartServers 2
MaxClients 10
MinSpareThreads 1
MaxSpareThreads 4

By how much depends on many things. Hopefully your server is not underpowered (CPU, RAM, etc), is this server 'busy' or 'light' load?
 
Start with this, but you may still have to make additional adjustments (remember to restart apache/httpd after saving changes):

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 1000
</IfModule>

<IfModule worker.c>
StartServers 4
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
 
Back
Top