[jboss-user] [Beginner's Corner] - Re: java.lang.OutOfMemoryError

jan piel do-not-reply at jboss.com
Wed Feb 16 02:47:13 EST 2011


jan piel [http://community.jboss.org/people/jpiel] created the discussion

"Re: java.lang.OutOfMemoryError"

To view the discussion, visit: http://community.jboss.org/message/587644#587644

--------------------------------------------------------------
I face the same problem at work and I use this tool:

 http://www.eclipse.org/mat/ http://www.eclipse.org/mat/


It gives you a good overview of the heap of your server.

You can also user the jconsole in the JDK to get an overview of the parts of the heap.

You also have to consider some issues, if you use individual portlets liferay:

1. If you use Spring and AnnotationConfigApplicationContext, then you must close the AnnotationConfigApplicationContext.
2. I make the experience, that SLSB are not destroyed. You must mark a methode with @PreDestroy and the call this method to remove the EJB.
3. If you use the EntityManager and Hibernate then clear it sometimes.

But that are only suggestions.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/587644#587644]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110216/c6a903a3/attachment.html 


More information about the jboss-user mailing list