Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a standard Centos 6.2 installation, running LAMP. Build using 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.

share|improve this question

closed as not a real question by adaptr, Khaled, voretaq7 Jul 26 '12 at 22:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This is an extremely vague, yet complex question. The first thing to do is post your current configuration. – WerkkreW Apr 23 '12 at 14:07
The configuration is in the weblink. do I need to show my apache.conf? Thanks – Dave M Apr 23 '12 at 14:17
Yes please. Knowing that Joomla is PHP based I have a good idea of what the issue is assuming you are running mod_php but the solution is not really easy. – WerkkreW Apr 23 '12 at 14:27
Are you using a bytecode cache like APC? – HTTP500 Apr 23 '12 at 14:58

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.

share|improve this answer

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

share|improve this answer
This is a valid suggestion but not necessarily the right answer. – WerkkreW Apr 23 '12 at 14:25
will try varnish, thanks – Dave M Apr 23 '12 at 14:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.