Hi,

If something runs for that long than I would thin its possibly a cron job.
There shouldn't be too many.

Kind Regards,

Jochen Daum

Chief Automation Officer
Automatem Ltd

Phone: 09 630 3425
Mobile: 021 567 853
Email: [email protected]
Skype: jochendaum
Website: www.automatem.co.nz


On Tue, Jul 7, 2009 at 1:20 PM, Neven MacEwan <[email protected]> wrote:

>
> Download a demo copy of Nusphere phped and use their 'profiler'
> functionality
>
>
> > Hello PHP gurus,
> >
> > One of our customers websites is causing occasional sustained load on
> > our server.  It is a custom PHP solution that we have worked on over
> > the past couple of years.  We'll notice that the particular server is
> > responding slowly and investigate to find that Apache is taking a fair
> > chunk of CPU (close to 100% across the CPU's).  This tends to fix
> > itself after a few minutes but meantime the time to serve requests
> > from that server is not acceptable.
> >
> > We have access to the HTTP logs of course, and can run commands as
> > root on the server (ps, top etc) but in order to track it down it
> > would be great if we could monitor PHP CPU usage.
> >
> > Questions:
> >
> > 1. Is there a way to find out how long each PHP request takes without
> > modifying existing code?
> > 2. If we were to modify the code, are there any special things that we
> > need to do (e.g. do we need to play around with
> > register_shutdown_function for logging, and how robust is it for this
> > kind of thing?)
> >
> > Any help appreciated,
> >
> > Graham.
> >
> > >
> >
> >
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to