Add a test to detect Classloader leaks in Derby
-----------------------------------------------
Key: DERBY-5322
URL: https://issues.apache.org/jira/browse/DERBY-5322
Project: Derby
Issue Type: Improvement
Components: Test
Affects Versions: 10.9.0.0
Reporter: Kathey Marsden
It would be good to have a test that detects class loader leaks in Derby. This
problem sometimes shows up indirectly by the requirement for extra Permgen
space with some jvm's running the upgrade test, but moving forward it would be
good to have a specific functional test for this. Perhaps a test could be
added to the lowmem suite that iteratively boots and shutdown's Derby in new
URL Classloaders and ensures we do not run out of memory. In the IBM JVM the
classes are loaded in the heap, so just a low heap should pop any problem. For
the Oracle JVM we could probably make enough iterations that a leak would cause
a Permgen OOM. If this does not work, Kristian mentioned in DERBY-5316 that
perhaps tracing the unloading of classes could be used.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira