Measuring the Memory Usage of Java Programs

    公开(公告)号:US20220107825A1

    公开(公告)日:2022-04-07

    申请号:US16482244

    申请日:2019-07-11

    Applicant: VMware, Inc.

    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.

Patent Agency Ranking