4 ms·
Cold startup is almost unnoticeable for Python apps (bite my lip! see update below). On the Java side it can be an issue but, as with most things, if you dig ar
by eop 17y ago
Cold startup is almost unnoticeable for Python apps (bite my lip! see update below). On the Java side it can be an issue but, as with most things, if you dig around, you can find some acceptable workarounds.
- cgrinds 17y agoNo - I've seen 'Hello World' style apps take over 4s to cold startup. For example http://timezonetimezone.appspot.com/iscorrect?query=EST http://timezonetimezone.appspot.com/iscorrect?query=EST Took 4.67s to render http://www.webpagetest.org/result/100306_5PZ7/1/details/ http://www.webpagetest.org/result/100306_5PZ7/1/details/ I monitored cold startup for a month on one of my apps and some times see 10s cold startup. http://www.webpagetest.org/result/100309_5TDW/ http://www.webpagetest.org/result/100309_5TDW/ This is after profiling, reducing imports, caching, using app appstats, etc.
- eop 17y agoWow, you're right. I just ran a test on one of my Python apps and found the same thing. I always assumed 4 seconds was an acceptable start up time, especially when compared with some of the Java apps I have runnning on App Engine which have often exceeded the 30 second page limit on startup and generated a DeadlineExceededException. Thanks for showing your results. I would never have known this was an issue.