How to free up memory?

前端 未结 6 786
鱼传尺愫
鱼传尺愫 2021-02-12 22:17

We have been facing Out of Memory errors in our App server for sometime. We see the used heap size increasing gradually until finally it reaches the available heap in size. This

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-12 22:33

    Triggering the garbage collection manually doesn't solve your problem - it won't free resources that are still in use.

    You should use a profiling tool (like jProfiler) to find your leaks. You problably use code that stores references in lists or maps that are not released during runtime - propably static references.

提交回复
热议问题