AW: [Zope3-Users] Slow response time with zope3
Hi > Betreff: Re: [Zope3-Users] Slow response time with zope3 [...] > > Any ideas where to look or how to optimise anyone? > > Have you tried profiling that first request? > > You could, e.g. easy_install profilehooks > (http://mg.pov.lt/profilehooks) and wrap the publish function > with the @profile decorator, then hit ^C after Zope 3 serves > the first request. Yeah, this is great helper. There is a new z3c.profiler available. This is a standalone app which can be installed and use next to our app. Just go to the http://localhost:8080/++skin++Profiler url and start the profiler, then go to your app and access the page which you like to profile. After that go back to the profiler page and check the result. Probably the profiler from Marius is the better choise if you need to catch the time for the first request. But if you have a working app which you can access by a url, then it's so easy to profile now. Regards Roger Ineichen > Marius Gedminas > -- > (Pdb) operationerr.w_value.w_value.w_value.w_value.w_value.w_value >at 0x5eee30> > -- one of the clearer PyPy debugging > sessions (seen in Michael Hudson's sig) > ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Slow response time with zope3
On Tue, Feb 05, 2008 at 02:41:56PM +0100, Jeremy Cook wrote: > I have been struggling to understand why my zope3 site has a high > latency (ie initial response time is slow). Bandwidth seems to be > adequate, it just seems that it can take several seconds from clicking > on a link, to actually seeing that my server is awake and responding. > The server has no load or anything on it. I even started ZEO but see > little improvement. Usually the first request is slower than the rest because the ZODB object caches are empty and it has to load everything from disk (or ZEO). > The strange thing is that when I click a link in 2 browsers on 2 > different hosts at the same time (right hand on desktop, lefthand on > laptop) I seem to get a faster response from both. I have tried both > with and without apache forwarding requests and dont seem to see any > difference. The problems seems to be something to do with zope3 taking > time to initially respond. > > Any ideas where to look or how to optimise anyone? Have you tried profiling that first request? You could, e.g. easy_install profilehooks (http://mg.pov.lt/profilehooks) and wrap the publish function with the @profile decorator, then hit ^C after Zope 3 serves the first request. Marius Gedminas -- (Pdb) operationerr.w_value.w_value.w_value.w_value.w_value.w_value -- one of the clearer PyPy debugging sessions (seen in Michael Hudson's sig) signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Slow response time with zope3
Hi there, I have been struggling to understand why my zope3 site has a high latency (ie initial response time is slow). Bandwidth seems to be adequate, it just seems that it can take several seconds from clicking on a link, to actually seeing that my server is awake and responding. The server has no load or anything on it. I even started ZEO but see little improvement. The strange thing is that when I click a link in 2 browsers on 2 different hosts at the same time (right hand on desktop, lefthand on laptop) I seem to get a faster response from both. I have tried both with and without apache forwarding requests and dont seem to see any difference. The problems seems to be something to do with zope3 taking time to initially respond. Any ideas where to look or how to optimise anyone? Jeremy Cook ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users