1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Apache2 process using 100% of CPU

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by SalvadorS, Jan 23, 2012.

  1. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    Hello,

    I am running plesk 10.3.1 in Debian 6.

    I have some type of problem in the server. I have a lot of apache2 process which are using 100% of CUP load:

    If I do a top:

    9462 www-data 20 0 410m 118m 4092 R 45.9 1.2 0:48.97 apache2
    9668 www-data 20 0 410m 117m 3080 R 44.0 1.2 0:27.71 apache2

    If I kill the process. New process will be created with also 100% cpu load used.

    If I execute this:

    lsof -p 9668

    I can see that particular apache2 process is handling some kind of process with the logs:

    apache2 9668 www-data 709w REG 254,1 0 4260587 /var/www/vhosts/*/statistics/logs/access_log
    apache2 9668 www-data 710w REG 254,1 0 4260588 /var/www/vhosts/*/statistics/logs/access_ssl_log
    apache2 9668 www-data 711w REG 254,1 62810 4212463 /var/www/vhosts/*/statistics/logs/access_log
    apache2 9668 www-data 712w REG 254,1 0 4212464 /var/www/vhosts/*/statistics/logs/access_ssl_log
    apache2 9668 www-data 713w REG 254,1 12093 4212405 /var/www/vhosts/*/statistics/logs/access_log
    apache2 9668 www-data 714w REG 254,1 0 4212406 /var/www/vhosts/*/statistics/logs/access_ssl_log
    apache2 9668 www-data 715w REG 254,1 25496 4211132 /var/www/vhosts/*/statistics/logs/access_log
    apache2 9668 www-data 716w REG 254,1 0 4211133 /var/www/vhosts/*/statistics/logs/access_ssl_log
    apache2 9668 www-data 717w REG 254,1 15645 4210821 /var/www/vhosts/*/statistics/logs/access_log
    apache2 9668 www-data 718w REG 254,1 0 4210822 /var/www/vhosts/*/statistics/logs/access_ssl_log
    apache2 9668 www-data 719w REG 254,1 0 4210726 /var/www/vhosts/*/statistics/logs/access_log
    apache2 9668 www-data 720w REG 254,1 0 4210727 /var/www/vhosts/*/statistics/logs/access_ssl_log

    * are all the domains in the server. I don´t know how to stop it. I kill cron.daily and also statistics but still have the same problem. Any help?
     
  2. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    Updated now to 10.4.4 MU13 and still same problem...
     
  3. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    I am killing process since 10 hous ago. Nobody have any clue about this issue?. Thanks
     
  4. burnleyvic

    burnleyvic Regular Pleskian

    17
    85%
    Joined:
    Nov 9, 2011
    Messages:
    174
    Likes Received:
    1
    What's the output of the following commands?
    netstat -tenp| grep ${offending_apache_pid}
    for pid in `pgrep -u www-data`; do echo -n "$pid " ; find /proc/${pid}/cwd -printf "%l\n" ; done
     
  5. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    Hello,

    Thanks for the update. I re-run the cron daily script and when it finished problem "dissapear" so no the server works fine.

    Thanks a lot.
     
Loading...