A method, apparatus, and computer instructions for collecting data for
analyzing memory leaks. A plurality of indicators are associated with a
plurality of objects. The plurality of indicators are set to a first
state. An indicator is set for each live object in the plurality of
objects to a second state. In response to a request for the data, data is
collected from all objects in the plurality of objects having indicators
set to the first state.