Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leopard, Apache, and launchd maxproc limits?



Hey Guys,

We're preparing for a transition to Mac OS X 10.5 Server, and I had a purely theoretical question. We've run into Apache process limit situations in the past, and I want to make sure we're prepared in Leopard just in case!

Leopard's stock Apache 2 ships with MaxClients set to 1024 in /etc/ apache2/httpd.conf:

	MaxClients 1024

Meaning that, at peak, there will be 1024 Apache processes serving 1024 possible clients.

That said, Leopard's launchd, which starts Apache 2, seems to have a default process limit of 266 (hard limit of 532).

	sh-3.2# launchctl limit
	[...]
	maxproc 266 532

I'm curious how this works out in reality. If launchctl limits Apache to 266 (or 532) processes, how can it possibly serve 1024 clients?

Is launchctl smart enough to "extend" the hard limit on demand? Or do these limits totally not relate to each other?

I apologize in advance if this is a super basic question, but thanks for any pointers. :)

Best,
Cabel
Panic

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.