• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wierd problem when performance testing a web application

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic