VMware, Inc.
Measuring the Memory Usage of Java Programs

Last updated:

Abstract:

Techniques for measuring the memory usage of Java programs are provided. In one set of embodiments, a Java agent can detect that a Java Virtual Machine (JVM) is loading a Java class used by a Java program. The Java agent can further determine a class name of the Java class and determine that the class name matches an entry in a first list included in a user-defined configuration file. The Java agent can then dynamically insert bytecode into a constructor of the Java class, where the inserted bytecode includes logic for registering a memory reference to an object created via the constructor.

Status:
Application
Type:

Utility

Filling date:

11 Jul 2019

Issue date:

7 Apr 2022