Weird Servlet doGet performance


Web tier: servlets, JSP, Web frameworks: Weird Servlet doGet performance

  1. Weird Servlet doGet performance (1 messages)

    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();


    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,

  2. and what is a performance for doGet without this.doActionWorkflow();

    Yes, just for the raw doGet