Java verbose:gc How to read the output?

非 Y 不嫁゛ 提交于 2019-12-30 06:19:09

问题


I have a Java application which has some performance issues and someone recommend me to run it in verbose:gc mode. This has been done, but I don't know how to interpret the logging. Is it possible to explain me what it all means or to advise me as what I can do to increase performance?

Output log can be found on : http://pastebin.com/uDNPEGcd

Thanks in advance, Kind regards, Maarten


回答1:


verbose:gc prints right after each gc collection and prints details about each generation memory details. Here is blog on how to read verbose gc

If you are trying to look for memory leak, verbose:gc may not be enough. Use some visualization tools like jhat (or) visualvm etc.,

 4416K->512K(4928K), 0.0081170 secs

Before GC used memory is 4416K
After GC used memory is 512K
Total allocated memory is 4928K


来源:https://stackoverflow.com/questions/11889831/java-verbosegc-how-to-read-the-output

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!