Too many open file handles

前端 未结 12 1472
误落风尘
误落风尘 2020-12-16 03:00

I\'m working on a huge legacy Java application, with a lot of handwritten stuff, which nowadays you\'d let a framework handle.

The problem I\'m facing right now is

12条回答
  •  -上瘾入骨i
    2020-12-16 03:29

    One good thing I've found for tracking down unclosed file handles is FindBugs:

    http://findbugs.sourceforge.net/

    It checks many things, but one of the most useful is resource open/close operations. It's a static analysis program that runs on your source code and it's also available as an eclipse plugin.

提交回复
热议问题