https://bz.apache.org/bugzilla/show_bug.cgi?id=65710
Mark Thomas <ma...@apache.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEEDINFO |RESOLVED --- Comment #12 from Mark Thomas <ma...@apache.org> --- This is a JVM bug present in Java 8, not a Tomcat bug. In 9.0.53 Tomcat was updated to the latest Commons File Upload code. This happens several times a year. Once of the changes was a switch from using: new FileInputStream(dfos.getFile()); to: Files.newInputStream(dfos.getFile().toPath()); to obtain an input stream for the uploaded file. The new code triggers a JVM bug present in the latest Java 8 where, if the application doesn't explicitly close the input stream, a file descriptor is leaked. You need to raise this issue with your JVM provider. Options for work arounds until your JVM provider can provide you with a fixed JVM include: - ensure the application closes the input stream (the code should be doing this any way) - switch to Java 11 Whether Tomcat opts to try and implement a workaround to this JVM bug is a separate discussion. The project's default position is that workarounds are not provided for bugs in other software. This issue is likely to qualify as one of the few exceptions to that. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org