Determining that a routine has stalled
AssigneeComputer Associates Think, Inc.
InventorsJeffrey Cobb, Lewis Cirne
Life of this patent
Estimating the term…
Abstract
A system is disclosed that can determine whether a routine is stalled. The system does not require the developer of the routine to add code for the purpose of detecting whether the routine is stalled. Furthermore, the system can be used to monitor various routines at different levels of granularity, such as at the thread level, method level, or other levels. One embodiment of the present invention allows a user to specify a method and an expected time frame. Code for that method is modified to add additional code that implements a timing mechanism. The timing mechanism is used to detect when a thread enters that method and does not return within an approximation of the expected time frame. Other embodiments are also within the scope of the present invention.
Claims29
1-12. (canceled)
A method for detecting whether a routine has stalled, comprising:
- receiving an indication that a particular routine has started said particular routine is one of a plurality of routines that comprise a process;
- receiving an indication that said particular routine has completed, if said particular routine has completed;
- automatically determining that said particular routine has stalled if said indication that said particular routine has completed is not provided prior to being overdue, such that being overdue is based on said indication that a particular routine has started;
- and
- reporting that said particular routine has stalled, if said particular routine has stalled.
(canceled)
18-38. (canceled)
A method for detecting whether a method has stalled, comprising:
- receiving an indication that a particular method of an object is running;
- and
- automatically determining whether said method has stalled by detecting whether a thread entered said method and did not return within an approximation of an expected time frame.
40-44. (canceled)
One or more processor readable storage devices having processor readable code embodied on said processor readable storage devices, said processor readable code for programming one or more processors to perform a method comprising:
- receiving an indication that a first routine has started;
- starting a timing mechanism in response to said indication that said first routine has started;
- receiving an indication that said first routine has completed, if said first routine has completed;
- stopping said timing mechanism in response to receiving said indication that said first routine has completed;
- and
- reporting said first routine as stalled if said timing mechanism is not stopped prior to a determination that said timing mechanism is overdue.
46-47. (canceled)
50-63. (canceled)
One or more processor readable storage devices having processor readable code embodied on said processor readable storage devices, said processor readable code for programming one or more processors to perform a method comprising:
- receiving an indication that a particular routine has started;
- receiving notice that said particular routine has completed, if said particular routine has completed;
- and
- reporting said particular routine as stalled if said notice that said particular routine has completed is not received indicating that said particular routine completed prior to being overdue in relation to said indication that said particular routine has started.
65-66. (canceled)
68-79. (canceled)
A method for detecting whether a routine has stalled, comprising:
- receiving a first indication from a particular routine that said particular routine has started;
- receiving a second indication from said particular routine that said particular routine has completed;
- automatically determining whether said particular routine is stalled based on said first indication and said second indication;
- and
- reporting said particular routine as being stalled if said particular routine is determined to be stalled.
One or more processor readable storage devices having processor readable code embodied on said processor readable storage devices, said processor readable code for programming one or more processors to perform a method comprising:
- receiving a first indication from a particular routine that said particular routine has started, said particular routine is one of a plurality of routines that comprise a process;
- receiving a second indication from said particular routine that said particular routine has completed;
- automatically determining whether said particular routine is stalled based on said first indication and said second indication;
- and
- reporting said particular routine as being stalled if said particular routine is determined to be stalled.
Dependencies are inferred from the claim text.