The present invention provides a method, system, and computer program
product for light weight memory leak detection. A method in accordance
with an embodiment of the present invention comprises: obtaining raw free
memory statistics; approximating free memory after garbage collection
from the raw free memory statistics; and analyzing the approximated free
memory after garbage collection to identify a potential memory leak. A
method in accordance with another embodiment of the present invention
comprises the steps of: obtaining raw free memory statistics; generating
a vector of memory leak indicators from the raw free memory statistics;
comparing the vector of memory leak indicators against a plurality of
vectors of the same memory leak indicators for known memory leak
scenarios; and identifying a potential memory leak based on the
comparison.