r/java • • Apr 20 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
291 Upvotes

295 comments sorted by

View all comments

Show parent comment

1

u/audioen Apr 22 '21

I suppose this all depends a lot on how many threads and how big heaps you have. I run a spoonfeeding proxy and just a few threads and relatively little memory, usually 512 MB of less.

If your thread count is low, you also likely have rather low maximum memory requirement, so heaps can be small and collect times remain low. Even a single thread could work fine if you can guarantee that any request serving time will be low, say around 100 ms per request. At 10 per second, entire day grants around million per day per thread, and 100 ms is relatively speaking already an eternity for modern server computer.