I've found it to be easiest to use the built-in HTTP server option:
java -javaagent:path/to/file-leak-detector.jar=http=19999 ...
... and then pointing your browser to
http://[the machine's hostname or IP]:19999
You get a report that shows the file name, the thread responsible for opening the file (accompanied by the stack trace of the open call) and the timestamp of when the file was opened. Just lovely.
No comments:
Post a Comment