Re: Slow requests
Re: Slow requests
- Subject: Re: Slow requests
- From: René Bock <email@hidden>
- Date: Fri, 11 Aug 2017 07:36:22 +0000
- Thread-topic: Slow requests
Hi Birthe,
you may also consider activating the ERXStatisticsStore. It will make a
snapshot of running requests after a certain amount of time has expired.
Or use a profiler (like jProfiler) to see if there a hotspots in your code...
Am 11.08.2017 um 03:20 schrieb Morris, Mark
<email@hidden<mailto:email@hidden>>:
Hi Birthe,
I’m not sure if this is the best way, but it’s what first comes to mind.
You could override WOApplication’s takeValuesFromRequest or invokeAction (or
both, using the former if available and the latter otherwise) and save the
current time in the WOContext’s userInfo before calling super. Then in
WOApplication’s appendToResponse, after calling super, you could log the URL,
the elapsed time, and any other useful info you might have access to (from
WOContext you can get to session, for instance). You could also if desired put
a threshold on min duration to be logged, to avoid logging every request. Just
a though.
We have something similar keeping track of long response times using
WOSession’s awake and sleep, so that’s another avenue for session-based
requests.
Hope this helps!
Regards,
Mark
On Aug 7, 2017, at 7:58 AM, Birthe Berland
<email@hidden<mailto:email@hidden>> wrote:
Hi,
From time to time we experience requests that take too long time. From the
Apache log we can see the url causing the problem. Is there a way to find out
which component/action it corresponds to? We have trouble locating the action
from the dot notification.
Med venlig hilsen
Birthe Berland
Complimenta
Tel.: 8830 7600
<logo.png>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Mit freundlichen Grüßen
René Bock
--
Telefon: +49 69 650096 18
salient GmbH, Lindleystraße 12, 60314 Frankfurt
Telefon Zentrale: 069 / 65 00 96 - 0 |
www.salient-doremus.de<http://www.salient-doremus.de>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden