Guidelines for Selecting a GC

  • Application์˜ ์„ฑ๋Šฅ์ด ๊ฐ€์žฅ ์ค‘์š”ํ•˜๊ณ , ์ผ์‹œ ์ •์ง€ ์‹œ๊ฐ„์ด 1์ดˆ ์ด์ƒ์ด์–ด๋„ ์ƒ๊ด€์—†๋Š” ๊ฒฝ์šฐ

    • VM์ด ์•Œ์•„์„œ collector๋ฅผ ์„ ํƒํ•˜๊ฒŒ ๋†”๋‘”๋‹ค

    • VM์ด ์•Œ์•„์„œ ์ž˜ ์„ ํƒํ•˜๊ฒ ์ง€๋งŒ ์ˆ˜๋™์œผ๋กœ ์„ ํƒํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด XX:+UseParallelGC option์„ ์ผ ๋‹ค

  • ์‘๋‹ต ์‹œ๊ฐ„์ด ์ „์ฒด ์ฒ˜๋ฆฌ๋Ÿ‰๋ณด๋‹ค ์ค‘์š”ํ•˜๊ณ , ์ผ์‹œ ์ •์ง€ ์‹œ๊ฐ„์ด 1 sec ์ดํ•˜์—ฌ์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ

    • Concurrent Collector๋ฅผ ์‚ฌ์šฉํ•ด ๋ณธ๋‹ค

      • XX:+UseConcMarkSweepGC ์˜ต์…˜์ด๋‚˜ XX:+UseG1GC ์˜ต์…˜์„ ์ผ ๋‹ค

  • ๊ทธ๋ž˜๋„ ์„ฑ๋Šฅ์ด ๋ถ€์กฑํ•˜๋‹ค๋ฉด

    • heap ์‚ฌ์ด์ฆˆ์™€ generation ์‚ฌ์ด์ฆˆ๋ฅผ ์กฐ์ ˆํ•ด ๋ณผ ๊ฒƒ

Last updated