We have a memory leak in our Java application as the number of FileOutputStream open - closed difference is increasing with time. In our case heap is pretty stable but since FileOutputStreams are open we are facing memory leak in JVM native memory.
Could you please suggest a way by which we can identify the piece of code in the codebase that may be contributing to this leak.
In JProfiler, you can find the allocation spots of unclosed FileOutputStreams like this: