LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2006, 08:02 PM   #1
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
Apache - change to worker MPM


How do you know when to change to the worker MPM?

From what i read it handles a higher load better..My question is, how do you know when to change, and does it really matter?

I am having problems with the prefork, i think due to increased traffic.

Thanks
 
Old 03-22-2006, 02:47 AM   #2
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
Post Re. Apache - change to worker MPM

Hi,

there is no such hard and fast rule. Theses things are decided when you begin setting up a server.

Prefork model works by creating some number of identical child processes, which are a copy of parent and hence it consumes memory resources. But it provides stability.

Worker model is a threaded model which works for improved performance and can share the memory space. Thus allowing a higher load on the server. The performance is definitely better as compare to Prefork model. Here is the catch though, it works best for apache 2.0 version or higher. Also you need to make sure that the modules you are using with apache must be thread-safe.


I would suggest you to go for worker model in case your server is high on load. I remember that in our servers we once had about 150 process spawning for apache, which caused a considerable load on the CPU. Check out the apache documentation for more knowledge on this. You would have to recompile your apache for changed MPM or you may use the in-build apache mpm models provided by various flavours of linux like Red Hat.

-Rahul.
 
Old 03-22-2006, 06:28 AM   #3
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
Thanks.

Im using Apache 2.0.54 or something.. kernel 2.6.x

The server is crashing only while there is a higher load on it, which is why i was considering recompiling apache.

I will, however, have to check and make sure all the modules I am using are thread safe.

thanks for the info.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache tuning question: prefork.c vs worker.c BrianK Linux - Networking 10 02-09-2012 01:42 PM
Apache + Suse 9.3 + MPM worker Suinatsa Linux - Software 1 01-31-2006 02:22 PM
using apache mpm for my own project? Thinking Programming 0 01-18-2006 06:49 AM
what if I use worker and prefork on apache? gottin Linux - Software 1 10-15-2004 03:19 PM
Perchild MPM s1mpl3 Red Hat 0 09-11-2004 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration