Details
Description
When certain ICEfaces applications are repeatedly redeployed, the following Error will be displayed, requiring an application server restart:
java.lang.OutOfMemoryError: PermGen space
For instance, the following script can monitor this and reproduce the problem:
while true; sleep 5; do curl -o /tmp/auction.html http://localhost:8080/auctionMonitor/; cp samples/auctionMonitor/dist/auctionMonitor.war /tmp/apache-tomcat-5.5.20/webapps/; /usr/local/jdk1.6.0_01/bin/jmap -J-Xmx512m 17824; done
java.lang.OutOfMemoryError: PermGen space
For instance, the following script can monitor this and reproduce the problem:
while true; sleep 5; do curl -o /tmp/auction.html http://localhost:8080/auctionMonitor/; cp samples/auctionMonitor/dist/auctionMonitor.war /tmp/apache-tomcat-5.5.20/webapps/; /usr/local/jdk1.6.0_01/bin/jmap -J-Xmx512m 17824; done
This seems to be a known issue with classloaders not releasing class definitions after redeployment.
http://forum.hibernate.org/viewtopic.php?t=960856&highlight=leaks