Finding Java memory leak when not all used heap is reachable from threads

后端 未结 5 916
醉话见心
醉话见心 2021-02-18 15:52

I am looking into a potential memory leak (or at least memory waste) in a largish Java based system. The JVM is running with a maximum heap size of 5 GB and 2-3GB heap usage is

5条回答
  •  暖寄归人
    2021-02-18 16:40

    Maybe you should look for memory leaks in database connector code or maybe ORM. Because if you are using raw connection library when you don't close cursor you can get potentially memory leak. Also my second thought is also related to database connector. Because some of them (may be not yours) uses native code beneath and this is source of this leak. Due to heavy concurrent usage that makes sens for me. You can check that if you want.

提交回复
热议问题