摘要 |
A method, system and apparatus for detecting and remediating a memory leak. In the method of the invention, an aging value can be established for an object instance created in memory and resetting the aging value when the object instance is referenced by an executing process. By comparison, the aging value can be incremented during a garbage collection pass when the object instance had not been referenced by an executing process since a previous garbage collection pass. Importantly, when the aging value exceeds a threshold value, the object instance can be processed as a loiterer. The processing step itself can include clearing at least one cache in memory, and reporting said object instance as a loiterer in a log file. Yet, the processing step can be avoided where the object instance belongs to a specified exempt class.
|