Patent ID: 11874731
Assignee: HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A computer system, comprising:
a processor; and
a non-transitory storage medium coupled to the processor and storing instructions which, when executed on the processor, cause the computer system to:
determine a first snapshot and a second snapshot of memory usage by processes in the computer system based on a predetermined time interval, wherein a respective snapshot of the first snapshot and the second snapshot indicates, for a respective process, memory usage corresponding to memory types including a private memory and a shared memory;
compute, for processes common to the first snapshot and the second snapshot, a likelihood of a memory leak for a process and a memory type based on:
an increase in an amount of a heap memory used by the process,
an increase in an amount of a private memory used by the process, wherein the private memory used by the process comprises the heap memory and a memory-mapped file input/output memory,
an increase in an amount of a shared memory used by the process, and
an increase in a total amount of the private memory and the shared memory used by the process;

compare the computed likelihood for the process with a predetermined threshold; and
responsive to determining that the computed likelihood for the process exceeds the predetermined threshold, initiate a corrective action to address a memory leak for the process.