Strange PermGen out of memory error - Shib IdP V3

Stefan Santesson stefan at aaa-sec.com
Sat Jul 11 20:30:54 EDT 2015


Hi,

I wander if anyone recognise this problem.

I run a Shib V3 IdP on a Tomcat 7. After experiencing this problem I
really beefed up the MaxPermSize to 2048m
No difference.

I¹m not sure that part of the problem might be that I also significantly
increased the number of allowed connections to the MySQL database to 500
to be able to handle stress tests.
The strange thing is that the IdP works fine also after these errors have
been produced.

>From the tomcat log:

Exception in thread
"C3P0PooledConnectionPoolManager[identityToken->z8kfsx9azbppybqt8ah6|593385
b6]-HelperThread-#2" java.lang.OutOfMemoryError: PermGen space
Jul 12, 2015 2:17:14 AM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.  The
eventual following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
va:1612)
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
va:1571)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResource
Pool.java:1040)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourceP
ool.java:1507)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourceP
ool.java:1477)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool
.java:1565)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool
.java:44)
	at 
com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePoo
l.java:2089)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)


Exception in thread
"C3P0PooledConnectionPoolManager[identityToken->z8kfsx9azeccos1364km1|23025
0b]-AdminTaskTimer" java.lang.NoClassDefFoundError:
com/mchange/v2/resourcepool/BasicResourcePool$1DestroyResourceTask
	at 
com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResource
Pool.java:1040)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourceP
ool.java:1507)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourceP
ool.java:1477)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool
.java:1565)
	at 
com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool
.java:44)
	at 
com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePoo
l.java:2089)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException:
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
va:1720)
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
va:1571)
	... 8 more





More information about the users mailing list