Response Time is different for mulitiple execution of the application with the same request Performa

Posted by sivananda on Stack Overflow See other posts from Stack Overflow or by sivananda
Published on 2010-04-07T11:30:25Z Indexed on 2010/04/07 11:33 UTC
Read the original article Hit count: 169

Filed under:
|

My java application functionality is to provide reference data (basically loads lots of data from xml files into hashmap) and hence we request for one such data from the hashmap based on a id and we have such multiple has map for different set of business data. The problem is that when i tried executing the java application for the same request multiple times, the response times are different like 31ms, 48ms, 72ms, 120ms, 63ms etc. hence there is a considerable gap between the min and max time taken for the execution to complete. Ideally, i would expect the response times to be like, 63ms, 65ms, 61ms, 70ms, 61ms, but in my case the variation of the response time for the same request is varying hugely. I had used a opensource profile to understand if there is any extra execution of the methods or memory leak, but as per my understanding there was no problem. Please let me know what could be the reasons and how can i address this problem.

© Stack Overflow or respective owner

Related posts about java

Related posts about Performance