branaway / Japid

A Java-based statically-typed fast template engine that can be used in any Java code. It has special adapter for use with the Play! Framework.
113 stars 18 forks source link

play-japid cold start issue on GAE #43

Open bendanpa opened 12 years ago

bendanpa commented 12 years ago

I have very simple hello world paly+japid app on GAE. The problem I have is when I refresh the page over a couple of minutes it takes about 7 seconds to load the page. It looks like not a GAE issue as the instance is still active on the gae admin console. I also tried rythm and rythm does not have this issue (it does take more time to load a page for real cold start since it does not have a precompile template.) please take a look.

Regards, Bendanpa

branaway commented 12 years ago

Hi,

It's been a long while since I played with GAE.

I cannot think of a explanation for what you have observed since Japid at runtime is just a plain Java class.

Can you try this link to see if shows similar delay? http://bb55rr2.appspot.com/products/indexj?n=30

It is a little app running Japid 0.8.5.x deployed very long ago.

Bing

2012/5/11 bendanpa < reply@reply.github.com

I have very simple hello world paly+japid app on GAE. The problem I have is when I refresh the page over a couple of minutes it takes about 7 seconds to load the page. It looks like not a GAE issue as the instance is still active on the gae admin console. I also tried rythm and rythm does not have this issue (it does take more time to load a page for real cold start since it does not have a precompile template.) please take a look.

Regards, Bendanpa


Reply to this email directly or view it on GitHub: https://github.com/branaway/Japid/issues/43

bendanpa commented 12 years ago

Hi,

I tried your sample and it does not have the issue I described. But I don;t know why such a small example of mine has the cold issue. does it matter with the different versions? I used GAE 1.6 and play 1.2.4 and japid 0.9.3.4.

And the weird thing is that I redeployed the exact same tiny app to another app-id and the "cold refresh" disappeared. however, the old one still have the issue.

the old url: flex-on-grails.appspot.com , this one has the cold refresh issue. new url: play-japid.appspot.com this one is ok

Anyway, I will do some more experiments

Thanks, Bendanpa

branaway commented 12 years ago

Was there something like keep-warm in the app setting? It has been a long time since last time I touched it.

bing ran, en route

在 2012-5-11,5:54,bendanpareply@reply.github.com 写道:

Hi,

I tried your sample and it does not have the issue I described. But I don;t know why such a small example of mine has the cold issue. does it matter with the different versions? I used GAE 1.6 and play 1.2.4 and japid 0.9.3.4.

And the weird thing is that I redeployed the exact same tiny app to another app-id and the "cold refresh" disappeared. however, the old one still have the issue.

the old url: flex-on-grails.appspot.com , this one has the cold refresh issue. new url: play-japid.appspot.com this one is ok

Anyway, I will do some more experiments

Thanks, Bendanpa


Reply to this email directly or view it on GitHub: https://github.com/branaway/Japid/issues/43#issuecomment-5637764