by ryanobjc · 6y ago · 0 comments
The greatest challenges for Java gc is when heap sizes are big and when data is turned over slower than pure transactional. In other words allocate and retain for a while and free, with a 32gb heap. That’s where gc tuning becomes a dark art.
The bottom line is allocation rapidly and keeping up with that is easy enough. Mix in hundreds of parallel and live app threads, large memory structures that live for minutes or hours, and add a transactional gc turnover.
I think go does so well because if you want a cache in go you get smart and use the c escape route.
If/when Valhalla lands it'll help soften a few of the rough edges here.