From owner-freebsd-questions@FreeBSD.ORG Sun Apr 25 03:54:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE6C7106564A for ; Sun, 25 Apr 2010 03:54:42 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id 7736E8FC0A for ; Sun, 25 Apr 2010 03:54:42 +0000 (UTC) Received: by mail-qy0-f181.google.com with SMTP id 11so13374155qyk.13 for ; Sat, 24 Apr 2010 20:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=CibZLBdfcPXUwwD2ARW6X1thVhrgc/e7P18IeLxFHao=; b=Bgvt1TUcDkAXMRpOCYCEa+dhALi4azBQ6lNELryu5+bKkpAhGYhRjn+6MlLmDhBhdH M1xr579ypoZFa566q/3ZfkXaoEGiVKG+MtkvEtrl9MMsndCFAq3ebcZgpl3Pj8pTBojN Fy31R41+qOuZ9HVOt8QYPGMh6QvfHMHP8BE18= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ckOWhBe4slIxHJq0MH4ITgtO8/oeq/R4/LMTi7ZN0HLCIJ7L/UEDX4Ul3l2PLs+m+b kjCn0AeeNImNL/vCUgk0B6R5qqrLPzXclanvmvL0AbWcoH2UmQ0f/Y6exWEeomJ2IWoI lc4jVqVLV31maNnEVhcqiSHGgUAQ77k2jpCcc= MIME-Version: 1.0 Received: by 10.229.251.69 with SMTP id mr5mr2526237qcb.91.1272167682254; Sat, 24 Apr 2010 20:54:42 -0700 (PDT) Received: by 10.229.99.67 with HTTP; Sat, 24 Apr 2010 20:54:42 -0700 (PDT) In-Reply-To: <4BD394BC.7030501@netmusician.org> References: <4BD394BC.7030501@netmusician.org> Date: Sat, 24 Apr 2010 22:54:42 -0500 Message-ID: From: Adam Vande More To: Joe Auty Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Advice for finding a leaky Apache (probably PHP) process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2010 03:54:42 -0000 On Sat, Apr 24, 2010 at 8:02 PM, Joe Auty wrote: > Hello, > > I'm wondering if you guys have any general tips on how to find the > Apache process/app that is gobbling up my RAM randomly until my machine > crashes and I'm forced to reboot? I'm tired of staring at top and > working with flimsy hacks such as 10 minute Apache restart cronjobs. > > This seems to start (or worsen) after updating to PHP 5.3, but this is > not happening on my test machine where PHP 5.3 is also installed and the > same apps are used (although not publicly). > > General tips and suggestions are welcome here! > > THanks in advance... > Have you tried working with php's mem limit abilities? The base system provides procstat for tracking invidual process info. You could try something like appending ps aux > file every minute or so to track growth etc. Can you provide more info about the php app? -- Adam Vande More