# US 2019/0245768 A1 · Monitoring a resource consumption of an application

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0245768 A1
- Document ID: US20190245768A1
- Status: Published application
- Kind: A1
- Application number: 16/385,100
- Filed: 2019-04-16
- Published: 2019-08-08
- Earliest claimed: 2017-02-01
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Gianluca Della Corte; Alessandro Donatelli; Stefano Proietti; Antonio M. Sgro
- Web page: https://patentgrep.com/patent/US20190245768A1

## CPC

- H04L 43/16: Threshold monitoring
- H04L 43/045: for graphical visualisation of monitoring data
- H04L 43/067: using time frame reporting
- H04L 43/0817: by checking functioning
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and system or monitoring a resource consumption of an application running on a computer. A first metric describes the resource consumption of the application as a first function of time. A wavelet analysis of the first function of time is performed. A discontinuity in the first function is detected at a first time at which a coefficient determined from the wavelet analysis exceeds a specified threshold. A cross-correlation of the first metric and a second metric describing the resource consumption of the application as a second function of time are calculated. A diagnostic level associated with the discontinuity in the first function is adjusted based on the calculated cross-correlation. In response to adjusting the diagnostic level, a debugging function on the application is started in response to the cross correlation having a value indicative of an anomaly within the application.

## Claims

### Claim 1

A method for monitoring a resource consumption of an application running on a computer, said method comprising:
performing, by one or more processors of a data processing system, a wavelet analysis of a first function of time, wherein a first metric describes the resource consumption of the application as a first function of time;
detecting, by the one or more processors, a discontinuity in the first function at a first time at which a coefficient determined from the wavelet analysis exceeds a specified threshold, said coefficient being indexed on a dilation parameter and a time offset parameter;
calculating, by the one or more processors, a cross-correlation of the first metric and a second metric describing the resource consumption of the application as a second function of time;
adjusting, by one or more processors, a diagnostic level associated with the discontinuity in the first function, said adjusting based on the calculated cross-correlation; and
in response to adjusting the diagnostic level, starting, by the one or more processors, a debugging function on the application in response to the cross correlation having a value indicative of an anomaly within the application.

### Claim 2 (depends on 1)

The method of claim 1, said method further comprising:
generating, by the one or more processors utilizing a result from said debugging, a diagnosis report, wherein the diagnosis report comprises diagnosis data related to the application according to the diagnostic level, and wherein the adjusted diagnosis data relates to the anomaly within the application;
forwarding, by the one or more processors, the diagnosis report to a monitoring node in the data processing system.

### Claim 3 (depends on 2)

The method of claim 2, wherein the diagnosis data comprises resource consumption information, in response to a determination that the diagnostic level is within a previously specified first range.

### Claim 4 (depends on 2)

The method of claim 2, wherein the diagnosis data comprises a method trace of a thread executed by the application in response to a determination that the diagnostic level is within a previously specified second range.

### Claim 5 (depends on 2)

The method of claim 2, wherein the diagnosis data comprises a stack trace of a thread executed by the application in response to a determination that the diagnostic level is within a previously specified third range.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first metric or the second metric is processor utilization, main memory usage, mass storage occupancy, or mass storage I/O throughput.

### Claim 7 (depends on 1)

The method of claim 1, wherein the discontinuity is characterized by (i) at least one characteristic frequency and (ii) at least one characteristic time or at least one characteristic time period in a time series.

### Claim 8

A computer program product, comprising one or more computer readable hardware storage devices having computer readable program code stored therein, said program code containing instructions executable by one or more processors of a data processing system to implement a method for monitoring a resource consumption of an application running on a computer, said method comprising:
performing, by the one or more processors, a wavelet analysis of a first function of time, wherein a first metric describes the resource consumption of the application as a first function of time;
detecting, by the one or more processors, a discontinuity in the first function at a first time at which a coefficient determined from the wavelet analysis exceeds a specified threshold, said coefficient being indexed on a dilation parameter and a time offset parameter;
calculating, by the one or more processors, a cross-correlation of the first metric and a second metric describing the resource consumption of the application as a second function of time;
adjusting, by one or more processors, a diagnostic level associated with the discontinuity in the first function, said adjusting based on the calculated cross-correlation; and
in response to adjusting the diagnostic level, starting, by the one or more processors, a debugging function on the application in response to the cross correlation having a value indicative of an anomaly within the application.

### Claim 9 (depends on 8)

The computer program product of claim 8, said method further comprising:
generating, by the one or more processors utilizing a result from said debugging, a diagnosis report, wherein the diagnosis report comprises diagnosis data related to the application according to the diagnostic level, and wherein the adjusted diagnosis data relates to the anomaly within the application;
forwarding, by the one or more processors, the diagnosis report to a monitoring node in the data processing system.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the diagnosis data comprises resource consumption information, in response to a determination that the diagnostic level is within a previously specified first range.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the diagnosis data comprises a method trace of a thread executed by the application in response to a determination that the diagnostic level is within a previously specified second range.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the diagnosis data comprises a stack trace of a thread executed by the application in response to a determination that the diagnostic level is within a previously specified third range.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein the first metric or the second metric is processor utilization, main memory usage, mass storage occupancy, or mass storage I/O throughput.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein the discontinuity is characterized by (i) at least one characteristic frequency and (ii) at least one characteristic time or at least one characteristic time period in a time series.

### Claim 15

A data processing system, comprising one or more processors, one or more memories, and one or more computer readable hardware storage devices, said one or more hardware storage device containing program code executable by the one or more processors via the one or more memories to implement a method for monitoring a resource consumption of an application running on a computer, said method comprising:
performing, by the one or more processors, a wavelet analysis of a first function of time, wherein a first metric describes the resource consumption of the application as a first function of time;
detecting, by the one or more processors, a discontinuity in the first function at a first time at which a coefficient determined from the wavelet analysis exceeds a specified threshold, said coefficient being indexed on a dilation parameter and a time offset parameter;
calculating, by the one or more processors, a cross-correlation of the first metric and a second metric describing the resource consumption of the application as a second function of time;
adjusting, by one or more processors, a diagnostic level associated with the discontinuity in the first function, said adjusting based on the calculated cross-correlation; and
in response to adjusting the diagnostic level, starting, by the one or more processors, a debugging function on the application in response to the cross correlation having a value indicative of an anomaly within the application.

### Claim 16 (depends on 15)

The data processing system of claim 15, said method further comprising:
generating, by the one or more processors utilizing a result from said debugging, a diagnosis report, wherein the diagnosis report comprises diagnosis data related to the application according to the diagnostic level, and wherein the adjusted diagnosis data relates to the anomaly within the application;
forwarding, by the one or more processors, the diagnosis report to a monitoring node in the data processing system.

### Claim 17 (depends on 16)

The data processing system of claim 16, wherein the diagnosis data comprises resource consumption information, in response to a determination that the diagnostic level is within a previously specified first range.

### Claim 18 (depends on 16)

The data processing system of claim 16, wherein the diagnosis data comprises a method trace of a thread executed by the application in response to a determination that the diagnostic level is within a previously specified second range.

### Claim 19 (depends on 16)

The data processing system of claim 16, wherein the diagnosis data comprises a stack trace of a thread executed by the application in response to a determination that the diagnostic level is within a previously specified third range.

### Claim 20 (depends on 15)

The data processing system of claim 15, wherein the first metric or the second metric is processor utilization, main memory usage, mass storage occupancy, or mass storage I/O throughput.
