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]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to