Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 2010 22:54:42 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Joe Auty <joe@netmusician.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Advice for finding a leaky Apache (probably PHP) process
Message-ID:  <v2z6201873e1004242054g362bdd5fr63133ecdbc723141@mail.gmail.com>
In-Reply-To: <4BD394BC.7030501@netmusician.org>
References:  <4BD394BC.7030501@netmusician.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 24, 2010 at 8:02 PM, Joe Auty <joe@netmusician.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v2z6201873e1004242054g362bdd5fr63133ecdbc723141>