httpd processes
I am running a fairly high traffic website (www.planetside-universe.com) and I am seeing some strange things with HTTPD, that I didnt have prior to a recent reinstall and reconfiguration.
Code:
8:41pm up 1 day, 11:58, 1 user, load average: 5.23, 5.24, 5.31 |
depends on how you've setup your httpd server. Have a look at your httpd.conf for;
ServerType KeepAlive MinSpareServers MaxSpareServers StartServers |
What exactly am i looking for with those settings?
This morning httpd hung and killed the site, had to be restarted :( |
Are you using Apache 1.3 or Apache 2.0 ?
|
1.3.27
|
Quote:
Is there a spot where httpd logs what its up to (not weblogs, but what the actual processes are up to) |
I'm having kind of the same problem. After a while my httpd processes start to multiply.. even when i'm not working on my site, or even when i'm not online. This is strange. Or when I'm working on my site (localhost, phpnuke) I get like 9 httpd processes, and they take up like 50MB. Is this normal?
and i'm also using apache 1.3.27 (the one that came with slackware 8.1) and i didn't change any config files... Code:
ServerType standalone |
I was told by someone to try and update the kernel.
|
You may also want to look at moving to Apache 2.0.45, just a thought.
*Emebedded |
Quote:
What about your MaxClients? Do you have anything like that in your configuration? This directive is the maximum amount of connections at any given time. Basically when you see a httpd process, that means a person or user has requested a page/process to view your website. Everytime someone requests a page, it will start a httpd process. But usually in most cases it should die when they are done, these processes are started then die all the time when running a website. If you see these processes lingering around for too long, you should try to reconfigure how many MaxKeepAliveRequests or your KeepAliveTimeout. KeepAliveTimeout - The number of seconds Apache will wait for a subsequent request before closing the connection. Once a request has been received, the timeout value specified by the Timeout directive applies. Setting KeepAliveTimeout to a high value may cause performance problems in heavily loaded servers. The higher the timeout, the more server processes will be kept occupied waiting on connections with idle clients. So if you have a high traffic site, try lowering your KeepAliveTimeout setting.. maybe from 15 to 10 or lower.. etc. If your unsure what some of those directives do, try reading about some of the main core one's here: http://httpd.apache.org/docs/mod/core.html |
Mine are hanging around and not going away at all, the load of my server steadily rises. This morning I was pushing 20.xx load averages then I restarted httpd, from there it just increases again and the processes do not close.
|
Quote:
|
Yes I looked at all those options, I am using the exact same config as I was running on my other box, and I never had these issues :(
|
Quote:
You looked at those options, but did you try any of them? What kind of hardware are we talking about here that your using? More details or no one is going to be able to help you out. By you stating that your using the same config pretty much tells me you haven't tried anything different though. I can't help you if your not willing to try or answer any questions. |
I looked into all those options and compared my current config to my old one, which nothing has changed. So I assumed that apache, is apache :P
It is a slightly different hardware config, slightly slower proc (about 400mhz slower) I am updating the kernel to start (tomorrow morning) I will try the tweaks you suggested if the kernel upgrade does not work. I'll post my results here tomorrow ;) |
All times are GMT -5. The time now is 11:52 PM. |