Patent ID: 7685575

Claim:
A method for analyzing an application comprising: obtaining a thread dump of a plurality of threads executing the application, wherein the thread dump comprises a plurality of stack levels of each of the plurality of threads executing the application, and wherein the application comprises a plurality of methods; analyzing the thread dump to obtain a final result using an aggregation mechanism, wherein analyzing the thread dump using the aggregation mechanism comprises: for each set of attribute values of a plurality of sets of attribute values: aggregating the plurality of threads to obtain a total number of threads having the same set of attribute values, wherein each set of attribute values comprises attribute values identifying a method being executed of the plurality of methods and a stack level in which the method is located of the plurality of stack levels when the thread dump is performed, wherein the final result comprises the set of attribute values associated with the total number of threads; selecting, from the final result, a set of attribute values corresponding to the highest total number of threads from the plurality of sets of attribute values; and determining a potential error location in source code of the application according to the set of attribute values corresponding to the highest total number of threads.