Apache Worker MPM

80 views
Skip to first unread message

Nathan

unread,
Jun 10, 2008, 12:40:43 AM6/10/08
to Phusion Passenger Discussions
I am pretty sure the early releases of Passenger only allowed for
Prefork MPM yet clearly the preferred method is now Worker MPM. Do I
have to do anything to switch my application from Prefork to Worker
MPM? How exactly do I configure that within Apache?
Message has been deleted

Nathan

unread,
Jun 10, 2008, 1:59:38 AM6/10/08
to Phusion Passenger Discussions
Vaguely answering my own question...not sure if this is documented
somewhere and I just missed it:

$ sudo apt-get install apache2-mpm-worker

This will remove prefork and move to "worker". Then edit the apache
configuration file:

$ sudo vim /path/to/apache2/apache2.conf

and edit the worker configuration to contain the following
(recommended by Hong Lai)

<IfModule mpm_worker_module>
StartServers 1
MaxClients 10
MinSpareThreads 1
MaxSpareThreads 1
ThreadsPerChild 10
MaxRequestsPerChild 50000
ThreadStackSize 500000
</IfModule>

Let me know if there is something I am missing or if those values are
not correct / more configuration is missing.

David

unread,
Jul 14, 2008, 11:38:02 PM7/14/08
to Phusion Passenger Discussions
sudo apt-get install apache2-mpm-worker

What about on a mac?

I'm no guru, but my error message, "sudo: apt-get: command not found"
would lead me to believe apt-get doesn't come with Darwin, maybe only
Ubuntu?

On Jun 10, 12:59 am, Nathan <XGamer...@gmail.com> wrote:
> Vaguely answering my own question...not sure if this is documented
> somewhere and I just missed it:
>
> $ sudo apt-get install apache2-mpm-worker
>
> This will removepreforkand move to "worker". Then edit theapache

Nathan

unread,
Aug 21, 2008, 5:36:40 PM8/21/08
to Phusion Passenger Discussions
Yeah, that was for using worker with Ubuntu. apt-get only exists as a
packaging system in Ubuntu. I only needed worker for production so
that is why I am not sure how to install it for Mac.

Also, can someone verify the settings for worker MPM I pasted as being
reasonable defaults?

Hongli Lai

unread,
Aug 21, 2008, 6:35:34 PM8/21/08
to phusion-...@googlegroups.com

Yes, we use the same values on our servers.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Reply all
Reply to author
Forward
0 new messages