Results 1 to 8 of 8

Thread: Diagnose why this is happening:

  1. #1
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055

    Diagnose why this is happening:

    2363 root 15 0 3500 2404 2048 S 185.9 0.2 126:57 1 httpd

    Apache is sucking down 185.9% of my resources, if that is possible, that is what TOP says. It gets like this every once in awhile the last few days, my solution is to restart it, I can't seem to figure out why though. Traffic isn't that abnormal.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  2. #2
    Registered Member moonshield's Avatar
    Join Date
    Aug 2004
    Location
    Charlotte
    Posts
    1,281
    how many processes of Apache? I believe you can set the number in the httpd.conf. Maybe you should upgrade to the Apache 2 series. Other than that I would have no clue.
    Last edited by thepoorman; 01-25-2005 at 01:30 PM.

  3. #3
    Web Monkey MarkB's Avatar
    Join Date
    Nov 2003
    Location
    London, UK
    Posts
    1,783
    Chris, can you tail your access log to see which site/s is/are getting hit hard?
    Stepping On Wires - the new blog

  4. #4

  5. #5
    Registered Xander's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    263
    That is a crazy figure. I know I had major apache problems with my logs on my last server.

  6. #6
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    Apache has crashed about 50 times today on my server... I wish there was something more reliable...

    For the over 100% all I can think is it's overclocking...

  7. #7
    Registered aj8's Avatar
    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    88
    Apache normally is a reliable daemon. Usually it's a misconfigured module, or a ballooning logfile, or just simply giant load that it hasn't really been configured to handle that kills it.

    One of the first things I ask people to look at is what modules they are loaded. Most default Apaches (for example, redhat's) load all kinds of crap that isn't needed; for example WebDAV... Complete waste of memory. I managed to almost half one server's RAM usage by careful disabling of modules. This obviously makes a loaded server much quicker and able to deal with traffic.

    A server will not overclock itself when it gets busy! However, you can pile tasks on a machine so high that it's actually being asked to do (and therefore allocating CPU time to) more than it reasonably can.

    It's a poor analogy in a lot of ways but, in the same way as a swapfile can make a computer's physical memory appear to be 200% used (i.e. 128MB RAM and 128MB swapfile), so can a decent Operating System task scheduler / multitasking system make a computer appear to be able to deal with more load than it should be able to. In reality nothing gets done any quicker, things are just piled up and done in a sensible order.

    Finally I'd mention that the last time I saw an apache go bananas recently was to do with a compromise of a forum CGI script. It was being used to send a heap of spam. Might be worth checking this; it wasn't a root exploit so we just disabled the forum until it could be fixed.

    HATH.
    A.

  8. #8
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    Log files don't show much. I mean, the server hosts my literature site which gets 150k page views a day right now. I did see some attempted buffer overrun things but I patched the PHP when that bug was announced.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

Similar Threads

  1. Any happening in the US?
    By dolphin in forum Search Engine Optimization
    Replies: 6
    Last Post: 06-07-2004, 01:06 PM
  2. Whats happening here?
    By Cloughie in forum General Management Issues
    Replies: 11
    Last Post: 11-18-2003, 03:44 PM

Bookmarks

Posting Permissions

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