GeeCON Prague 2014*
The moose likes Java in General and the fly likes Java Profiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Profiler" Watch "Java Profiler" New topic
Author

Java Profiler

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
Hi,

do you know of a good Java profiler for ascertaining where a memory leak may be occuring within an application,

currently getting a "java.lang.OutOfMemoryError: PermGen space" exception being thrown

"
2010-11-27 11:17:19,503 ERROR [backgroundTaskScheduler_Worker-3] [org.quartz.core.JobRunShell] - Job DEFAULT.mediaDeleteRetryJob threw an unhandled Exception:
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.hibernate.type.ListType.instantiate(ListType.java:27)
at org.hibernate.type.CollectionType.getCollection(CollectionType.java:606)
at org.hibernate.type.CollectionType.resolveKey(CollectionType.java:408)
at org.hibernate.type.CollectionType.resolve(CollectionType.java:402)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:120)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
at org.hibernate.loader.Loader.doQuery(Loader.java:729)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
"

Cheers,

Niall
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
The http://www.coderanch.com/how-to/java/TomcatFaq has an entry about the PermGen space issue.
 
GeeCON Prague 2014
 
subject: Java Profiler