MONITORING GROWTH OF MEMORY BUFFERS IN LOGGING AND DYNAMICALLY ADAPTING QUANTITY AND DETAIL OF LOGGING
First Claim
1. A method for monitoring growth of memory buffers in logging and dynamically adapting quantity and detail of logging, the method comprising:
- starting, by a computer, a per-thread logging buffer, in response to determining that a thread starts an operation of a task;
determining, by the computer, whether the operation has a failure, in response to determining that the operation completes;
determining, by the computer, whether the failure is severe, in response to determining that the operation has the failure; and
logging, by the computer, details from the per-thread logging buffer, in response to determining that the failure is severe.
1 Assignment
0 Petitions
Accused Products
Abstract
Computer implemented methods for monitoring growth of memory buffers in logging and dynamically adapting quantity and detail of logging. In one method, a computer determines whether an operation of a thread has a failure and whether the failure is severe and logs details from a pre-thread logging buffer. In another method, a computer calculates an increase in a log buffer size, reads from a configuration file a maximum allowed increase in the log buffer size, and returns logging details, in response to determining that the increase is more than the maximum allowed increase. In yet another method, a computer writes a log of a use case to a disk, calculates an actual size of the log in the database, and returns logging details, in response to determining that the actual size is more than the allowed size.
18 Citations
15 Claims
-
1. A method for monitoring growth of memory buffers in logging and dynamically adapting quantity and detail of logging, the method comprising:
-
starting, by a computer, a per-thread logging buffer, in response to determining that a thread starts an operation of a task; determining, by the computer, whether the operation has a failure, in response to determining that the operation completes; determining, by the computer, whether the failure is severe, in response to determining that the operation has the failure; and logging, by the computer, details from the per-thread logging buffer, in response to determining that the failure is severe. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for monitoring growth of memory buffers in logging and dynamically adapting quantity and detail of logging, the method comprising:
-
calling, by a computer, a log buffer to get buffered data, in response to determining that a use case completes; calculating, by the computer, an increase in a size of the log buffer; retrieving, by the computer, from a configuration file, a maximum allowed increase in the size of the log buffer; determining, by the computer, whether the increase is more than the maximum allowed increase; and returning, by the computer, logging details, in response to determining that the increase is more than the maximum allowed increase. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A method for monitoring growth of memory buffers in logging and dynamically adapting quantity and detail of logging, the method comprising:
-
writing, by a computer, a log of a use case to a disk, in response to determining that the use case completes; calculating, by the computer, an actual size of the log on the disk; determining, by the computer, whether the actual size is more than an allowed size; and returning, by the computer, logging details, in response to determining that the actual size is more than the allowed size. - View Dependent Claims (14, 15)
-
Specification