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

Memory leak related to ImageIO on servlet reload #4048

Open
litvinovg opened this issue Feb 6, 2025 · 0 comments
Open

Memory leak related to ImageIO on servlet reload #4048

litvinovg opened this issue Feb 6, 2025 · 0 comments

Comments

@litvinovg
Copy link
Member

Describe the bug
I noticed that there is a memory leak in case vivo application is reloaded or redeployed on Tomcat.

To Reproduce
Steps to reproduce the behavior:

  1. Install and configure VIVO
  2. Open Tomcat manager and click reload VIVO application
  3. After reload has finished click "Find leaks" in Diagnostics section below
  4. A message will appear "The following web applications were stopped (reloaded, undeployed), but their
    classes from previous runs are still loaded in memory, thus causing a memory
    leak (use a profiler to confirm): vivo"

Environment (please complete the following information):

  • OS: Linux Rocky 9
  • Browser Firefox 135.0
  • Tomcat version 9.0.97
  • VIVO version 1.15.1-SNAPSHOT
  • Apache Solr

Additional context
Leak will not appear in case com.twelvemonkeys.imageio depenendencies and all image processing code is removed.
https://stackoverflow.com/questions/38356085/how-to-get-an-instance-of-javax-imageio-spi-iioregistry-with-proper-scope/38393284#38393284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants