How to free up memory?

前端 未结 6 891
鱼传尺愫
鱼传尺愫 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:50

    If you run under the Sun 6 JVM strongly consider to use the jvisualvm program in the JDK to get an inital overview of what actually goes on inside the program. The snapshot comparison is really good to help you get further in which objects sneak in.

    If Sun 6 JVM is not an option, then investigate which profiling tools you have. Trials can get you really far.

    It can be something as simple as gigantic character arrays underlying a substring you are collecting in a list, for e.g. housekeeping.

提交回复
热议问题