notes/pl/java/tools/quality/memory/eclipse-mat.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

28 строки
665 B
Plaintext

shallow
size of the obj itself with headers/fields, but without fields' values
retained
https://plumbr.eu/blog/memory-leaks/solving-outofmemoryerror-memory-profilers
mat_dump_analyze.bat:
@echo off
setlocal
REM Usage: ParseHeapDump.bat <path/to/dump.hprof> [report]*
REM
REM The leak report has the id org.eclipse.mat.api:suspects
REM
:: org.eclipse.mat.api:suspects
:: org.eclipse.mat.api:top_components
%~dp0..\java\jtools\mat\MemoryAnalyzer.exe -consoleLog -application org.eclipse.mat.api.parse -keep_unreachable_objects %*
:: org.eclipse.mat.api:suspects org.eclipse.mat.api:top_components
::
endlocal
2020
https://habr.com/ru/post/519830/