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:
- calculating, by a host system, memory usage statistics of each of a group of objects that contributed to 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 by the set of one or more processors;
identifying, by the host system, top consumers of memory by object of the current heap dump;
determining, by the host system, how much memory a given one of the top consumers consumes with respect to how much memory top consumers other than the given one of the top consumers consume;
computing, by the host system, a suspect score based on the determining; and
determining, by the host system, whether the given one 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.
47 Citations
18 Claims
-
1. A method for identifying errors in software code in a multi-tenant environment comprising:
-
calculating, by a host system, memory usage statistics of each of a group of objects that contributed to 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 by the set of one or more processors; identifying, by the host system, top consumers of memory by object of the current heap dump; determining, by the host system, how much memory a given one of the top consumers consumes with respect to how much memory top consumers other than the given one of the top consumers consume; computing, by the host system, a suspect score based on the determining; and determining, by the host system, whether the given one 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, 11, 12, 13, 14, 15, 16, 17)
-
-
18. 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:
-
calculating, by a host system, memory usage statistics of each of a group of objects that contributed to 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 by the set of one or more processors; identifying, by the host system, top consumers of memory by object of the current heap dump; determining, by the host system, how much memory a given one of the top consumers consumes with respect to how much memory top consumers other than the given one of the top consumers consume; computing, by the host system, a suspect score based on the determining; and determining, by the host system, whether the given one of the top consumers is likely to have caused memory issues based on the suspect score.
-
Specification