File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Default stack of interceptors execution time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Default stack of interceptors execution time" Watch "Default stack of interceptors execution time" New topic
Author

Default stack of interceptors execution time

Andrei Antonescu
Ranch Hand

Joined: Jul 08, 2010
Posts: 75
Hello,
I am having performance related problems with an app that is using Struts 2.0.
I was wondering if the "default" stack of interceptors takes a lot of time to execute (1-2 sec)?

Thanks in advance
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

Unlikely. When you are hunting for a performance problem, as our Enterprise Performance FAQ says, Measure, Don't Guess. I used the JAMon tool mentioned in the FAQ and highly recommend it.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Andrei Antonescu
Ranch Hand

Joined: Jul 08, 2010
Posts: 75
Thanks for the info. I will try using JAMon to monitor performance and hopefully I will find the problem.
Beppe Catanese
Greenhorn

Joined: Nov 07, 2006
Posts: 27
I have been profiling my app (Netbeans profiler) and indeed I can see where a simple request takes time.

The DefaultActionInvocation.executeResult takes the 87.4% of the request, anybody knows what takes really the
time here?
Is it building the beans from the HttpRequest parameters? is the actual execution of the result (dispatching the JSP)?

Any tip to make it lighter/quicker (without updating com.opensymphony code)?

Tnx
Beppe
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

The JavaDoc says:
Uses getResult to get the final Result and executes it

So I would assume that means it is processing your JSP. What's your JSP doing that is taking so long? Creating a huge table from a result set perhaps?
 
wood burning stoves
 
subject: Default stack of interceptors execution time
 
Similar Threads
parameter and scope interceptor
problem with struts2 checkbox
Struts2 ajax theme - One form, two buttons.. two actions?
Struts2: losing form objects through interceptor
interceptor not working in struts 2