Results 1 to 10 of 10
  1. #1

    Serious HTTPD problems! Please help

    Hi, I am using plesk on a 3.2Ghz p4 with 1GB of ram.

    Currently when doing a 'top' apache dominates the top 10 processes and the CPU usage is rediculous (atleast 1% per process).

    load average: 5.50, 4.81, 4.77

    We are only hosting about 20 clients so I can't think of any reason for this high load average.

    Here is part of 'Top':
    CPU MEM
    24679 apache 17 0 16636 16M 7128 S 2.2 1.6 0:02 1 httpd
    25294 apache 15 0 16508 16M 7116 S 2.0 1.6 0:01 0 httpd
    24435 apache 15 0 16520 16M 7012 S 1.9 1.6 0:03 0 httpd
    21448 apache 15 0 16216 15M 6732 S 1.7 1.5 0:08 0 httpd
    22230 apache 16 0 16008 15M 6744 S 1.7 1.5 0:06 1 httpd
    24939 apache 17 0 16464 16M 7100 S 1.6 1.6 0:02 0 httpd
    25402 apache 18 0 16156 15M 7092 S 1.6 1.5 0:01 0 httpd
    22241 apache 15 0 16100 15M 6856 S 1.4 1.5 0:08 1 httpd
    23566 apache 17 0 15756 15M 6788 S 1.4 1.5 0:04 1 httpd
    25293 apache 17 0 16360 15M 7100 S 1.4 1.5 0:00 1 httpd
    21061 apache 16 0 15900 15M 6700 S 1.3 1.5 0:09 1 httpd
    23925 apache 15 0 16008 15M 6828 S 1.3 1.5 0:03 1 httpd
    24361 apache 17 0 16208 15M 7008 S 1.3 1.5 0:02 0 httpd

    (Yes I know, how disgusting!)

    This box is hosted by ServerMatrix and ofcourse they have no idea what the problem is as I have contacted them numerous times. Is it possible to uninstall httpd and reinstall it without messing up my plesk?

    Any help would be greatly appreciated

  2. #2
    Join Date
    Sep 2003
    Location
    UK
    Posts
    342
    You can rebuild apache but i dont think that would do much use.
    Centation Web Services
    Bristol based web design
    Offering website design, SEO, website hosting, website development and domain registration.

  3. #3
    239 processes: 215 sleeping, 24 running, 0 zombie, 0 stopped
    CPU states: cpu user nice system irq softirq iowait idle
    total 17.3% 0.0% 41.8% 0.0% 1.1% 1.3% 38.1%
    cpu00 9.5% 0.0% 23.8% 0.1% 1.1% 2.1% 63.0%
    cpu01 25.1% 0.0% 59.8% 0.0% 1.1% 0.5% 13.2%

    Without HTTPD process running:

    179 processes: 178 sleeping, 1 running, 0 zombie, 0 stopped
    CPU states: cpu user nice system irq softirq iowait idle
    total 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 99.8%
    cpu00 0.1% 0.0% 0.1% 0.0% 0.0% 0.0% 99.6%
    cpu01 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 100.0%


    I didn't wait for the load to drop but as you can easily see it is on its way

  4. #4
    This is my kernel version:

    2.4.21-37.ELsmp
    (Red Hat Enterprise 3)

  5. #5
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,574
    Try this command:

    netstat -nt | grep :80 | wc -l

    Let me know the result (should be a single number).

    Thanks.
    MediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
    The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business

  6. #6
    916

    And, no, thank you.

  7. #7
    1339 - just went up a bit.

  8. #8
    May be some of your site is getting too much of traffic, try enabling apache status in httpd.conf, so you can get a much better idea what is going on.

  9. #9
    Join Date
    Mar 2005
    Posts
    150
    you have way too many apache connections. Could be a DOS attack

    Do a netstat -an | grep -i est | grep :80

    look at the IP list, one IP in particular should stick out (if your being dos attacked from one IP address). If there are hundreds of connections from one outside IP address you may want to block it with iptables:

    iptables -I INPUT -s IPADDRESS -j DROP


    Also, take a look in /tmp and /var/tmp and see if there are any suspicious files, or executable files. Also issue a "du" command in the tmp directories and look for odd folder name such as "..." or ".something".

    It may also help if you do a ps axwww and paste your results here.

  10. #10
    Join Date
    May 2003
    Location
    Halifax, Nova Scotia, Canada
    Posts
    200
    I wouldn't assume there's a problem with Apache, first look at those 20 sites. There might be one big log file sticking out like a sore thumb.

    Matt
    http://www.DynamicHosting.Biz
    Canadian Shared, Reseller and Dedicated Hosting


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •