Logging GC usage is not intrusive, and so it is reasonable to enable GC logging in production by default in the event you ever need to analyze memory problems or tune the garbage collector.
记录GC使用情况并不具有干扰性,因此如果需要分析内存问题或者调优垃圾收集器,在生产环境中默认启用gc日志是值得的。
You must enable verbose GC logging for your application if you want to produce logs for analysis.
如果想生成用于分析的日志,必须对应用程序启用详细的gc日志记录。
There are several reasons why you might want to enable verbose GC and inspect the logs.
有多种原因使您想要支持verboseGC和检查日志。
You can enable verbose GC using one of two command-line options: either -verbose:gc or -Xverbosegclog:filename.
可以使用以下两个命令行选项之一来支持verboseGC:-verbose:gc或 -Xverbosegclog:文件名 。
You can enable verbose GC using one of two command-line options: either -verbose:gc or -Xverbosegclog:filename.
可以使用以下两个命令行选项之一来支持verboseGC:-verbose:gc或 -Xverbosegclog:文件名 。
应用推荐