Starting with grails 3.1.7 production view rendering periodically hangs for long periods of time (60ms views turn into 60second loads), This is directly related to the upgrade to spring framework 4.2.6 from 4.2.5.
Steps to Reproduce
- Run Grails 3.1.7+
- Subject application war (tomcat) to load
- Note page response times drop (hard to reproduce but seems to be related to concurrency).
Expected Behaviour
View (GSP) rendering should not pause or hang like it does since moving from spring framework 4.2.5 to 4.2.6 and 4.2.7
Actual Behaviour
Pages periodically hang for long periods of times making site appear slow and non responsive.
Environment Information
- Operating System: OS X
- Grails Version: 3.1.7+ Spring Framework 4.2.6.RELEASE +
- JDK Version: 8u91
- Container Version (If Applicable): Tomcat WAR
It has been confirmed that if using latest grails 3.1.10 and forcing spring framework down to 4.2.5 the view hang stops.
Workaround
Adjust build.gradle file:
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if(details.requested.group == 'org.springframework' && details.requested.name != 'springloaded' ) {
details.useVersion("4.2.5.RELEASE")
}
}
}
Starting with grails 3.1.7 production view rendering periodically hangs for long periods of time (60ms views turn into 60second loads), This is directly related to the upgrade to spring framework 4.2.6 from 4.2.5.
Steps to Reproduce
Expected Behaviour
View (GSP) rendering should not pause or hang like it does since moving from spring framework 4.2.5 to 4.2.6 and 4.2.7
Actual Behaviour
Pages periodically hang for long periods of times making site appear slow and non responsive.
Environment Information
It has been confirmed that if using latest grails 3.1.10 and forcing spring framework down to 4.2.5 the view hang stops.
Workaround
Adjust build.gradle file: