View Full Version : HTTPD Problems, Urgent!
Howard
11-05-2005, 01:16 PM
HTTPD is using up a lot of resources on my server and i am stumped as to why, then again i am a novice at this stuff..
Any help is appreciated..
Howard
note: Sorry about the jumbleness..
I highlighted the memory usage.
apache 14607 0.2 4.5 31696 23244 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 28609 0.1 4.5 31692 23184 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 2253 0.1 4.5 31680 23104 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 23212 0.0 4.4 30952 22400 ? S 20:00 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 4453 0.2 5.8 38332 29848 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 18412 0.1 4.7 32876 24236 ? S 20:00 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 2208 0.1 4.4 30916 22536 ? S 20:00 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 2088 0.1 4.5 31676 23256 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 7349 0.1 4.8 33192 24576 ? S 20:00 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 6522 0.1 4.5 31476 22980 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 2021 0.1 4.4 31044 22684 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 13522 0.1 4.7 32656 24160 ? S 20:00 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 22472 0.0 4.4 31036 22596 ? S 20:01 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 12276 0.2 4.5 31732 23236 ? S 20:01 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 7942 0.0 4.4 31120 22564 ? S 20:01 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 17773 0.1 4.5 31836 23264 ? S 20:01 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 28396 25.7 11.3 82192 57612 ? R 20:01 2:42 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 4154 0.1 4.5 31272 22928 ? S 20:01 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 26189 0.1 4.5 31200 22884 ? S 20:01 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 32718 0.2 4.5 31776 23288 ? S 20:01 0:01 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
apache 9729 0.0 4.3 30612 22148 ? S 20:05 0:00 /usr/sbin/httpd -DHAVE_PHP4 -DHAVE_MMAP_STATIC -DHAVE_VHOST_A
jlasman
11-05-2005, 02:26 PM
I'm not going to attempt to figure out why httpd is using so many resources; to do so based on what you've posted would be a stab in the dark.
However, I should point out that restarting DirectAdmin from either the shell or the DA control panel may be helpful in resolving the problem.
Jeff
Howard
11-05-2005, 02:59 PM
Restarting DirectAdmin did nothing.. If i shut down httpd and start it back up it doesnt use so many resources right away but slowly eats up more and more until it hits the point its at now..
jmstacey
11-05-2005, 03:28 PM
You might try installing the domain monitor tool and see if it's any user(s) in particular causing the problem.
Do you have a lot of high use webpages with php/mysql interaction?
Have you tried fine tuning the httpd.conf file? Are persistant connections enabled?
hostpc.com
11-05-2005, 03:29 PM
Have you tried using Server-Status to find the site using all the connections?
To make sure it's active, in Redhat,
edit /etc/httpd/conf/httpd.conf
Be sure this section is included. Once it is, it can be viewed at http://IPADDRESS/server-status
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On
# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your-domain.com" to match your domain to enable.
#
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from YOURIPADDRESSHERE
</Location>
Howard
11-05-2005, 05:15 PM
Thanks guys i will try those suggestions, and no i haven't tried either - primarily because i was blind to them beforehand.
The disturbing part is that httpd is using over 100% memory all in itself
Howard
11-05-2005, 05:23 PM
For Server-Status this is what i see...
Apache Server Status for server1.sh-dns.net
Server Version: Apache
Server Built: Apr 10 2005 00:01:42
Current Time: Sunday, 06-Nov-2005 00:28:49 UTC
Restart Time: Sunday, 06-Nov-2005 00:20:02 UTC
Parent Server Generation: 0
Server uptime: 8 minutes 47 seconds
Total accesses: 1117 - Total Traffic: 12.1 MB
CPU Usage: u5.4 s.73 cu.03 cs.05 - 1.18% CPU load
2.12 requests/sec - 23.6 kB/second - 11.1 kB/request
6 requests currently being processed, 12 idle servers
___WK_____K_K__W_W..............................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"L" Logging, "G" Gracefully finishing, "." Open slot with no current process
Srv PID Acc M CPU SS Req Conn Child Slot Host VHost Request
0-0 8387 0/78/78 _ 0.44 18 0 0.0 0.40 0.40 host81-158-147-121.range81-158. www.resurrection-studios.com GET /forum/templates/Ti2000/images/Ti2000-X_09-over.gif HTTP/1.
1-0 9155 0/67/67 _ 0.42 38 3009 0.0 0.31 0.31 p22135-adsau07doujib2-acca.osak www.resurrection-studios.com GET /Silent_BDay.jpg HTTP/1.1
2-0 28949 0/76/76 _ 0.35 46 39 0.0 0.70 0.70 65.54.188.91 www.jo3y.com GET /robots.txt HTTP/1.0
3-0 22068 24/107/107 W 0.16 0 0 609.4 2.83 2.83 c-67-180-78-168.hsd1.ca.comcast www.resurrection-studios.com GET /eddesktop2.jpg HTTP/1.1
4-0 21148 13/36/36 K 0.35 4 0 151.8 1.09 1.09 65.93.93.168 www.showmefear.com GET /main/enemies/ttimages/zombie.jpg HTTP/1.1
5-0 3640 0/74/74 _ 0.40 38 0 0.0 0.20 0.20 207.46.98.127 www.godswitch.com GET /robots.txt HTTP/1.0
6-0 54 0/83/83 _ 0.45 42 298 0.0 0.92 0.92 207.46.98.127 www.godswitch.com GET /?feed=atom HTTP/1.0
7-0 20525 0/56/56 _ 0.50 6 0 0.0 0.47 0.47 213.23.205.244 www.purepostal.com GET /favicon.ico HTTP/1.1
8-0 2998 0/69/69 _ 0.25 10 0 0.0 0.32 0.32 host81-158-147-121.range81-158. www.resurrection-studios.com GET /forum/templates/Ti2000/images/folder_lock_new.gif HTTP/1.1
9-0 4276 0/49/49 _ 0.60 27 641 0.0 0.52 0.52 65.54.188.91 www.jo3y.com GET /joomla/component/option,com_frontpage/Itemid,1/ HTTP/1.0
10-0 31058 1/69/69 K 0.76 4 0 0.3 0.37 0.37 213.23.205.244 www.purepostal.com GET /favicon.ico HTTP/1.1
11-0 10609 0/33/33 _ 0.18 41 0 0.0 0.18 0.18 69.61.56.114 localhost HEAD / HTTP/1.0
12-0 31703 16/89/89 K 0.38 4 0 124.1 1.18 1.18 65.93.93.168 www.showmefear.com GET /main/enemies/ttimages/armor.jpg HTTP/1.1
13-0 4857 0/67/67 _ 0.12 18 0 0.0 1.00 1.00 host81-158-147-121.range81-158. www.resurrection-studios.com GET /forum/templates/Ti2000/images/Ti2000-X_08-over.gif HTTP/1.
14-0 11789 0/53/53 _ 0.35 10 0 0.0 0.37 0.37 host81-158-147-121.range81-158. www.resurrection-studios.com GET /forum/templates/Ti2000/images/folder_hot.gif HTTP/1.1
15-0 31482 29/47/47 W 0.21 0 0 896.4 1.07 1.07 c-67-180-78-168.hsd1.ca.comcast www.resurrection-studios.com GET /eddesktop.jpg HTTP/1.1
16-0 12836 0/51/51 _ 0.21 30 0 0.0 0.12 0.12 200.52.167.2 www.millenium.lesstime.org GET /trashme.png HTTP/1.0
17-0 13439 2/13/13 W 0.08 0 0 42.1 0.07 0.07 72.226.187.155 localhost GET /server-status HTTP/1.1
Srv Child Server number - generation
PID OS process ID
Acc Number of accesses this connection / this child / this slot
M Mode of operation
CPU CPU usage, number of seconds
SS Seconds since beginning of most recent request
Req Milliseconds required to process most recent request
Conn Kilobytes transferred this connection
Child Megabytes transferred this child
Slot Total megabytes transferred this slot
SSL/TLS Session Cache Status:
hostpc.com
11-05-2005, 05:23 PM
If you need more help after trying these (or to implement these) hollar ... we're here to help when we can.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.