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 httpd SIGTERM Every 5 Minutes on VPS

Discussion in 'EasyApache' started by viebig, Sep 23, 2011.

  1. viebig

    viebig Registered

    Joined:
    Sep 23, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    São Paulo, Brazil, Brazil
    cPanel Access Level:
    Root Administrator
    Hello, I really need some help...

    I´m running a video website, apache restart every 5 minutes, at the first second. Tried to recompile apache and php several different ways, same result.

    Statistics software update every 24 hours.

    Apache error log:


    Code:
    [COLOR=#000000][SIZE=2][FONT=courier new][Fri Sep 23 18:50:01 2011] [notice] caught SIGTERM, shutting down[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2][FONT=courier new][Fri Sep 23 18:50:04 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)[/FONT][/SIZE][/COLOR]
    
    Code:
    [URL="https://www.avessotv.com.br:2087/cpsess2658508278/scripts2/upcpform"][COLOR=#000000][SIZE=2][FONT=courier new][Fri Sep 23 18:50:04 2011] [notice] Apache configured -- resuming normal operations
    [/FONT][/SIZE][/COLOR][/URL][COLOR=#000000][SIZE=2][URL="https://www.avessotv.com.br:2087/cpsess2658508278/scripts2/upcpform"][SIZE=2][FONT=courier new][Fri Sep 23 18:55:01 2011] [notice] caught SIGTERM, shutting down[/FONT][/SIZE]
    [/URL][/SIZE][/COLOR][SIZE=2][URL="https://www.avessotv.com.br:2087/cpsess2658508278/scripts2/upcpform"]
    [COLOR=#000000][SIZE=2][FONT=courier new][Fri Sep 23 18:55:04 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=2][FONT=courier new][Fri Sep 23 18:55:04 2011] [notice] Apache configured -- resuming normal operations
    
    ---------------
    
    [/FONT][/SIZE][/COLOR][SIZE=2][FONT=courier new][COLOR=#000000]
    [/COLOR]
    [COLOR=#000000][Mon Sep 05 06:30:02 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 06:35:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 06:40:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 06:45:02 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 06:50:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 06:55:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 07:00:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 07:05:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 07:10:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 07:15:01 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [COLOR=#000000][Mon Sep 05 07:20:02 2011] [notice] caught SIGTERM, shutting down[/COLOR]
    [/FONT][/SIZE][COLOR=#000000][SIZE=2][FONT=courier new]
    [/FONT][/SIZE][/COLOR]
    [/URL][/SIZE]
    



    Code:
    [COLOR=#000000][FONT=courier new]# sar -q | grep Average; sar -r | grep Average[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]Average:            2       210      1.87      1.09      0.93[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]Average:            1       218      1.38      1.12      1.01[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]Average:      1199365   2845107     70.35    187853   2104364   8338492       108      0.00         0[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]Average:      1627861   2416611     59.75     32821   1987226   8338544        56      0.00         0[/FONT][/COLOR]
    


    h
    ttpd.conf

    Code:
    [COLOR=#000000][FONT=courier new]Timeout 300[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]TraceEnable On[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]ServerSignature Off[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]ServerTokens ProductOnly[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]FileETag All[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]StartServers 15[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]<IfModule prefork.c>[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]MinSpareServers 10[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]MaxSpareServers 20[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]</IfModule>[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]ServerLimit 1024[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]MaxClients 1024[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]MaxRequestsPerChild 10000[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]KeepAlive On[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]KeepAliveTimeout 5[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]MaxKeepAliveRequests 200[/FONT][/COLOR]
    


    Max load 0.20 0.10 0.10


    Code:
    [COLOR=#000000][FONT=courier new]Tasks: 224 total,   1 running, 222 sleeping,   0 stopped,   1 zombie[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]Cpu(s):  0.2%us,  0.1%sy,  0.0%ni, 99.2%id,  0.5%wa,  0.0%hi,  0.1%si,  0.0%st[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]Mem:   4044472k total,  2748472k used,  1296000k free,    55996k buffers[/FONT][/COLOR]
    [COLOR=#000000][FONT=courier new]Swap:  8338600k total,      100k used,  8338500k free,  2282764k cached[/FONT][/COLOR]
    



    Code:
    apachetop
    [FONT=courier new]All:          467 reqs (   9.5/sec)       1975.3K (   40.3K/sec)    4331.2B/req[/FONT]
    [FONT=courier new]2xx:     268 (57.4%) 3xx:     198 (42.4%) 4xx:     1 ( 0.2%) 5xx:     0 ( 0.0%)[/FONT]
    [FONT=courier new]R ( 30s):     260 reqs (   8.7/sec)        999.1K (   33.3K/sec)    3934.9B/req[/FONT]
    [FONT=courier new]2xx:     139 (53.5%) 3xx:     120 (46.2%) 4xx:     1 ( 0.4%) 5xx:     0 ( 0.0%)[/FONT]
    


    WHM 11.30.3 (build 5)
    CENTOS 5.7 x86_64 vmware

    [TABLE="class: sortable, width: 1"]

    Default PHP Version (.php files)
    5

    PHP 5 Handler
    dso

    PHP 4 Handler
    none




    Apache suEXEC
    on
    [/TABLE]



     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    I'd suggest you check cron logs and /var/log/messages for any oom or related resource shortage errors and /proc/user_beancounters if its a Virtuozzo based VPS. If its getting killed after an exact number of minutes, its probably a cron that is causing this.
     
Loading...

Share This Page