View Single Post
  #1  
Old 22nd February 2011, 17:33
talkingnews talkingnews is offline
Member
 
Join Date: Jan 2011
Posts: 65
Thanks: 15
Thanked 5 Times in 5 Posts
Default "The Perfect Server" - but why prefork for Apache?

I installed "The Perfect Server" on my 512Mb RAM Ubuntu 10.10 VPS following this excellent guide.

http://www.howtoforge.com/perfect-se...ispconfig-3-p4

But it says:

Quote:
aptitude install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils ...etc
And sure enough, if I run apache2 -l I get:

Code:
Compiled in modules:
  core.c
  mod_log_config.c
  mod_logio.c
  prefork.c
  http_core.c
  mod_so.c
I've had continuing memory and resource issues whatever I tweaked, and then I saw the following guide:

http://www.devside.net/articles/apac...ormance-tuning

Quote:
Chose the right MPM for the right job:

prefork [default MPM for Apache 2.0 and 1.3]:
Apache 1.3-based.
Multiple processes, 1 thread per process, processes handle requests.
Used for security and stability.
Has higher memory consumption and lower performance over the newer Apache 2.0-based threaded MPMs.

worker:
Apache 2.0-based.
Multiple processes, many threads per process, threads handle requests.
Used for lower memory consumption and higher performance.
Does not provide the same level of isolation request-to-request, as a process-based MPM does.
Excuse my newbie-ish questions, but after having had a good poke around, I'm still not sure if and how I can swap the running versions of Apache.

I just want to try running worker instead of prefork for a day or two to see how it goes. How can I achieve this? Thank you!
Reply With Quote
Sponsored Links