How can I figure out what is holding on to unfreed objects?

前端 未结 11 1011
忘了有多久
忘了有多久 2020-12-13 16:11

One of our programs is sometimes getting an OutOfMemory error on one user\'s machine, but of course not when I\'m testing it. I just ran it with JProfiler (on

11条回答
  •  半阙折子戏
    2020-12-13 16:38

    I've used the Yourkit Java profiler(http://www.yourkit.com) for performance optimizations on java 1.5. It has a section on how to work on memory leaks. I find it useful.

    http://www.yourkit.com/docs/75/help/performance_problems/memory_leaks/index.jsp

    You can get a 15 day eval : http://www.yourkit.com/download/yjp-7.5.7.exe

    BR,
    ~A

提交回复
热议问题