Re: Measuring performance and finding bottleneck
Alessandro Pisa <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAFLUjzMAhfAAdoREA2DG_-6OcD0KvF72vysGvxNijRasqZ-5Jw@mail.gmail.com> |
On 6 February 2014 09:42, Alessandro Pisa <[email protected]> wrote: > On 6 February 2014 09:17, Yuri <[email protected]> wrote: >> Il 06/02/2014 09:11, Alessandro Pisa ha scritto: >>> Anyway, without installing anything, if you are running Zope 2.13 you >>> can just get some info sending a SIGUSR1 signal to your process, e.g.: >>> - kill -USR1 $PID >>> You will find thread traceback dumps on your logs. >> >> This in debug mode? I've tried this in non debug mode and it just logs >> the signal event. >> > > I think fg mode (or some workaround) is needed because of this print: > - https://github.com/zopefoundation/Zope/blob/master/src/Signals/Signals.py#L62 > Replacing that line with logger.info(dump_threads()) fills the log also in background mode. Ciao -- http://alepisa.blogspot.com Esalando Prassi ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk