Possible Classloader leak?

44 views
Skip to first unread message

Colin McQueen

unread,
Jun 4, 2014, 10:30:18 AM6/4/14
to spring-dat...@googlegroups.com

The application I am working on seems to be having some classloader leak issues. At some point our application server dies with an OutOfMemory: Perm Gen error. In the attached image it looks like cglib is being used and the CassandraSessionFactoryBean was mentioned. Is this a leak with regarding something in spring-data-cassandra?


Classloader leak.PNG

Colin McQueen

unread,
Jun 4, 2014, 10:38:49 AM6/4/14
to spring-dat...@googlegroups.com
Also I am using JavaConfig instead of XML for the Cassandra setup if that helps.

Matthew Adams

unread,
Jun 5, 2014, 2:37:52 PM6/5/14
to Colin McQueen, spring-dat...@googlegroups.com
​I'm pretty sure cglib is only being used at context initialization time, and only to bootstrap Cassandra, a one-time deal.  Can it be something else?​


--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/67cd1002-9efa-4518-b6ac-f15c9bc2f41f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Matthew Adams

Colin McQueen

unread,
Jun 5, 2014, 2:58:23 PM6/5/14
to spring-dat...@googlegroups.com, colin....@shiftenergy.com
I'm not sure, I've been struggling to fix the Perm gen problem. When looking at the heap that was one of the leak suspects in Eclipse Memory Analyzer. We use Hibernate and obviously Spring, but the tool only found 2 leak suspects. The first leak was the one I have in the image and the second one was a Glassfish Apache Felix leak.


On Thursday, June 5, 2014 3:37:52 PM UTC-3, Matthew Adams wrote:
​I'm pretty sure cglib is only being used at context initialization time, and only to bootstrap Cassandra, a one-time deal.  Can it be something else?​
On Wed, Jun 4, 2014 at 9:38 AM, Colin McQueen <colin....@shiftenergy.com> wrote:
Also I am using JavaConfig instead of XML for the Cassandra setup if that helps.


On Wednesday, June 4, 2014 11:30:18 AM UTC-3, Colin McQueen wrote:

The application I am working on seems to be having some classloader leak issues. At some point our application server dies with an OutOfMemory: Perm Gen error. In the attached image it looks like cglib is being used and the CassandraSessionFactoryBean was mentioned. Is this a leak with regarding something in spring-data-cassandra?


--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.

To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.



--
Matthew Adams
Reply all
Reply to author
Forward
0 new messages