High CPU-load with apache 1.3.33+mod-ssl, mod-php

Randy Rowe rerowe at rerowe.com
Thu Feb 17 14:32:41 GMT 2005


On Thu, 2005-02-17 at 09:15 -0500, First Last wrote:
> > Hello list,
> > 
> > Im running FreeBSD 5.3 on a 1.4GHz/256mb P4. I've done  make buildworld
> > and make buildkernel with these options in make.conf:
> > 
> > -------------------------------------------------------
> > # -- use.perl generated deltas -- #
> > # Created: Wed Feb 16 14:46:12 2005
> > # Setting to use base perl from ports:
> > PERL_VER=5.8.5
> > PERL_VERSION=5.8.5
> > PERL_ARCH=mach
> > NOPERL=yo
> > NO_PERL=yo
> > NO_PERL_WRAPPER=yo
> > 
> > CPUTYPE=p4
> > CFLAGS= -O2 -pipe -funroll-loops -ffast-math
> > COPTFLAGS= -O2 -pipe -funroll-loops -ffast-math
> > NOPROFILE=true
> > -------------------------------------------------------
> > 
> > I've installed apache13-modssl, mysql41-server, squirrelmail, phpMyAdmin
> > and everything that is required for these packages to run. (Everything
> > from ports, compiled with the make.conf above). httpd.conf and php.ini and
> > other configfiles are stock, unchanged.
> > 
> > Now, everything works like a charm, excpet that whenever i run phpMyAdmin
> > or Squirrelmail, the cpu-load gets quite high, and stays high for several
> > seconds (7-10) after the page has finished loading. Note that the onlyone
> > using the system is my self.
> > 
> > The exact same setup on a linuxsystem doesen't come near the FreeBSDsystem
> > in cpuload.
> > 
> Why do you say that's its because of apache, can it be a mysql issue, ??

I didn't notice that apache was blamed. :-)


> IS THERE ANYTHING IN DMESG

You might try running top when accessing these pages
to see what's going on.



More information about the freebsd-stable mailing list