Why does java wait so long to run the garbage collector?
Any detailed answer is going to depend on which garbage collector you’re using, but there are some things that are basically the same across all (modern, sun/oracle) GCs. Every time you see the usage in the graph go down, that is a garbage collection. The only way heap gets freed is through garbage collection. The … Read more