Patent ID: 8793289

Claim:
A method comprising: monitoring a runtime system environment to detect memory leaks within the runtime system environment having runtime systems, the monitoring including: executing a garbage collecting process in a runtime system at least once to: release memory allocated within the runtime system for already inaccessible object instances; and writing, to a garbage collection file having memory leak information, memory leak information identifying first objects causing first memory leaks in the runtime system, the memory leak information providing a state of the first objects as they existed prior to causing the first memory leaks, the memory leak information further including memory space allocated to the first objects, pending method calls, and classes associated with the first objects; periodically duplicating the garbage collection file into a duplicate garbage collection file capable of serving as a backup file to the garbage collection file; and during runtime, analyzing the duplicate garbage collection file having the memory leak information relating to the first objects to identify second objects capable of causing second memory leaks, and removing the second objects from an application prior to occurrence of the second memory leaks.