Tracking down a memory leak / garbage-collection issue in Java

后端 未结 7 1148
故里飘歌
故里飘歌 2020-12-02 04:34

This is a problem I have been trying to track down for a couple months now. I have a java app running that processes xml feeds and stores the result in a database. There hav

相关标签:
7条回答
  • 2020-12-02 05:25

    Any JAXB? I find that JAXB is a perm space stuffer.

    Also, I find that visualgc, now shipped with JDK 6, is a great way to see what's going on in memory. It shows the eden, generational, and perm spaces and the transient behavior of the GC beautifully. All you need is the PID of the process. Maybe that will help while you work on JProfile.

    And what about the Spring tracing/logging aspects? Maybe you can write a simple aspect, apply it declaratively, and do a poor man's profiler that way.

    0 讨论(0)
提交回复
热议问题