• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wierd problem when performance testing a web application

 
dhyan murali
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have the below code in the controller :



and the method linkDataService.get() looks like below .



when i deploy this in jboss & performance test by sending 100 request persecond -- I see the below log



Can some one tell me why would this happen .. gettime and time to get are technically next instructions to get executed .
I see this mainly when request persecond to that controller is high...
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What, did you think that unrolling a call stack was free? It isn't. (My mainframe compatriots agonize over the machine cycles it takes to build and unroll a call stack, which shocks me every time I work with them...)

Also, it very well could be that a GC happened in between the two log entries. The TimeToGet log entry is building a string dynamically, and if you hit this exact line at the time that eden was full, you would have to wait until GC is complete before you can carry on.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic