Hey everyone, I'm working with a Grails 2.5.6 appl...
# questions
f
Hey everyone, I'm working with a Grails 2.5.6 application and noticed some strange behavior. After starting the app using
grails run-app
, the first login (
/j_spring_security_check
) and the first render after logging in take an unusually long time to complete. According to the browser's network tab, the first login takes around 3 seconds, while the initial post-login render takes about 20 seconds. After this first interaction, performance returns to normal. Any suggestions on how to improve this behavior and what might be causing it?
s
With Grails 2.x (and you REALLY should upgrade) the first run does some initialization, caching and gsp compilation, that's probably why the first request is slower. When you run in production, GSP's are precompiled, but you often see a small delay for the first page to be served.
f
We're already working on a version upgrade. But I'd like to improve this behavior, is it possible to do some kind of preloading during the bootstrap?
s
You could do a http request from your bootstrap