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

Claim 0:
1. A computer-implemented method, comprising:
determining a first snapshot and a second snapshot of memory usage by processes in a computing 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;
computing, for processes common to the first snapshot and the second snapshot, a likelihood of a memory leak for a process and a memory type, the computing of the likelihood comprising calculating a least squares linear fit based on:
an increase in an amount of a heap memory and a private memory used by the process,
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;

comparing 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, performing, in the computing system, a corrective action to address the memory leak for the process.