0

I have a standard Centos 6.2 installation, running LAMP. Build using http://www.howtoforge.com/perfect-server-centos-6.2-x86_64-with-apache2-ispconfig-3-p2 Without the ISPconfig part.

The build is on a VM in ESX4.1, 100GB HDD 40Gb RAM

Apache load is always hogging CPU, our site is Joomla based and has heavy dynamic content.

Can anyone suggest the best settings in apache to make this run better.

Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83
Dave M
  • 1

2 Answers2

3

You can use apache top to find out which pages are the most popular ones. For those particular pages you can profile them with xdebug.

I would also try to find out if the CPU load is caused by the IO or is in user space. See: dstat, iotop, vmstat.

You can use strace -T <apache_worker_PID> on the apache worker that is clogging the CPU to see in which syscalls is spending the time.

Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83
2

Install a caching reverse-proxy like Varnish and set it up in front of Apache.

pkhamre
  • 6,120
  • 3
  • 17
  • 27