How to find leaked file descriptors in Java application using Byteman

Solution Unverified - Updated -


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?


  • Java

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content