axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevan Miller (JIRA)" <>
Subject [jira] Closed: (AXIS-2278) Memory leak cause by JavaUtils.enumMap
Date Sat, 02 Feb 2008 16:24:08 GMT


Kevan Miller closed AXIS-2278.

> Memory leak cause by JavaUtils.enumMap
> --------------------------------------
>                 Key: AXIS-2278
>                 URL:
>             Project: Axis
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Sun JDK 1.4.2/WinXP
>            Reporter: Kevan Miller
>         Attachments: enumMapPatch.txt
> I'm chasing down some Geronimo memory leaks when deploying/undeploying the DayTrader
sample application. 
> One memory leak I see is caused by o.a.a.utils.JavaUtils.enumMap. JavaUtils is loaded
by a parent ClassLoader but is has strong references to classes (the keys of enumMap) which
were loaded by child ClassLoaders. This prevents the ClassLoader, and the classes it has loaded,
from being GC'ed. This means we'll eventually run out of PermGen memory...
> I converted enumMap to be a WeakHashMap and I now see the ClassLoaders being GC'ed. I
didn't download using cvs. So, I don't have a patch. I'm happy to generate one, if you'd like...

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message