GSP rendering is very slow

GSP rendering in our Grails application is very slow

We tried to isolate the issue using JavaMelody, the mean time to render gsp is 16,083ms which is way too slow.

So i'm sure the rendering of GSP is the main problem.

Any suggestions?


GSP is actually very fast and comparable in speed to most rendering technologies. If you are having speed issues it is normally down to the complexity of your page and / or tag libraries.

Consider what tag libraries you are using, whether you are using excessive numbers of includes/templates and also profile if you are lazy loading data in your view. If you have an n+1 problem with lazy loaded data you could be executing a lot of queries during view rendering which slows things down massively.

链接地址: http://www.djcxy.com/p/85050.html

上一篇: AIX / IBM Java上的cxf,jaxb

下一篇: GSP渲染非常缓慢