-
Notifications
You must be signed in to change notification settings - Fork 357
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 in multipart uploads #3259
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Due to this bug, we are forced to move away from using MultiPart. We refactored our APIs to use non-multipart requests. Is there a way to upvote this bug? |
FYI, this bug seems to be fixed thanks to eclipse-ee4j/metro-mimepull#13 that is included in mimepull |
It looks like mimepull was updated to 1.9.13 in #4425 which was released as part of v2.31. However, it still seems that multipart requests with files end up generating delete-on-exit hooks. |
I finally had time to revisit this. In my endpoint definition, I switched from using a I still think this is a work-around and not a proper solution, but I'm posting it in the hopes that it helps someone else. |
Requests with multipart uploads create temp files (MIMExxx.tmp) which are marked for deletion using the JVM hook deleteOnExit. For long-running server processes, this is not appropriate since it leads to a memory leak (tracking of an ever-increasing number of references in a LinkedHashSet in java.io.DeleteOnExitHook).
See related mimepull issue: https://java.net/jira/browse/MIMEPULL-13
Affected Versions
[2.21]
The text was updated successfully, but these errors were encountered: