简体   繁体   中英

Java heap space memory leak

I'am solving JVM memory leak,this is what i know so far:

  • leak happens in heap space.
  • after GC oldGeneration space is not reclaimed, or reclaimed very little. 在此处输入图片说明

As you can see old generation space fills you very quickly.

Does anyone knows how which objects allocates memory? Or have some hints how to solve it?

You can try to create a HeapDump (eg via JVisualVM) to check which objects are still referenced. Via Eclipse MAT you can analyze this dump. Only objects which are not referenced any more are automatically removed by the GC.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM