[Bug 575175] [NEW] apache running at 100% indefinitely

Geoff Silver geoff at rootflags.org
Tue May 4 15:08:51 BST 2010


Public bug reported:

Binary package hint: apache2

Description:    Ubuntu 9.10
Release:        9.10
Arch:              amd64

This apache2 process has been running for days at 100% CPU.  There were
actually ~6 or 7 of them - I killed all but one, to get my load down
from 12+ to something usable.  I've seen this several times in the last
2 months since I migrated from 8.04 i386 to 9.10 amd64.

top - 09:00:31 up 20 days, 12:45,  4 users,  load average: 1.49, 1.39, 3.67
Tasks: 258 total,   3 running, 254 sleeping,   1 stopped,   0 zombie
Cpu(s): 23.1%us,  0.2%sy,  0.0%ni, 74.4%id,  2.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2025104k total,  1845848k used,   179256k free,   266588k buffers
Swap:  2056248k total,    56472k used,  1999776k free,   641952k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
 7966 www-data  20   0  326m  21m 1888 R  100  1.1   3144:35 apache2   

root at ns:/var/log/apache2# apt-cache policy apache2
apache2:
  Installed: 2.2.12-1ubuntu2.2
  Candidate: 2.2.12-1ubuntu2.2
  Version table:
 *** 2.2.12-1ubuntu2.2 0
        500 http://us.archive.ubuntu.com karmic-updates/main Packages
        500 http://security.ubuntu.com karmic-security/main Packages
        100 /var/lib/dpkg/status
     2.2.12-1ubuntu2 0
        500 http://us.archive.ubuntu.com karmic/main Packages
root at ns:/var/log/apache2# apt-cache policy php5
php5:
  Installed: 5.2.10.dfsg.1-2ubuntu6.4
  Candidate: 5.2.10.dfsg.1-2ubuntu6.4
  Version table:
 *** 5.2.10.dfsg.1-2ubuntu6.4 0
        500 http://us.archive.ubuntu.com karmic-updates/main Packages
        500 http://security.ubuntu.com karmic-security/main Packages
        100 /var/lib/dpkg/status
     5.2.10.dfsg.1-2ubuntu6 0
        500 http://us.archive.ubuntu.com karmic/main Packages
root at ns:/var/log/apache2# apt-cache policy zend-framework
zend-framework:
  Installed: (none)
  Candidate: 1.9.4-0ubuntu2.1
  Version table:
     1.9.4-0ubuntu2.1 0
        500 http://us.archive.ubuntu.com karmic-updates/universe Packages
        500 http://security.ubuntu.com karmic-security/universe Packages
     1.9.4-0ubuntu2 0
        500 http://us.archive.ubuntu.com karmic/universe Packages
root at ns:/var/log/apache2# apt-cache policy libzend-framework-php
libzend-framework-php:
  Installed: (none)
  Candidate: 1.9.4-0ubuntu2.1
  Version table:
     1.9.4-0ubuntu2.1 0
        500 http://us.archive.ubuntu.com karmic-updates/universe Packages
        500 http://security.ubuntu.com karmic-security/universe Packages
     1.9.4-0ubuntu2 0
        500 http://us.archive.ubuntu.com karmic/universe Packages


strace and ltrace yield nothing.  Attaching gdb to the running process
shows:

0x00007f749e47fff1 in _zval_ptr_dtor (zval_ptr=0x7fff14c20c50)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_execute_API.c:413
413     /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_execute_API.c: No such file or directory.
(gdb) bt
#0  0x00007f749e47fff1 in _zval_ptr_dtor (zval_ptr=0x7fff14c20c50)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_execute_API.c:413
#1  0x00007f749e4cd9bd in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (
    execute_data=0x7fff14c21dd0)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:24711
#2  0x00007f749e4b075c in execute (op_array=0x7f74a4909bf0)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:92
#3  0x00007f749e4b43aa in zend_do_fcall_common_helper_SPEC (
    execute_data=0x7fff14c221a0)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:234
#4  0x00007f749e4b075c in execute (op_array=0x7f74a4d58d50)
    at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend_vm_execute.h:92
#5  0x00007f749e48c5f6 in zend_execute_scripts (type=32767, retval=0x0, 
    file_count=3) at /build/buildd/php5-5.2.10.dfsg.1/Zend/zend.c:1215
#6  0x00007f749e447673 in php_execute_script (primary_file=0x7f74a573b150)
    at /build/buildd/php5-5.2.10.dfsg.1/main/main.c:2046
#7  0x00007f749e4fe5ed in php_handler (r=0x7f749e4fe5ed)
    at /build/buildd/php5-5.2.10.dfsg.1/sapi/apache2handler/sapi_apache2.c:651
#8  0x00007f74a311f0d0 in ap_run_handler ()
   from /usr/lib/apache2/mpm-prefork/apache2
#9  0x00007f74a3122a18 in ap_invoke_handler ()
   from /usr/lib/apache2/mpm-prefork/apache2
#10 0x00007f74a3130578 in ap_process_request ()
   from /usr/lib/apache2/mpm-prefork/apache2
#11 0x00007f74a312d458 in ?? () from /usr/lib/apache2/mpm-prefork/apache2
#12 0x00007f74a3126c68 in ap_run_process_connection ()
   from /usr/lib/apache2/mpm-prefork/apache2
#13 0x00007f74a3134fcb in ?? () from /usr/lib/apache2/mpm-prefork/apache2
#14 0x00007f74a313529a in ?? () from /usr/lib/apache2/mpm-prefork/apache2
#15 0x00007f74a31355cb in ap_mpm_run ()
   from /usr/lib/apache2/mpm-prefork/apache2
#16 0x00007f74a310b350 in main () from /usr/lib/apache2/mpm-prefork/apache2

ProblemType: Bug
Architecture: amd64
Date: Tue May  4 08:55:39 2010
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/lib/apache2/mpm-prefork/apache2
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: apache2.2-bin 2.2.12-1ubuntu2.2
ProcEnviron:
 PATH=(custom, no user)
 LANG=C
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: apache2
Uname: Linux 2.6.31-20-generic x86_64

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
apache running at 100% indefinitely
https://bugs.launchpad.net/bugs/575175
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.



More information about the Ubuntu-server-bugs mailing list