File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes OutOfMemory issue while using CGLIB in spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "OutOfMemory issue while using CGLIB in spring" Watch "OutOfMemory issue while using CGLIB in spring" New topic

OutOfMemory issue while using CGLIB in spring

Haresh Sawant

Joined: Mar 08, 2012
Posts: 4
Recently I faced a problem,
I've implemented annotation driven transaction management in Spring & used CGLIB.jar as it is required for Proxy creation.
Transaction handling code was a part of SOA service , service was running out of memory (PermGen) after handling ~ 20 requests.
After searching on various websites I found that there is a memory leak issue with CGLIB because it creates hard link between proxy and class loader.
I am still unclear about root cause of this issue, can somebody please explain this in detail...
Bill Gorder

Joined: Mar 07, 2010
Posts: 1632

What does your POM file look like? I have never had any issues running with this on JBOSS, TOMCAT or Websphere in some pretty large enterprise applications. I wonder what versions of spring and cglib you are pulling in.

[How To Ask Questions][Read before you PM me]
Don't get me started about those stupid light bulbs.
subject: OutOfMemory issue while using CGLIB in spring
Similar Threads
Spring and declarative transactions
Correct JDBC Driver for Sybase 12.x in Websphere 6.1
spring transaction management only
Doubt on Bean Scopes
Spring CGLIB perm gen heap memory issue