Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Suspected WebappClassLoader Leak #6301

Closed
kelvinlukhee opened this issue Jun 8, 2023 · 3 comments · Fixed by #6677
Closed

Bug Report: Suspected WebappClassLoader Leak #6301

kelvinlukhee opened this issue Jun 8, 2023 · 3 comments · Fixed by #6677
Labels
Type: Bug Label issue as a bug defect

Comments

@kelvinlukhee
Copy link

Brief Summary

We are currently using payara version 5.2022.5.

We noticed an increase in memory usage after each redeployment of our web application and thus we spent some time in investigating it. We captured the heap dump of the payara server after redeployment. We found that the instance of WebappClassLoader from the last deployment was not garbage collected, holding most of the resources with it.

We tried to find out which GC root was holding a reference to it and prevented the destruction of the classloader. The screenshot attached below shows our finding. It looks like a cached request in the DefaultWorkerThread's cache is holding a reference to the classloader. However, we have searched online and looked into the codes, and yet failed to find a way to tell it to evict the cache.

image

Expected Outcome

The old WebappClassLoader instance shall be garbage collected to recover the memory held by objects of the last instances

Current Outcome

The old WebappClassLoader instance remains alive and prevented the garbage collection of other objects.

Reproducer

To be provided later

Operating System

Centos 6.5

JDK Version

Oracle JDK 1.8.202

Payara Distribution

Payara Server Web Profile

@kelvinlukhee kelvinlukhee added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Jun 8, 2023
@kalinchan
Copy link
Member

Hi @kelvinlukhee,

It looks like you are running Payara Community 5 which is out of support.

Are able to test this issue on the current release of Community 6?

@kalinchan kalinchan added Status: Pending Waiting on the issue requester to give more details or share a reproducer and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Jun 23, 2023
@github-actions github-actions bot added Status: Abandoned User has not supplied reproducers for bug report, soon to be closed if user doesn’t come back and removed Status: Pending Waiting on the issue requester to give more details or share a reproducer labels Jun 29, 2023
@github-actions
Copy link

Greetings,
It's been more than 5 days since we requested more information or an update from you on the details of this issue. Could you provide an update soon, please?
We're afraid that if we do not receive an update, we'll have to close this issue due to inactivity.

@github-actions github-actions bot removed the Status: Abandoned User has not supplied reproducers for bug report, soon to be closed if user doesn’t come back label Jul 4, 2023
@github-actions
Copy link

github-actions bot commented Jul 4, 2023

Greetings,
It's been more than 5 days since this issue was identified as abandoned.
We have closed this issue due to inactivity, please feel free to re-open it if you have more information to share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Label issue as a bug defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants