We are using Grails 2.2.4, WebSphere 188.8.131.52 all running on AIX 184.108.40.206. Websphere is using the IBM JDK:
Java(TM) SE Runtime Environment (build pap6460_26sr3ifix-20121005_02(SR3+IV27268+IV27928+IV28217+IV25699))
IBM J9 VM (build 2.6, JRE 1.6.0 AIX ppc64-64 20120919_122629 (JIT enabled, AOT enabled)
J9VM – R26_Java626_SR3_iFix_1_20120919_1316_B122629
JIT – r11.b01_20120808_24925ifx1
GC – R26_Java626_SR3_iFix_1_20120919_1316_B122629 J9CL – 20120919_122629)
JCL – 20120713_01
The problem is that using:
grails.gsp.enable.reload = true grails.gsp.view.dir="/path/to/gsp/views"
is slow, and by that I mean a good 20 seconds to render a small GSP. What’s interesting is that in our local development environments it takes 2 seconds.
We’ve isolated this problem by having a controller that does nothing except call render(..) on a blank GSP with nothing in the model, so I can only assume it’s the compilation but I could be wrong.
Has anyone come across other instances where rendering GSPs is extremely slow, or have any suggestions, perhaps it’s some sort of weird JDK issue on AIX?
In addition to the bounty, whoever answers this correctly gets free waffles.
EDIT Just noticed this the other day: there are three environments with the same WAS config and setup and one of them works fine, so it is definitely some sort of environment issue.
Turned out the problem was https://plugins.grails.org/plugin/sergiomichels/grails-melody-plugin. Who knew!
Answered By – Alex Beardsley
Answer Checked By – David Marino (BugsFixing Volunteer)