吞吐量的定义疑问
来源:7-3 垃圾收集器-1

xbox1994丶
2018-07-22
应该是【应用程序线程用时占程序总用时的比例】,而不是【花在垃圾收集时间和花在应用时间的占比】吧?即使老师想表达的意思是前者,但是XX和XX的占比还是难以理解。
写回答
1回答
-
(1)【应用程序线程用时占程序总用时的比例】这个是对的
(2)直接看官网的文档吧:
The throughput goal is measured in terms of the time spent collecting garbage and the time spent outside of garbage collection (referred to as application time). The goal is specified by the command-line option -XX:GCTimeRatio=<nnn>. The ratio of garbage collection time to application time is 1 / (1 + <nnn>). For example, -XX:GCTimeRatio=19 sets a goal of 1/20th or 5% of the total time for garbage collection.
有不明白的一定要去看官网,我已经把官网的地址给大家都列出来了,老师有可能是口误,有可能是表达不清楚,官网才是最靠谱的
012018-07-23