Sometimes, the result of the OutOfMemory error (I assume this is in the PermGen space since I've encountered this error myself) is because of the JavaBeans Introspector's cache not being garbage collected on redeployments. I found this out indirectly looking at
http://www.springframework.org/docs/api/org/springframework/web/util/IntrospectorCleanupListener.html Here's an excerpt from the java.beans.Introspector javadocs: "Because the Introspector caches BeanInfo classes for better performance, take care if you use it in an application that uses multiple class loaders. In general, when you destroy a ClassLoader that has been used to introspect classes, you should use the Introspector.flushCaches or Introspector.flushFromCaches method to flush all of the introspected classes out of the cache" If you don't use Spring, just implement the ServletContextListener and in your contextDestroyed method, be sure to call Introspector.flushCaches, then plug your listener in web.xml >From JBoss' side, you can also try looking at the Wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptionWhenRedeploying Cheers -j yi View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877084#3877084 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877084 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
