Delay between when the servlet thread stops processing the current page and when it starts on another page

Posted on

Hi all,

I am seeing an issue in my UAT jboss 7.2 servers where the threads seems to be pausing 500ms between handling requests.

I have logged a line at the start and end of my doGet method, and when I look at the server log files, and filter out a single thread, it always shows that after printing out the end method log message, there is a delay of 450ms to 550ms, before the thread starts on the next doGet.

This is seriously impacting my load test as this 1/2 second delay is causing jboss to queue up the requests, making a single page (that loads a few js and css) that should take only 1 or 2 seconds, take up to 50 or 60 seconds.

2020-10-02 20:22:38,188 INFO  [/LMSTrainee] (default task-31) -----
2020-10-02 20:22:38,192 INFO  [/LMSTrainee] (default task-31) Page start.
2020-10-02 20:22:38,197 INFO  [/LMSTrainee] (default task-31) Time taken : 9ms
2020-10-02 20:22:38,198 INFO  [/LMSTrainee] (default task-31) -----
2020-10-02 20:22:38,834 INFO  [/LMSTrainee] (default task-31) -----
2020-10-02 20:22:38,834 INFO  [/LMSTrainee] (default task-31) Page start.
2020-10-02 20:22:38,861 INFO  [/LMSTrainee] (default task-31) Time taken : 27ms
2020-10-02 20:22:38,861 INFO  [/LMSTrainee] (default task-31) -----
2020-10-02 20:22:39,492 INFO  [/LMSTrainee] (default task-31) -----
2020-10-02 20:22:39,493 INFO  [/LMSTrainee] (default task-31) Page start.
2020-10-02 20:22:39,493 INFO  [/LMSTrainee] (default task-31) Time taken : 1ms
2020-10-02 20:22:39,493 INFO  [/LMSTrainee] (default task-31) -----