我一直在支持使用 JSP+SPRING MVC+JPA-HIBERNATE 的 web 应用程序。最近我们在 WAS 服务器中遇到了 heapdump 问题。现在我们需要更改应用程序中的一些代码来防止 heapdump。否则部署团队不会将其移动到实际环境中。我已经在 IBM heapanalyser 中加载了 heampdump 文件(.phd),我在其中给出了泄漏嫌疑人的列表
我在下面的 HeapAnalser 中捕获的图像中保留了相同的数据。hep anlayser 给出了两个泄漏怀疑。
1)97.499.936 bytes (52,48 %) of Java heap is used by 6 instances of
java/util/WeakHashMap$Entry Contains an instance) of the leak suspect:
-com/ibm/ws/wswebcontainer/webapp/WebApp holding 22.950.680 bytes at
0x822ac78
2)Responsible for 22.950.680 bytes (12,35 %) of Java heap
-Contained under array of java/util/WeakHashMap$Entry holding 97.499.936
bytes at 0x145bb10
我不知道我必须如何进一步处理这个问题,我需要修改我们的代码以避免这个问题。为此我需要找到创建上述实例的应用程序的哪些类。请建议我如何继续这个问题。