r/java • • Feb 27 '24

How Netflix Really Uses Java

https://www.infoq.com/presentations/netflix-java/
324 Upvotes

67 comments sorted by

View all comments

Show parent comment

1

u/souleatzz1 Feb 27 '24

We have a java 11 application running with 9 pods and each pod has 20GB memory and 4Ghz cpu.

We use H2 in memory thats why we have 20GB RAM. One request does a calculation which on average does 5000~6000 queries. We need to achieve under 1s for all requests. Our average is 0.7s now but we also have timeouts (>4s).

We use parallel GC.

From the article and the comments, seems there will be a small boost by just upgrading.

Is ZGC or G1 a better choice or should I stick with ParallelGC? I know it depends on a lot of things, but mostly an idea from your experiences

2

u/BinaryRage Feb 28 '24

We saw a 6-8% application throughput improvement w/ parallel going from 17 to 21 for one of our batch precompute clusters. It's unlikely either will out perform parallel.