-XX:-PrintGC和XX:-PrintGCDetails标志做什么? [英] What do -XX:-PrintGC and XX:-PrintGCDetails flags do?

查看:596
本文介绍了-XX:-PrintGC和XX:-PrintGCDetails标志做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里找到了这些JVM标志。是否有更详细的解释,他们到底做了什么?设置这个标志将JVM产生的所有垃圾收集写入一个日志文件(或标准输出,但不那么有用),这些可以通过工具进行分析,如提到的那些工具此处。使用这些信息,您可以微调垃圾收集配置。


I found the JVM flags here. Is there a more detailed explaination of what exactly they do?

解决方案

Setting this flags writes all the garbage collections made by the JVM to a log file (or stdout, but then it is less useful), and these can be analysed by tools such as the ones mentioned here. Using this information you can fine tune your garbage collection configuration.

这篇关于-XX:-PrintGC和XX:-PrintGCDetails标志做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆