Skip to content

View Rendering hangs under load in grails 3.1.7+ due to spring framework 4.2.6 upgrade #10102

@davydotcom

Description

@davydotcom

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

  1. Run Grails 3.1.7+
  2. Subject application war (tomcat) to load
  3. 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")
        }
  }        
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions