0
  • 1.200.000 request/day
  • 30.000 <> files/day
  • 5500 unique ip
  • wordpress + cache
  • debian lenny + php + suhosin patch + mysql
  • 4GB RAM
  • single sata disk
  • Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz

I'm using the default Apache configuration, but sometimes I get a zombie Apache process.

Any ideas?

My config can be read at pastebin.ca/1934046.

200_success
  • 4,771
  • 1
  • 25
  • 42

1 Answers1

0

Are you using the prefork MPM? Probably, so I will go with that.

MaxSpareServers and StartServers are kind of too far away from each other. The other thing is, see what modules you have enabled and let only the ones you need, so you will have smaller apache2 processes: smaller processes mean more processes in less memory.

The other thing I can suggest you is to monitor the number of apache processes you usually have and tune from here. If you always run on a low 30 and high 80, you can keep the spare servers higher.

Also, take a look on the keep alive configuration, you may want to get your MaxKeepAliveRequests higher and maybe get your KeepAliveTimeout lower. If you start to get too many zombies you can maybe turn off keep alive entirely or set the number of requests to a slow number (so the apache children will be recycled faster) but there's a performance hit.

Anyway, there's no way to exactly tune it without monitoring and seeing if there's any bottleneck to be solved on apache or the OS. Take a look at vmstat and check the number of processes, what they are doing and so on so you can identify choke points.

coredump
  • 12,713
  • 2
  • 36
  • 56