From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 13:16:46 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3679E16A4CE for ; Wed, 9 Feb 2005 13:16:46 +0000 (GMT) Received: from mail.orangexl.nl (mail.orangexl.nl [194.109.66.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A7A443D1D for ; Wed, 9 Feb 2005 13:16:45 +0000 (GMT) (envelope-from info@orangexl.com) Received: from OrangeXL (cp262152-a.roose1.nb.home.nl [84.26.101.188]) (AUTH: LOGIN postmaster@orangexl.com) by mail.orangexl.nl with esmtp; Wed, 09 Feb 2005 14:16:43 +0100 From: "Sander Holthaus - Orange XL" To: freebsd-questions@freebsd.org Date: Wed, 9 Feb 2005 14:16:50 +0100 Organization: Orange XL Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcUOqZ0mD4QMMR/+SFSnttemQ/DKiQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: FreeBSD 4.10 and Apache 2.0.5x: setting limits X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 13:16:46 -0000 You can set the limits (ulimit) for Apache 2 through a variable (apache2limits_args enabled by apache2limits_enable) in rc.conf. If enabled, it uses, by default, the limits for login-class daemon as found in /etc/login.class; daemon:\ :coredumpsize@:\ :coredumpsize-cur=0:\ :datasize=infinity:\ :datasize-cur@:\ :maxproc=512:\ :maxproc-cur@:\ :memoryuse-cur=64M:\ :memorylocked-cur=64M:\ :openfiles=1024:\ :openfiles-cur@:\ :stacksize=16M:\ :stacksize-cur@:\ :tc=default: I take it these settings are quite general, and may not be sufficient (to restrictive or not). So I was wondering what kind of limits other users are using. And how those settings scale or depend on various configurations? Googling, or Apache: Definitive Reference / Apache Cookbook do not seem to provide any clues here :-( Kind Regards, Sander Holthaus