Discover a diagnostic tool for optimizing parameters affecting the garbage collector when using the Java Virtual Machine. Applications running under Java use a heap for garbage collection, which serves as a storage manager in development kits and run-time environments.