Public bug reported: 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 MaxKeepAliveRequests 100 KeepAliveTimeout 2 <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 15 ServerLimit 256 MaxClients 256 #50 MaxRequestsPerChild 1000 </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://archive.ubuntu.com/ubuntu/ oneiric-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ oneiric-security/main amd64 Packages 100 /var/lib/dpkg/status 2.2.20-1ubuntu1 0 500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages $ sudo apt-cache policy libapache2-mod-php5 libapache2-mod-php5: 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/dpkg/status 5.3.6-13ubuntu3.6 0 500 http://archive.ubuntu.com/ubuntu/ oneiric-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ oneiric-security/main amd64 Packages 5.3.6-13ubuntu3.1 0 500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages $ ls -la /etc/apache2/conf.d/ 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-error-pages -rw-r--r-- 1 root root 143 2011-09-06 20:38 other-vhosts-access-log -rw-r--r-- 1 root root 1424 2011-09-06 20:38 security $ ls -la /etc/apache2/mods-enabled/ 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-available/alias.conf lrwxrwxrwx 1 root root 28 2012-01-15 18:57 alias.load -> ../mods-available/alias.load lrwxrwxrwx 1 root root 33 2012-01-15 18:57 auth_basic.load -> ../mods-available/auth_basic.load lrwxrwxrwx 1 root root 33 2012-01-15 18:57 authn_file.load -> ../mods-available/authn_file.load lrwxrwxrwx 1 root root 36 2012-01-15 18:57 authz_default.load -> ../mods-available/authz_default.load lrwxrwxrwx 1 root root 38 2012-01-15 18:57 authz_groupfile.load -> ../mods-available/authz_groupfile.load lrwxrwxrwx 1 root root 33 2012-01-15 18:57 authz_host.load -> ../mods-available/authz_host.load lrwxrwxrwx 1 root root 33 2012-01-15 18:57 authz_user.load -> ../mods-available/authz_user.load lrwxrwxrwx 1 root root 32 2012-01-15 18:57 autoindex.conf -> ../mods-available/autoindex.conf lrwxrwxrwx 1 root root 32 2012-01-15 18:57 autoindex.load -> ../mods-available/autoindex.load lrwxrwxrwx 1 root root 26 2012-01-15 18:57 cgi.load -> ../mods-available/cgi.load lrwxrwxrwx 1 root root 30 2012-01-15 18:57 deflate.conf -> ../mods-available/deflate.conf lrwxrwxrwx 1 root root 30 2012-01-15 18:57 deflate.load -> ../mods-available/deflate.load lrwxrwxrwx 1 root root 26 2012-01-15 18:57 dir.conf -> ../mods-available/dir.conf lrwxrwxrwx 1 root root 26 2012-01-15 18:57 dir.load -> ../mods-available/dir.load lrwxrwxrwx 1 root root 26 2012-01-15 18:57 env.load -> ../mods-available/env.load lrwxrwxrwx 1 root root 30 2012-01-15 21:06 headers.load -> ../mods-available/headers.load lrwxrwxrwx 1 root root 27 2012-01-15 18:57 mime.conf -> ../mods-available/mime.conf lrwxrwxrwx 1 root root 27 2012-01-15 18:57 mime.load -> ../mods-available/mime.load lrwxrwxrwx 1 root root 34 2012-01-15 18:57 negotiation.conf -> ../mods-available/negotiation.conf lrwxrwxrwx 1 root root 34 2012-01-15 18:57 negotiation.load -> ../mods-available/negotiation.load lrwxrwxrwx 1 root root 27 2012-01-15 18:57 php5.conf -> ../mods-available/php5.conf lrwxrwxrwx 1 root root 27 2012-01-15 18:57 php5.load -> ../mods-available/php5.load lrwxrwxrwx 1 root root 33 2012-01-15 18:57 reqtimeout.conf -> ../mods-available/reqtimeout.conf lrwxrwxrwx 1 root root 33 2012-01-15 18:57 reqtimeout.load -> ../mods-available/reqtimeout.load lrwxrwxrwx 1 root root 30 2012-01-15 22:27 rewrite.load -> ../mods-available/rewrite.load lrwxrwxrwx 1 root root 31 2012-01-15 18:57 setenvif.conf -> ../mods-available/setenvif.conf lrwxrwxrwx 1 root root 31 2012-01-15 18:57 setenvif.load -> ../mods-available/setenvif.load lrwxrwxrwx 1 root root 26 2012-01-15 21:02 ssl.conf -> ../mods-available/ssl.conf lrwxrwxrwx 1 root root 26 2012-01-15 21:02 ssl.load -> ../mods-available/ssl.load lrwxrwxrwx 1 root root 29 2012-01-15 18:57 status.conf -> ../mods-available/status.conf lrwxrwxrwx 1 root root 29 2012-01-15 18:57 status.load -> ../mods-available/status.load Virtualhost conf: (hiding just IP, domainname, directories) <VirtualHost 111.111.111.111:80> ServerName www.domain.com DocumentRoot /directory/directory/directory/directory/ ErrorLog /directory/directory/directory/tmp/logs/error.log CustomLog /directory/directory/directory/tmp/logs/access.log combined Loglevel warn DirectoryIndex index.html index.htm index.php index.php4 index.php5 ServerSignature Off <Directory /directory/directory/directory/directory/> Options -Indexes IncludesNOEXEC FollowSymLinks Allow from all AllowOverride All </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: ** Affects: apache2 (Ubuntu) Importance: Undecided Status: New ** Tags: apache2 cpu kvm overload qemu -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/952199 Title: oneiric LAMP server: Apache consumes 100% of cpu in QEMU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/952199/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs