The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

apache processes hang within 1 min of restart

Discussion in 'EasyApache' started by SMG, Nov 26, 2007.

  1. SMG

    SMG Member

    Joined:
    Nov 29, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    This is a weird problem, and kinda hard to search for but I tried and couldn't find anything ... I figure by the time I hunt and diagnose what's causing this maybe someone can just tell me...

    Apache children (for requests) that start within ~1 minute of restarting apache seem to hang. After that period, other apache children run just fine, it's just during the time right after a restart. Here's what my ps auxfw looks like now:
    root 21419 0.0 0.2 7804 3016 ? S Nov25 0:02 /usr/local/apache/bin/httpd -DSSL
    nobody 21425 0.0 0.3 7948 3776 ? S Nov25 0:02 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21427 0.0 0.3 7952 3752 ? S Nov25 0:03 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21428 0.0 0.3 7948 3832 ? S Nov25 0:03 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21429 0.0 0.3 7944 3752 ? S Nov25 0:03 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21430 0.0 0.3 7948 3796 ? S Nov25 0:02 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21435 0.0 0.3 7948 3720 ? S Nov25 0:02 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21440 0.0 0.3 8012 3852 ? S Nov25 0:02 \_ /usr/local/apache/bin/httpd -DSSL
    rib 16969 14.0 0.9 20216 9800 ? S 03:53 0:00 | \_ /usr/bin/php
    nobody 21442 0.0 0.3 7948 3752 ? S Nov25 0:02 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21453 0.0 0.3 7972 3808 ? S Nov25 0:02 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 21455 0.0 0.3 8012 3776 ? S Nov25 0:02 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 22841 0.0 0.3 7940 3320 ? S 03:48 0:00 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 28933 0.0 0.3 7808 3316 ? S 03:50 0:00 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 16856 0.0 0.3 7820 3672 ? S 03:52 0:00 \_ /usr/local/apache/bin/httpd -DSSL
    nobody 16863 0.0 0.3 7808 3272 ? S 03:52 0:00 \_ /usr/local/apache/bin/httpd -DSSL


    You can tell what they correspond to from whm:
    0-0 21425 9/2318/2318 K 174.44 5 0 0.0 15.57 15.57 67.86.204.146 domain.com GET /vbulletin/clear.gif HTTP/1.1
    1-0 21427 1/2624/2624 K 143.22 5 1411 0.0 20.33 20.33 66.249.73.229 domain.com GET /dl/93245 HTTP/1.1
    2-0 21428 0/2320/2320 _ 175.34 17 711 0.0 20.59 20.59 220.233.102.66 domain.com GET /download/index.php/2/Y/4 HTTP/1.1
    3-0 21429 0/2454/2454 _ 167.28 1 512 0.0 75.45 75.45 208.36.144.8 domain.com GET /phpbb2/privmsg.php?mode=post&u=382 HTTP/1.0
    4-0 21430 0/2456/2456 W 145.08 3 0 0.0 19.39 19.39 200.140.223.165 domain.domain.com GET /main/components/com_phpshop/shop_image/product/91b85289c98
    5-0 21435 0/2278/2278 _ 151.37 11 230 0.0 17.88 17.88 66.249.73.229 domain.com GET /phpbb2/viewtopic.php?p=72475&sid=39d47a249038d32801f24b3a3
    6-0 21440 4/2340/2340 K 145.32 2 235 27.3 20.50 20.50 66.249.73.229 domain.com GET /forums/viewtopic.php?p=4252&sid=f4c054fa3f42be24afcb954b36
    7-0 21442 0/2385/2385 _ 159.11 4 263 0.0 19.93 19.93 65.214.45.127 domain.com GET /lyrics/showlyrics.php/613/1 HTTP/1.0
    8-0 21453 1/2190/2190 K 135.91 23 355 8.0 18.95 18.95 66.249.73.229 domain.com GET /phpbb2/profile.php?mode=viewprofile&u=435&sid=d4a9d3b7b9d6
    9-0 21455 19/2203/2203 W 170.98 1 0 27.7 14.95 14.95 75.84.250.87 domain.com POST /vbulletin/vbshout.php HTTP/1.1

    The reason I know theyre all within a minute is I saw it happen yesterday before the day switched.
    As you can see by the process list, there are a few from within the last minute or so, and then theres a jump all the way back to when apache restarted.

    This started after an upgrade (from php 4.4.1ish to 5.2.5) ... was the first upgrade using the whm 11 easyapache ... 1.3.x, php 5.2.5, dual php install with 5 as default, suhosin, suphp .. server is a dual xeon with 1 gig ram and scsi drives. I've restarted apache at various times throughout the day, and it does the same thing every time.

    Any ideas?



    Edit: I just noticed that half the requests are from googlebot ... it still doesnt make sense but maybe it's just googlebot messing with stuff?
     
    #1 SMG, Nov 26, 2007
    Last edited: Nov 26, 2007
  2. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
    hi,

    Just do a tail -f to see the error log for apache under /usr/local/apache/logs/ also try checking your apache log file size for access_logs and others along with domain log file size under /usr/local/apache/domlogs/

    hope you should get some info from that.

    thanks
     
  3. SMG

    SMG Member

    Joined:
    Nov 29, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I tail -f'ed the error log into the background then restarted apache and watched the errors popping up, and there was nothing special at all...
     
  4. SMG

    SMG Member

    Joined:
    Nov 29, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    nevermind, I'm an idiot... I forgot I had a few custom settings in httpd.conf that were overwritten with the update :D
     
Loading...

Share This Page