FISH-5723 Fixes WebappClassloader memory-leak issue by removing JAXRSResources classes from cache on shutdown event#5102
Conversation
… Resources classes from cache on shutdown event Signed-off-by: Gaurav Gupta <gaurav.gupta@payara.fish>
|
@jGauravGupta Thank you for the PR. I have two questions regarding the PR (perhaps I have a wrong understanding of
|
|
Hello @jansupol , This issue is reproducible for both the Payara and Glassfish servers if the web application contains JAXRS resources. Yes, the cache is not garbage collected by default on application un-deployment which holds the JAXRS resource classes reference of all deployed applications hence WebappClassloader is not garbage collected. @BeforeShutdown callback in the extension is invoked on the un-deployment of each application and removes the specific JAX-RS resource classes which belong to currently undeploying application classloader instead of 'Cache.clear()' (which will remove the cache for existing application). |
|
@jGauravGupta Thanks! |
…Resources classes from cache on shutdown event (eclipse-ee4j#5102) * FISH-5723 Fixes WebappClassloader memory-leak issue by removing JAXRS Resources classes from cache on shutdown event Signed-off-by: Gaurav Gupta <gaurav.gupta@payara.fish>
…Resources classes from cache on shutdown event (#5102) * FISH-5723 Fixes WebappClassloader memory-leak issue by removing JAXRS Resources classes from cache on shutdown event Signed-off-by: Gaurav Gupta <gaurav.gupta@payara.fish>
Signed-off-by: Gaurav Gupta gaurav.gupta@payara.fish