日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 編程語(yǔ)言 正文

如果服務(wù)器出現(xiàn)內(nèi)存泄漏,堆內(nèi)存緩慢上漲,一段時(shí)間后觸發(fā)了fullGc,如何快速定位?

作者:小哥騎單車 更新時(shí)間: 2022-11-29 編程語(yǔ)言

1、最近有沒上過(guò)線,最近歷史記錄,代碼改動(dòng)有沒可能造成泄露

2、如果需要快速定位:?

? ? ?jmap -histo 18640|head -20?

-histo[:live] ? ? ? ?to print histogram of java object heap; if the "live"
? ? ? ? ? ? ? ? ? ? ? ? ?suboption is specified, only count live objects


3、如果不考慮系統(tǒng)會(huì)被暫停,導(dǎo)致stop the world的情況,可以dump分析?

jmap -dump:format=b,file=/tmp/heap.hprof <PID>

原文鏈接:https://blog.csdn.net/lejustdoit/article/details/120862129

欄目分類
最近更新