Patent ID: 7930590

Claim:
A system for diagnosing an application comprising: diagnosis modules in a main running environment of the application; and diagnosis modules in at least one shadow environment of the application, the at least one shadow environment being obtained by duplicating the main running environment, wherein the diagnosis modules in the main running environment and the diagnosis modules in the at least one shadow environment may interact with each other with respect to a fault of the application; wherein: the diagnosis modules in the main running environment include: an exception monitor for monitoring occurrence of exceptions in the system; and an exception informer for sending system exception information to the at least one shadow environment in the event that the exception monitor finds system exceptions; and the modules in the at least one shadow environment include: an exception receiver for communicating with the exception informer to receive the system exception information; and a diagnosis manager-analyzer, for managing the system exception information and performing analysis on default of the application, wherein the diagnosis manager-analyzer includes: a diagnosis manager for opening diagnostic log/trace functions based on the system exception information received by the exception receiver, to obtain diagnosis log/trace files related to system exceptions; and a diagnosis analyzer, for analyzing and producing a diagnosis result based on the diagnosis log/trace files obtained by the diagnosis manager.