Method and system for identifying errors in code
First Claim
1. A method for identifying errors in software code in a multi-tenant environment comprising:
- rebuilding, at a host system, object dependencies from a current heap dump;
the host system including a set of one or more processors and a memory system including one or more computer readable media, the host system being part of the multitenant environment;
calculating, by the set of one or more processors memory usage statistics of each of a group of objects that contributed to the current heap dump;
identifying, by the host system, top consumers of memory by object of the current heap dump;
determining, by the host system, information about memory usage for each of the top consumers including at least analyzing how much memory each of the top consumers consumes with respect to how much other top consumers consume;
searching, by the host system, prior heap dumps for heap dumps that are similar to the current heap dump;
if a prior heap dump is found that is similar, grouping, by the host system, the prior heap dump together with the current heap dump in a set of similar heap dumps, and associating information about the set of heap dumps with the current heap dump;
computing, by the host system, a suspect score for each of the top consumers based on information about the set, if a prior similar heap was found for the top consumer, and computing the suspect score for each of the top consumers based on the information about memory usage if no prior similar heap dump was found; and
determining, by the host system, whether each of the top consumers is likely to have caused memory issues based on the suspect score.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for identifying errors in code is provided. The method may include rebuilding object dependencies from a heap dump, calculating memory usage of each object, identifying top consumers of memory by object class, analyzing how much memory each class consumes with respect to how much other classes consume, building a corpus of data that may be used in a progressive machine learning algorithm, and identifying suspect classes. Additionally, the suspect classes and the memory usage statistics of the suspect classes may then be used as an identifying signature of the associated out of memory error. The identifying signature of the associated out of memory error may then be used to compare with the signatures of other out of memory occurrences for identifying duplicate error occurrences.
213 Citations
11 Claims
-
1. A method for identifying errors in software code in a multi-tenant environment comprising:
-
rebuilding, at a host system, object dependencies from a current heap dump;
the host system including a set of one or more processors and a memory system including one or more computer readable media, the host system being part of the multitenant environment;calculating, by the set of one or more processors memory usage statistics of each of a group of objects that contributed to the current heap dump; identifying, by the host system, top consumers of memory by object of the current heap dump; determining, by the host system, information about memory usage for each of the top consumers including at least analyzing how much memory each of the top consumers consumes with respect to how much other top consumers consume; searching, by the host system, prior heap dumps for heap dumps that are similar to the current heap dump; if a prior heap dump is found that is similar, grouping, by the host system, the prior heap dump together with the current heap dump in a set of similar heap dumps, and associating information about the set of heap dumps with the current heap dump; computing, by the host system, a suspect score for each of the top consumers based on information about the set, if a prior similar heap was found for the top consumer, and computing the suspect score for each of the top consumers based on the information about memory usage if no prior similar heap dump was found; and determining, by the host system, whether each of the top consumers is likely to have caused memory issues based on the suspect score. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory machine-readable medium carrying one or more instructions for identifying errors in software code in a system, which when executed cause a method to be carried out, the method comprising:
-
rebuilding, at a host system, object dependencies from a current heap dump;
the host system including a set of one or more processors and a memory system including one or more computer readable media, the host system being part of the multitenant environment;calculating memory usage statistics of each of a group of objects that contributed to the current heap dump; identifying, by the host system, top consumers of memory by object of the current heap dump; determining, by the host system, information about memory usage for each of the top consumers including at least analyzing how much memory each of the top consumers consumes with respect to how much other top consumers consume; searching, by the host system, prior heap dumps for heap dumps that are similar to the current heap dump; if a prior heap dump is found that is similar, grouping, by the host system, the prior heap dump together with the current heap dump in a set of similar heap dumps, and associating information about the set of heap dumps with the current heap dump; computing, by the host system, a suspect score for each of the top consumers based on information about the set, if a prior similar heap was found for the top consumer, and computing the suspect score for each of the top consumers based on the information about memory usage if no prior similar heap dump was found; determining, by the host system, whether each of the top consumers is likely to have caused memory issues based on the suspect score.
-
-
11. A computer network configured for identifying errors in software code a system, the computer network comprising:
-
a plurality of clusters of servers each having a processor system including at least one processor; and a memory system including a machine readable medium having stored thereon one or more sequences of instructions which, when executed, cause a method to be carried out, the method comprising; rebuilding, at a host system, object dependencies from a current heap dump;
the host system including a set of one or more processors and a memory system including one or more computer readable media, the host system being part of the multitenant environment;calculating, by the set of one or more processors, memory usage statistics of each of a group of objects that contributed to the current heap dump; identifying, by the host system, top consumers of memory by object of the current heap dump; determining, by the host system, information about memory usage for each of the top consumers including at least analyzing how much memory each of the top consumers consumes with respect to how much other top consumers consume; searching, by the host system, prior heap dumps for heap dumps that are similar to the current heap dump; if a prior heap dump is found that is similar, grouping, by the host system, the prior heap dump together with the current heap dump in a set of similar heap dumps, and associating information about the set of heap dumps with the current heap dump; computing, by the host system, a suspect score for each of the top consumers based on information about the set, if a prior similar heap was found for the top consumer, and computing the suspect score for each of the top consumers based on the information about memory usage if no prior similar heap dump was found; determining, by the host system, whether each of the top consumers is likely to have caused memory issues based on the suspect score.
-
Specification