Monitors the JVM memory to find memory leaks and generates thread dumps and a memory dump.