Re: Slow requests
Re: Slow requests
- Subject: Re: Slow requests
- From: "Morris, Mark" <email@hidden>
- Date: Fri, 11 Aug 2017 01:20:15 +0000
- Thread-topic: Slow requests
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
_______________________________________________
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