Matthew Seaborn wrote:
I have been doing some profiling on my Struts 2 applications (also
using SiteMesh and Spring) and have found, like many others, that most
of the request/response time is taken rendering of the JSP page
(assuming I am reading the profile correctly).
What exactly is the guilty party here, OGNL or Freemarker?
I have made all of the optimisations detailed in
http://struts.apache.org/2.x/docs/performance-tuning.html yet I still
get profiles like the one below.
Has anyone any other suggestions on how to improve this?
INFO: [4224ms] - ActionContextCleanUp_doFilter:
[4100ms] - FilterDispatcher_doFilter:
[4100ms] - Handling request from Dispatcher
[16ms] - create DefaultActionProxy:
[16ms] - create DefaultActionInvocation:
[16ms] - actionCreate: viewRight
[4084ms] - invoke:
...
[0ms] - invokeAction: viewRight
* [4037ms] - executeResult: input*
That's a lot of milliseconds. For those sorts of numbers, I'd guess
you're using an open-session-in-view interceptor/filter and your result
is causing a select n+1 iteration (loads of sql selects while rendering
the view). Few other things are so slow.
If you happen to be using Hibernate or other persistence, turn on
display of sql.
Otherwise, what was the result type, what's the nature of the result
(eg. a form with many struts tags)?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]