TECHNIQUES FOR ADAPTIVE TRACE LOGGING
First Claim
1. A method for adaptive trace logging, comprising:
- obtaining data that represents at least one of the following,a number of trace log messages added to a trace log in a period of time,an amount of storage space available on a non-volatile computer-readable storage medium that stores a trace log,a latency of an operation comprising writing a trace log message to a trace log, anda size of a trace log;
based at least in part on said data, determining whether to perform an action to reduce an amount of one or more computing resources consumed by trace logging; and
performing said action, wherein performing said action includes performing at least one of,changing a trace logging level, orwriting a trace log message to a volatile computer-readable storage medium instead of writing the log message to a non-volatile computer-readable storage medium;
wherein the method is performed by one or more computing devices.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for adaptive trace logging include, in one embodiment, obtaining input data on trace logging behavior and computing resources used by trace logging. Based on the obtained input data, an adaptive trace logging module automatically takes action at runtime to reduce the amount of computing resources consumed by tracing logging. For example, the action taken may include decreasing a trace logging level of an executing software program to reduce the number of trace logging messages added to a trace log. In another embodiment, the techniques include detecting a condition of an executing software program that warrants a change to a trace logging level of the executing program. The adaptive trace logging module automatically changes the trace logging level of the executing program as-needed for the detected condition. For example, the adaptive trace logging module may increase the trace logging level of an executing program upon detecting a deadlock or other abnormal condition of the executing program. By automatically increasing the trace logging level upon detecting an abnormal condition, additional trace logging messages may be written to a trace log aiding diagnosis and troubleshooting of the condition.
-
Citations
26 Claims
-
1. A method for adaptive trace logging, comprising:
-
obtaining data that represents at least one of the following, a number of trace log messages added to a trace log in a period of time, an amount of storage space available on a non-volatile computer-readable storage medium that stores a trace log, a latency of an operation comprising writing a trace log message to a trace log, and a size of a trace log; based at least in part on said data, determining whether to perform an action to reduce an amount of one or more computing resources consumed by trace logging; and performing said action, wherein performing said action includes performing at least one of, changing a trace logging level, or writing a trace log message to a volatile computer-readable storage medium instead of writing the log message to a non-volatile computer-readable storage medium; wherein the method is performed by one or more computing devices. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method for adaptive trace logging, comprising:
-
detecting a condition of an executing software program; determining the condition warrants a change to a trace logging level of the executing software program; and changing the trace logging level of the executing software program; wherein the method is performed by one or more computing devices. - View Dependent Claims (12, 13, 14, 15)
-
-
16. A computer-readable storage medium storing instructions for adaptive trace logging, the instructions, when executed by one or more computing devices, cause the one or more computing devices to perform a method comprising the steps of:
-
obtaining data that represents at least one of the following, a number of trace log messages added to a trace log in a period of time, an amount of storage space available on a non-volatile computer-readable storage medium that stores a trace log, a latency of an operation comprising writing a trace log message to a trace log, and a size of a trace log; based at least in part on said data, determining whether to perform an action to reduce an amount of one or more computing resources consumed by trace logging; and performing said action, wherein performing said action includes performing at least one of, changing a trace logging level, or writing a trace log message to a volatile computer-readable storage medium instead of writing the log message to a non-volatile computer-readable storage medium; wherein the method is performed by one or more computing devices. - View Dependent Claims (17, 18, 19, 20, 21, 22, 23, 24, 25)
-
-
26. A computer system comprising:
-
one or more processors; and logic embodied in one or more computer-readable storage media for; obtaining data that represents at least one of the following, a number of trace log messages added to a trace log in a period of time, an amount of storage space available on a non-volatile computer-readable storage medium that stores a trace log, a latency of an operation comprising writing a trace log message to a trace log, and a size of a trace log; based at least in part on said data, determining whether to perform an action to reduce an amount of one or more computing resources consumed by trace logging; and performing said action, wherein performing said action includes performing at least one of, changing a trace logging level, or writing a trace log message to a volatile computer-readable storage medium instead of writing the log message to a non-volatile computer-readable storage medium.
-
Specification