Advice for finding a leaky Apache (probably PHP) process
Adam Vande More
amvandemore at gmail.com
Sun Apr 25 03:54:42 UTC 2010
On Sat, Apr 24, 2010 at 8:02 PM, Joe Auty <joe at 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
More information about the freebsd-questions
mailing list