CSP-12069 - Confluence 2.5.6 2.5.7 Performance Very Slow. Seeing lots of LazyInitializationExceptions in atlassian-confluence.log

Product: Confluence

Environment

Operating System  
Affect Version/s 2.5.7
JVM  
Database SQL Server
Application Server Standalone

Error Message

Cause:
net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:209)

Stack Trace: [hide]

net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:209)
at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
at net.sf.hibernate.collection.Set.contains(Set.java:122)
at com.atlassian.user.impl.hibernate.HibernateGroupManager.hasExternalMembership(HibernateGroupManager.java:461)
at com.atlassian.user.impl.hibernate.HibernateGroupManager.hasMembership(HibernateGroupManager.java:437)
at com.atlassian.user.impl.cache.CachingGroupManager.hasMembership(CachingGroupManager.java:149)
at com.atlassian.user.impl.delegation.DelegatingGroupManagerTemplate.hasMembership(DelegatingGroupManagerTemplate.java:189)

Symptom

Diagnostics/Test

Root Cause

Solution

Grab patch from http://jira.atlassian.com/browse/CONF-9434

The attached atlassian-user JAR includes a fix for this issue in Confluence 2.5.6 and 2.5.7. To install it, please do the following:

  • shut down Confluence
  • put the attached JAR, 'atlassian-user-confluence-2.5.x-1.9.jar', into confluence/WEB-INF/lib/
  • remove the old atlassian-user JAR from confluence/WEB-INF/lib/ (it should be called 'atlassian-user-1.5-stable-compatible-1.jar')
  • start up Confluence again.

Labels