Why does the first access to a JSP file take longer on the Google App Engine?

Posted by Spines on Stack Overflow See other posts from Stack Overflow or by Spines
Published on 2010-03-17T18:17:33Z Indexed on 2010/03/17 18:21 UTC
Read the original article Hit count: 128

Filed under:
|

Here is my test: I access a servlet to get the JVM to load (absorb the loading request). Then i access a JSP that has <%= 5+7 %> in it and nothing else. The first access to this JSP uses 350ms of CPU time and has latency of 200ms. Subsequent accesses only have latency and cpu time of about 20ms.

Why does the first access to the jsp after starting the servlet container take longer?

© Stack Overflow or respective owner

Related posts about java

Related posts about google-app-engine