Dab tsi yog heap dump hauv kev sim ua haujlwm?
Dab tsi yog heap dump hauv kev sim ua haujlwm?

Video: Dab tsi yog heap dump hauv kev sim ua haujlwm?

Video: Dab tsi yog heap dump hauv kev sim ua haujlwm?
Video: Yog ntuj tsis pab ntshe kuv tuag lawm 8/6/2018 2024, Kaum ib hlis
Anonim

Heap pob tseg muaj: Snapshot ntawm JVM Heap lub sijhawm ntawd. Qhia cov khoom nyob hauv pob nrog rau kev siv ntawm cov khoom. Ib qho tseem ceeb hauv kev txheeb xyuas teeb meem nco hauv daim ntawv thov. Siv los txiav txim txog kev siv lub cim xeeb.

Hauv qhov no, dab tsi yog lub pob pov tseg?

A pob tseg yog ib qho snapshot ntawm lub cim xeeb ntawm Java ™ txheej txheem. Lub snapshot muaj cov ntaub ntawv hais txog Java cov khoom thiab cov chav kawm hauv pob thaum lub sij hawm lub snapshot yog triggered. Class loader, npe, super class, thiab static teb. Cov hauv paus hniav khib nyiab. Cov khoom tau txhais kom ncav cuag tau los ntawm JVM.

Ib yam li ntawd, heap dump muaj dab tsi? Heap Dump yog yooj yim snapshot ntawm koj lub cim xeeb. Nws muaj txhua yam khoom uas nyob hauv lub cim xeeb, qhov tseem ceeb khaws cia rau hauv cov khoom ntawd, inbound & outbound references ntawm cov khoom.

Tib neeg kuj nug tias, kuv yuav saib lub pob tseg li cas?

Yog koj muaj ib tug pob tseg cov ntaub ntawv khaws tseg rau hauv koj lub zos, koj tuaj yeem qhib cov ntaub ntawv hauv Java VisualVM los ntawm xaiv Cov Ntaub Ntawv> Load los ntawm cov ntawv qhia zaub mov tseem ceeb. Java VisualVM tuaj yeem qhib pob tseg pob cawm hauv. hprof file format. Thaum koj qhib tau txais kev cawmdim pob tseg , cov pob tseg opens raws li ib tug tab nyob rau hauv lub ntsiab qhov rais.

Dab tsi yog qhov txawv ntawm heap dump thiab thread dump?

A xov dump yog a pov tseg ntawm cov pawg ntawm txhua tus nyob xov . A pob tseg yog a pov tseg ntawm lub xeev ntawm Java pob nco. Yog li muaj txiaj ntsig zoo rau kev txheeb xyuas qhov kev siv lub cim xeeb ib qho app ua rau qee lub sijhawm nyob rau hauv thiaj li ua ke hauv kev kuaj xyuas qee qhov teeb meem nco, thiab yog ua tiav ntawm lub sijhawm sib koom ua ke hauv kev kuaj xyuas lub cim xeeb.

Pom zoo: