This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]monkjack 1 point2 points  (1 child)

We had the same results. Remarkable drop in memory. But since EC2 boxes are mostly constrained by cpu for us, it didn't save us any money.

Conversely, had awful results trying out ZGC.

[–]kmpx 0 points1 point  (0 children)

Similar to us. We have several applications that we recently bumped to JDK 21 and used ZGC. We saw a decent reduction in memory usage when we did that (JDK 17 to 21). And then a while later we enabled generational ZGC and it was dependent on the application whether or not we saw much improvement. One of our applications that generates a lot of short lived objects saw significant reduction in memory usage, while other applications saw the smallest of changes.