> but Java does not automatically give memory back to the system
It depends on which GC is being used. Newer GC's like Shenandoah and ZGC (as well as G1GC I believe) do.
It also seems they didn't look at GraalVM to generate native binaries for Java (e.g. https://quarkus.io)
Java is suspiciously close to 512MiB which could mean they just looked at the RSS size of the process, but Java does not automatically give memory back to the system, especially if the min heap is set to something like 512M.
Java being in the same order of magnitude of performance, they might be abandoning the java ecosystem to quickly considering how good the tooling and library ecosystem maturity is.