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
Application-level fix seems to resolve the issue. Commented out the offending code rather than removing it to serve as a warning.
Testing with component-showcase (fetching only the initial page, not testing using a full browser) shows no redeployment memory leak.
So, it seems that this leak was specific to auctionMonitor.