Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69644 - Apache 2.0.52 take more thant 50% CPU every time
Summary: Apache 2.0.52 take more thant 50% CPU every time
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-31 10:56 UTC by Romang
Modified: 2005-04-23 20:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romang 2004-10-31 10:56:25 UTC
Hello,

Since I have upgrade the apache 2.0. i can see that apache take all the time 50% off the processor.

24993 webuser   25   0 44636 1956 1932 R 76.8  0.4   7404:16 apache2                           
29805 webuser   25   0 35168 1204 1196 R 57.9  0.2  21718:59 apache2                           
24095 webuser   25   0 29452 1128 1104 R 52.4  0.2  23041:55 apache2

Some times 100% off the processor.

Here is the load average off my server : top - 19:41:02 up 30 days, 20 min,  3 users,  load average: 5.38, 5.41, 4.78

Is a P4 2.8 Ghz with HT, 512 RAM

[root@www phpsession]$netstat -tn | grep :80 | wc -l
12

12 people on my webserver and apache take this charge ???

[root@www phpsession]$emerge -pv apache

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/apache-2.0.52  +berkdb -debug -doc +gdbm -ipv6 -ldap +ssl -static +threads 0 kB

[root@www postfix]$emerge --info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/ http://212.219.247.12/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm berkdb bitmap-fonts crypt curl encode f77 fbcon foomaticdb gd gdbm gif gpm hardened imap innodb java jpeg libg++ libwww mad maildir memlimit mikmod motif mysql ncurses nls pam pdflib perl png python readline sasl sdl slang snmp spell ssl svga tcpd truetype x86 xml2 xv zlib"

Do you have any idea why apache take all the CPU ressources, with previous version and no modification on the php code that is present on the web server i never have this charge.

Regards.
Comment 1 Paul Querna 2004-10-31 16:59:57 UTC
Emerge without threads.

The worker MPM is not supported for PHP.

USE"-threads" emerge -v apache
Comment 2 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 20:39:12 UTC
Closing.