Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Classloader leak in JavaSECMPInitializer

Just for future reference:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253701


Tom Ware wrote:
> 
> Hi Syvalta,
> 
>    It looks like you might be right.  Please feel free to file an issue in
> Bugzilla.
> 
> -Tom
> 
> Syvalta wrote:
>> Hi,
>> 
>> it seems to me that there's classloader leak in
>> org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer
>> class.
>> Description below:
>> 
>> - EclipseLink is available in and loaded by app server classloader (i.e.
>> classloader which is longer lived than the webapp)
>> - Web app with resource local persistence unit is deployed and undeployed
>> - After undeploy JavaSECMPInitializer has reference to web app's
>> ContextClassLoader, preventing proper undeployment of the web app (i.e.
>> permgen space of the web app will not be reclaimed).
>> 
>> The culprit is this inherited from JPAInitializer:
>> protected ClassLoader sessionClassLoader = null;
>> which is set up at initialize() and never cleared.
>> 
>> I'll glad to submit a bugzilla issue, but just wanted to double-check
>> first.
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Classloader-leak-in-JavaSECMPInitializer-tp20304797p20323456.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top