国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

Throughput and pause time in GC

lunaticf / 2887人閱讀

In JVM, "stop the world" is such an amazing word, but tons of works and researches in this area to reduce it effect when doing Garbage Collection (GC).

Recently, in JVM study, several GC collectors have been designed to achieve a better performance of our java application. And there are two ways to claim whether it"s a good or excellent GC collector.

Have a good throughput.

Have a short pause time.

Terminology

Throughput: means the percentage that the time of application threads running in the time of total threads running (which including the time application threads consuming and GC threads consuming).

Pause time: means the time that all application threads are paused due to GC threads running.

Relationship

In ideal world, we want GC collector to achieve a high throughput and short pause time, but throughput and pause time is like the two sides of the coin. We can"t achieve the best throughput and the shortest pause time at the same time.

In simple words, GC is running in a way that they need to run when reach to the safe point, when that GC need make sure that application threads would not change the status of all objects during the time GC threads are marking and cleaning the garbage objects. But each of the GC has additional overhead, for example, the content switch, consuming in cache, and security overhead in JVM lock mechanism. These are the additional overhead to run a GC every time.

If we want to have high throughput in our JVM performance, we need try to avoid these overhead during GC. In this case, less frequent GC is the solution to improve the throughput. Since we deal more objects at time to reduce the percentage spending on these additional overhead.

However, due to the much large objects need to scan, the time to implement a GC will increase. It would increase the time of each GC, which means pause time is increased.

Therefore, throughput and pause time is contradiction in GC world. We can"t hold them together, a tradeoff between them is needed in different scenario.

文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/65284.html

相關(guān)文章

  • JAVA SE 6 GC調(diào)優(yōu)筆記

    摘要:要加左右,因?yàn)槲粰C(jī)器上的對象更大要加左右,因?yàn)槲粰C(jī)器上的對象更大對于服務(wù)器程序的原則是保證越多內(nèi)存越好將和設(shè)置成一樣大,關(guān)掉自動(dòng)調(diào)整大小的機(jī)制。對于服務(wù)器程序的原則是決定你能夠給的最大內(nèi)存,然后根據(jù)的大小來找到最好的設(shè)置。 Generations Young Generation 組成:eden + 2 survivor spaces Young generation的gc稱作min...

    cartoon 評論0 收藏0
  • JVM GC 之「AdaptiveSizePolicy」實(shí)戰(zhàn)

    摘要:如果開啟,則每次后會(huì)重新計(jì)算和區(qū)的大小,計(jì)算依據(jù)是過程中統(tǒng)計(jì)的時(shí)間吞吐量內(nèi)存占用量。應(yīng)用達(dá)到預(yù)期的吞吐量,即應(yīng)用正常運(yùn)行時(shí)間正常運(yùn)行時(shí)間耗時(shí)。理論上,增大內(nèi)存,可以降低的頻率,以此達(dá)到預(yù)期吞吐量。 轉(zhuǎn)載請注明原文鏈接:https://www.jianshu.com/p/741... 一、AdaptiveSizePolicy簡介 AdaptiveSizePolicy(自適應(yīng)大小策略) ...

    CoffeX 評論0 收藏0
  • TRINI: an adaptive load balancing strategy

    摘要:這將預(yù)測出當(dāng)達(dá)到多少時(shí),將發(fā)生下一次算法把這個(gè)閾值傳給另一個(gè)線性回歸模型,這個(gè)模型將推測內(nèi)存的時(shí)間序列并預(yù)測新的一個(gè)發(fā)生的時(shí)間將四種基本算法改為對應(yīng)的感知性算法如果預(yù)選取的節(jié)點(diǎn)在很短的時(shí)間內(nèi)要發(fā)生,則跳過該節(jié)點(diǎn),評估其他節(jié)點(diǎn)。 TRINI: an adaptive load balancing strategy based on garbage collection for clust...

    wudengzan 評論0 收藏0
  • java9 gc log參數(shù)遷移

    摘要:序本文主要研究一下參數(shù)的遷移。比如實(shí)例為,為,文件數(shù)為,每個(gè)文件,文件名為,為和輸出實(shí)例遷移舊版相關(guān)參數(shù)遷移舊版運(yùn)行時(shí)參數(shù)遷移小結(jié)把的配置統(tǒng)一到了中,可以按照官方給出的新舊參數(shù)映射表進(jìn)行遷移。 序 本文主要研究一下java9 gc log參數(shù)的遷移。 統(tǒng)一JVM及GC的Logging java9引進(jìn)了一個(gè)統(tǒng)一的日志框架,對gc log的輸出進(jìn)行了統(tǒng)一的配置。 相關(guān)JEP(JDK Enh...

    Kahn 評論0 收藏0

發(fā)表評論

0條評論

最新活動(dòng)
閱讀需要支付1元查看
<