My Authors
Read all threads
It's amazing to see that ZGC (JEP 377) and Shenandoah (JEP 379) are going to become non-experimental in 15! However, we've been successfully using ZGC for our gateway components since when JDK 13 was released. 1/n
After running an experiment, and switching the fleet of our gateway components to ZGC, we saw the GC pauses went down from 30-60ms down to less than 2ms. Here's some data from one of the instances I looked up right now. 2/n Image
Not only this reduced latency for the requests affected by GC, but also eliminated some unfortunate side-effects, e.g. jumps in the request queue size which would cause spinning up more threads than necessary 3/n Image
We also tried Shenandoah, and even though the GC pauses were slightly larger than ZGC for our service, only by a few ms, its memory overhead was smaller. So, will definitely consider going with Shenandoah with some of our more memory-constraint services. 4/n
The new GCs didn't work out for some other services with heavy-allocation background jobs. But some of our services are experimenting with new GCs too and seeing similar improvements. GC pauses down from 100-200 ms in the worst case to a few ms only. 5/n
The results may vary depending on your workload but give ZGC and Shenandoah a try. Ideally, today, right now, just go for it! 🚀6/n
Oh, and a shameless plug at the end. If this thread looked interesting to you, you might want to join my team at Canva in Sydney⛰️🌴🏖️ - your first MTB experience (sorry, not good at surfing) is on me reactivejobs.com, 7/n
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Sergey Tselovalnikov

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!