Is there a portable way to find out how many files a JVM has open from inside the VM?
Asked 2012-10-30T17:29:40.523
8
I am writing tests for some Java file handling code and want to make sure all files are closed properly. I don't want to run 'lsof' as that will open more files and make the test suite non-portable. Anyone know a way to do this?