Web Hosting Talk







View Full Version : apache troubles


exploiter
11-10-2002, 12:47 PM
eek, apache has been going down randomly for a few days now was wondering whats going on.. since i'm no apache expert, I was wondering if anyone here knew? I get this in my error logs..:

[Sat Oct 26 22:52:45 2002] [warn] long lost child came home! (pid 2379)
[Sat Oct 26 22:52:45 2002] [warn] long lost child came home! (pid 2378)

[Sat Oct 26 22:56:23 2002] [warn] long lost child came home! (pid 2828)
[Sat Oct 26 22:56:23 2002] [warn] long lost child came home! (pid 2827)
[Sat Oct 26 22:56:23 2002] [warn] long lost child came home! (pid 2826)

anyone know whats up?

thanks in advance.

mind21_98
11-11-2002, 06:24 PM
It's probably CPanel restarting Apache every ten minutes or so. I would check StartServers and make sure it's the same as MinSpareServers. (to decrease restart time)

exploiter
11-12-2002, 08:18 AM
but i don't have Cpanel installed. ;) only ensim.

mind21_98
11-12-2002, 10:29 AM
Originally posted by exploiter
but i don't have Cpanel installed. ;) only ensim.

The same info about MaxSpareServers/MinSpareServers should still apply then. :) It's more of an Apache issue than any control panel. :)

exploiter
11-12-2002, 02:24 PM
ah.

MinSpareServers & StartServers are the same (5) , MaxSpareServers is 10.. this normal?

thanks for your help.

mind21_98
11-12-2002, 05:59 PM
Yeah. That's what is configured on every Apache system by default. In order to determine what exactly you need for Min/MaxSpareServers, run this command:

ps aux | grep apache | wc -l

It should print out a number. That's approximately the number of requests being served at once at the present moment. Make sure MinSpareServers and StartServers is slightly below that number and make sure MaxSpareServers is slightly above it. (for instance, if that command prints out 100, try using 50 and 150 for MinSpareServers and MaxSpareServers)

I hope that helps.

exploiter
11-13-2002, 01:00 PM
ahh excellent. :)

thanks alot for your help.

theavdhesh
11-14-2002, 03:09 AM
HI,
I have apache with 512 MB ram. THe webserver serves static content with lots of traffic. I check the server-status to find out that the server restarts itself every 24 odd hours. It has ensim installed with logrotation. Isn't the big log file causing problems
.

Restart Time: Sunday, 10-Nov-2002 16:41:10 IST
Restart Time: Monday, 11-Nov-2002 16:37:33 IST
Restart Time: Wednesday, 13-Nov-2002 16:35:27 IST

Regards.

exploiter
11-14-2002, 09:36 AM
umm, some kind of cron job?
what do your apache logs say?