oneiric LAMP server: Apache consumes 100% of cpu in QEMU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Won't Fix
|
Undecided
|
farhan saleh robleh |
Bug Description
I'm running ubuntu server 11.10 in a kvm environmnet as a production server for php applications.
How ever, my apache installation is very standard, except for virtual hosts of course.
These are apache2.conf vbles:
Timeout 2
KeepAlive On
MaxKeepAliveReq
KeepAliveTimeout 2
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 15
ServerLimit 256
MaxClients 256
#50
MaxRequests
</IfModule>
When Internet http clients are sending requests every single apache2 process almost immediately consumes 100% cpu until the request is done and falls back to < 1% then. The access logs don't show anything except my requests. Error log is empty.
$ sudo lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
$ sudo apt-cache policy apache2
apache2:
Installed: 2.2.20-1ubuntu1.2
Candidate: 2.2.20-1ubuntu1.2
Version table:
*** 2.2.20-1ubuntu1.2 0
500 http://
500 http://
100 /var/lib/
2.
500 http://
$ sudo apt-cache policy libapache2-mod-php5
libapache2-
Installed: 5.3.10-1~oneiric+2
Candidate: 5.3.10-1~oneiric+2
Version table:
*** 5.3.10-1~oneiric+2 0
100 /var/lib/
5.
500 http://
500 http://
5.
500 http://
$ ls -la /etc/apache2/
total 24
drwxr-xr-x 2 root root 4096 2012-03-11 13:13 .
drwxr-xr-x 7 root root 4096 2012-03-11 13:10 ..
-rw-r--r-- 1 root root 269 2011-09-06 20:38 charset
-rw-r--r-- 1 root root 3296 2011-09-06 20:38 localized-
-rw-r--r-- 1 root root 143 2011-09-06 20:38 other-vhosts-
-rw-r--r-- 1 root root 1424 2011-09-06 20:38 security
$ ls -la /etc/apache2/
total 8
drwxr-xr-x 2 root root 4096 2012-01-15 22:27 .
drwxr-xr-x 7 root root 4096 2012-03-11 13:10 ..
lrwxrwxrwx 1 root root 28 2012-01-15 18:57 alias.conf -> ../mods-
lrwxrwxrwx 1 root root 28 2012-01-15 18:57 alias.load -> ../mods-
lrwxrwxrwx 1 root root 33 2012-01-15 18:57 auth_basic.load -> ../mods-
lrwxrwxrwx 1 root root 33 2012-01-15 18:57 authn_file.load -> ../mods-
lrwxrwxrwx 1 root root 36 2012-01-15 18:57 authz_default.load -> ../mods-
lrwxrwxrwx 1 root root 38 2012-01-15 18:57 authz_groupfile
lrwxrwxrwx 1 root root 33 2012-01-15 18:57 authz_host.load -> ../mods-
lrwxrwxrwx 1 root root 33 2012-01-15 18:57 authz_user.load -> ../mods-
lrwxrwxrwx 1 root root 32 2012-01-15 18:57 autoindex.conf -> ../mods-
lrwxrwxrwx 1 root root 32 2012-01-15 18:57 autoindex.load -> ../mods-
lrwxrwxrwx 1 root root 26 2012-01-15 18:57 cgi.load -> ../mods-
lrwxrwxrwx 1 root root 30 2012-01-15 18:57 deflate.conf -> ../mods-
lrwxrwxrwx 1 root root 30 2012-01-15 18:57 deflate.load -> ../mods-
lrwxrwxrwx 1 root root 26 2012-01-15 18:57 dir.conf -> ../mods-
lrwxrwxrwx 1 root root 26 2012-01-15 18:57 dir.load -> ../mods-
lrwxrwxrwx 1 root root 26 2012-01-15 18:57 env.load -> ../mods-
lrwxrwxrwx 1 root root 30 2012-01-15 21:06 headers.load -> ../mods-
lrwxrwxrwx 1 root root 27 2012-01-15 18:57 mime.conf -> ../mods-
lrwxrwxrwx 1 root root 27 2012-01-15 18:57 mime.load -> ../mods-
lrwxrwxrwx 1 root root 34 2012-01-15 18:57 negotiation.conf -> ../mods-
lrwxrwxrwx 1 root root 34 2012-01-15 18:57 negotiation.load -> ../mods-
lrwxrwxrwx 1 root root 27 2012-01-15 18:57 php5.conf -> ../mods-
lrwxrwxrwx 1 root root 27 2012-01-15 18:57 php5.load -> ../mods-
lrwxrwxrwx 1 root root 33 2012-01-15 18:57 reqtimeout.conf -> ../mods-
lrwxrwxrwx 1 root root 33 2012-01-15 18:57 reqtimeout.load -> ../mods-
lrwxrwxrwx 1 root root 30 2012-01-15 22:27 rewrite.load -> ../mods-
lrwxrwxrwx 1 root root 31 2012-01-15 18:57 setenvif.conf -> ../mods-
lrwxrwxrwx 1 root root 31 2012-01-15 18:57 setenvif.load -> ../mods-
lrwxrwxrwx 1 root root 26 2012-01-15 21:02 ssl.conf -> ../mods-
lrwxrwxrwx 1 root root 26 2012-01-15 21:02 ssl.load -> ../mods-
lrwxrwxrwx 1 root root 29 2012-01-15 18:57 status.conf -> ../mods-
lrwxrwxrwx 1 root root 29 2012-01-15 18:57 status.load -> ../mods-
Virtualhost conf: (hiding just IP, domainname, directories)
<VirtualHost 111.111.111.111:80>
ServerName www.domain.com
ErrorLog /directory/
CustomLog /directory/
Loglevel warn
<Directory /directory/
</VirtualHost>
$ sudo uname -a
Linux xxxxxxxxxxxxx 3.0.0-16-server #29-Ubuntu SMP Tue Feb 14 13:08:12 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ sudo free
total used free shared buffers cached
Mem: 8193376 3243356 4950020 0 503084 1733488
-/+ buffers/cache: 1006784 7186592
Swap: 4928508 9912 4918596
$ more /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 2793.574
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt hypervisor lahf_lm
bogomips : 5587.14
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 2793.574
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt hypervisor lahf_lm
bogomips : 5587.14
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 2793.574
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt hypervisor lahf_lm
bogomips : 5587.14
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.1
stepping : 3
cpu MHz : 2793.574
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni cx16 popcnt hypervisor lahf_lm
bogomips : 5587.14
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
Changed in apache2 (Ubuntu): | |
assignee: | nobody → farhan saleh robleh (farhn) |
Status changed to 'Confirmed' because the bug affects multiple users.