I just recently starting using coherence as a caching framework and decided to do some stress testing. However under load, I got some very strange delays in response time that I can't figure out.
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException{
long startTimer = System.currentTimeMillis();
this.doActionWorkflow();
System.out.println("Overall time: " + (System.currentTimeMillis() - startTimer));
}
I also have timers inside the doActionWorkflow() method to see how long that takes. On Avg it takes about 60-80ms. HOWEVER....the entire doGet method from start to finish takes an additional 2500-3500 ms longer.
Note: the doActionWorkflow() method takes care of sending the response data back to the client.
Now I checked to make sure I wasn't exceeding the max threads in my servlet container and I have about 1GB of ram allocated to JBoss. Also, these request's are for just web pages.
Thanks a lot for you help in advance,
Mark.
-
Weird Servlet doGet performance (1 messages)
- Posted by: mark greene
- Posted on: April 21 2005 16:49 EDT
Threaded Messages (1)
- Weird Servlet doGet performance by Marina Prikaschikova on April 25 2005 01:56 EDT
-
Weird Servlet doGet performance[ Go to top ]
- Posted by: Marina Prikaschikova
- Posted on: April 25 2005 01:56 EDT
- in response to mark greene
and what is a performance for doGet without this.doActionWorkflow();
Yes, just for the raw doGet
Marina
http://www.servletsuite.com