Apparatus and method for managing dump data for cause analysis of a memory leak
First Claim
1. A non-transitory, computer-readable recording medium having stored therein a program that causes a computer to execute a process, the process comprising:
- generating object-count information indicating a number of objects belonging to each of a plurality of classes, based on plural pieces of dump data acquired at different times from a memory storing objects of the plurality of classes, the plural pieces of dump data being stored in a storage when the plural pieces of dump data are acquired, each piece of dump data being associated with one or more objects and one or more classes;
determining, for each class, at least first dump data from among the plural pieces of dump data, in accordance with the object-count information, the first dump data being associated with a number of objects belonging to each class which, in at least one class, is smaller than numbers of objects belonging to each class associated with second dump data and third dump data, the second dump data being acquired before the first dump data, the third dump data being acquired after the first dump data;
determining deletion candidate data from among the plural pieces of dump data except the first dump data; and
executing a deletion of the deletion candidate data from the storage.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus includes a memory to store objects of a plurality of classes, and a storage device to store plural pieces of dump data acquired at different times from the memory. The apparatus generates object-count information indicating a number of objects belonging to each of a plurality of classes, based on the plural pieces of dump data acquired at different times from a memory storing objects of the plurality of classes. The apparatus determines, for each class, at least a portion of dump data that includes a locally minimum number of objects in time variation of the number of objects of the each class, as first dump data that is candidate for storage, based on the generated object-count information. When reducing a total amount of dump data, the apparatus excludes the first dump data determined for each class from second dump data that is to be deleted.
8 Citations
7 Claims
-
1. A non-transitory, computer-readable recording medium having stored therein a program that causes a computer to execute a process, the process comprising:
-
generating object-count information indicating a number of objects belonging to each of a plurality of classes, based on plural pieces of dump data acquired at different times from a memory storing objects of the plurality of classes, the plural pieces of dump data being stored in a storage when the plural pieces of dump data are acquired, each piece of dump data being associated with one or more objects and one or more classes; determining, for each class, at least first dump data from among the plural pieces of dump data, in accordance with the object-count information, the first dump data being associated with a number of objects belonging to each class which, in at least one class, is smaller than numbers of objects belonging to each class associated with second dump data and third dump data, the second dump data being acquired before the first dump data, the third dump data being acquired after the first dump data; determining deletion candidate data from among the plural pieces of dump data except the first dump data; and executing a deletion of the deletion candidate data from the storage. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method for managing dump data for cause analysis of a memory leak, the method comprising:
-
generating object-count information indicating a number of objects belonging to each of a plurality of classes, based on plural pieces of dump data acquired at different times from a memory storing objects of the plurality of classes, the plural pieces of dump data being stored in a storage when the plural pieces of dump data are acquired, each dump data being associated with one or more objects and one or more classes; determining, for each class, at least first dump data from among the plural pieces of dump data in accordance with the object-count information, the first dump data being associated with a number of objects belonging to each class smaller than each of numbers of objects belonging to each class associated with second dump data and third dump data, the second dump data being acquired before the first dump data, the third dump data being acquired after the first dump data; determining deletion candidate data from among the plural pieces of dump data except the first dump data; and executing a deletion of the deletion candidate data from the storage.
-
-
7. An apparatus for managing dump data for cause analysis of a memory leak, the apparatus comprising:
-
a memory configured to a store objects of a plurality of classes; a storage device configured to store plural pieces of dump data acquired at different times from the memory, the plural pieces of dump data being stored in the storage device when the plural pieces of dump data are acquired, each dump data being associated with one or more objects and one or more classes; and a processor coupled to the memory and configured to; generate object-count information indicating a number of objects belonging to each of a plurality of classes, based on the plural pieces of dump data acquired at different times from the memory configured to store objects of the plurality of classes, determine, for each class, at least first dump data from among the plural pieces of dump data in accordance with the object-count information, the first dump data being associated with a number of objects belonging to each class smaller than each of numbers of objects belonging to each class associated with second dump data and third dump data, the second dump data being acquired before the first dump data, the third dump data being acquired after the first dump data; determine deletion candidate data from among the plural pieces of dump data except the first dump data; and execute a deletion of the deletion candidate data from the storage device.
-
Specification