How to find leaked file descriptors in Java application using Byteman
Issue
A Java application is not calling FileInputStream.close() correctly, and leaves the files open until the garbage collector finalizes them. Is there any way to find what files are being leaked?
Environment
- Java
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.