It would be nice to have some kind of cooperative API for runtimes like Java, Go etc to where the OS or container manager can provide watermark hints for the heap size and when to run collections.
https://blog.acolyer.org/2015/05/06/blade-a-data-center-garb...