-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Thread Blocked on Class Loading in Hibernate
PostPosted: Wed Mar 21, 2012 9:35 am 
Newbie

Joined: Wed Mar 21, 2012 9:28 am
Posts: 2
Hi,
We are seeing class loading blocks coming from Hibernate classes, thread dump below -
Please can you advise in what cases it could happen? Any pointers? Thanks

3XMTHREADINFO1 (native thread ID:0x32B0061, native priority:0x3, native policy:UNKNOWN)
4XESTACKTRACE at java/lang/ClassLoader.loadClass(ClassLoader.java:609(Compiled Code))
4XESTACKTRACE at org/hibernate/util/ReflectHelper.classForName(ReflectHelper.java:118(Compiled Code))
4XESTACKTRACE at org/hibernate/impl/SessionFactoryImpl.getImportedClassName(SessionFactoryImpl.java:761(Compiled Code))
4XESTACKTRACE at org/hibernate/hql/QuerySplitter.getImportedClass(QuerySplitter.java:155(Compiled Code))
4XESTACKTRACE at org/hibernate/hql/QuerySplitter.concreteQueries(QuerySplitter.java:121(Compiled Code))
4XESTACKTRACE at org/hibernate/engine/query/HQLQueryPlan.<init>(HQLQueryPlan.java:92(Compiled Code))
4XESTACKTRACE at org/hibernate/engine/query/HQLQueryPlan.<init>(HQLQueryPlan.java:80(Compiled Code))
4XESTACKTRACE at org/hibernate/engine/query/QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:87(Compiled Code))
4XESTACKTRACE at org/hibernate/impl/AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156(Compiled Code))
4XESTACKTRACE at org/hibernate/impl/AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135(Compiled Code))
4XESTACKTRACE at org/hibernate/impl/SessionImpl.createQuery(SessionImpl.java:1650(Compiled Code))
4XESTACKTRACE at sun/reflect/GeneratedMethodAccessor263.invoke(Bytecode PC:42(Compiled Code))
4XESTACKTRACE at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37(Compiled Code))
4XESTACKTRACE at java/lang/reflect/Method.invoke(Method.java:578(Compiled Code))
4XESTACKTRACE at org/hibernate/context/ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342(Compiled Code))
4XESTACKTRACE at $Proxy20.createQuery(Bytecode PC:18(Compiled Code))


Top
 Profile  
 
 Post subject: Re: Thread Blocked on Class Loading in Hibernate
PostPosted: Thu Mar 22, 2012 2:57 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
I guess your java virtual machine need more memory either in heap or in perm-gen.
Try to increase -Xmx and -XX:MaxPermSize vm-paramaeter values for example:

-Xmx512m
-XX:MaxPermSize=256m


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.