# US 2016/0366037 A1 · Performance monitoring of wait times

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

- Number: US 2016/0366037 A1
- Document ID: US20160366037A1
- Status: Published application
- Kind: A1
- Application number: 14/735,711
- Filed: 2015-06-10
- Published: 2016-12-15
- Earliest claimed: 2015-06-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Eric L. Barsness; Michael J. Branson; John M. Santosuosso
- Web page: https://patentgrep.com/patent/US20160366037A1

## CPC

- G06F 16/24568: {Data stream processing; Continuous queries}
- G06F 16/24573: {using data annotations, e.g. user-defined metadata}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- H04L 65/75: Media network packet handling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present disclosure include a method, a system, and a computer program product for determining wait times of tuples within a streaming environment. The method includes monitoring one or more tuples being processed within an operator graph where the operator graph includes a first processing element and a queue of the first processing element. The method includes recording a wait time of the one or more tuples within the queue of the first processing element. The method includes recording a processing time time of the one or more tuples within the first processing element. The method includes displaying the wait time and the processing time of the one or more tuples. The method includes optimizing a configuration of the operator graph, in response to recording the processing time of the one or more tuples.

## Claims

### Claim at position 1

1-8. (canceled)

### Claim 9

A system for managing a streaming environment, comprising:
a memory;
a processor device communicatively coupled to the memory; and
a stream manager communicatively coupled to the memory and the processor device, wherein the stream manager is configured to:
monitor one or more tuples within an operator graph, wherein the operator graph further comprises:
a first processing element which operates on one or more computer processors, and
a first queue of the first processing element;
record a wait time of the one or more tuples within the first queue of the first processing element;
record a processing time of the one or more tuples within a processing stage of the first processing element;
display, in response to recording, upon a user interface;
optimize, in response to recording the processing time of the one or more tuples, a configuration of the operator graph.

### Claim 10 (depends on 9)

The system of claim 9, wherein the stream manager is further configured to:
monitor attributes of the one or more tuples, wherein the attributes further comprise:
a set of attributes defining a tuple, and
a trait for each of the set of attributes of the tuple;
monitor a first tuple with a first trait of a first attribute;
monitor a second tuple with a second trait of a first attribute;
record the processing time of the first tuple within the first processing element;
record the processing time of the second tuple within the first processing element; and
compare the processing time of the first tuple with the processing time of the second tuple.

### Claim 11 (depends on 10)

The system of claim 10, wherein the stream manager is further configured to:
determine whether a first processing time of the first tuple in the first processing element is longer than a second processing time of the second tuple in the first processing element; and
alert, in response to determining that the first processing time is longer, a user that the first processing time is longer.

### Claim 12 (depends on 11)

The system of claim 11, wherein alerting the user further comprises:
informing the user that the first trait of the first attribute caused additional waiting time within the first processing element; and
outputting the processing time of the one or more tuples within the first processing element.

### Claim 13 (depends on 11)

The system of claim 11, wherein the stream manager is further configured to:
display the wait time of the one or more tuples;
display a tuple identification number of the one or more tuples;
display a wait time of the one or more tuples within one or more processing element; and
gather wait time statistics of each of the one or more tuples based on the wait time of each of the one or more tuples.

### Claim 14 (depends on 13)

The system of claim 13, wherein the wait time of the one or more tuples with the first trait of the first attribute are grouped together separate from the one or more tuples with the second trait of the first attribute.

### Claim 15 (depends on 10)

The system of claim 10, wherein the display of the streams manager includes:
displaying an optimized operator graph;
receiving optimization instructions; and
optimizing the configuration of the operator graph.

### Claim 16

A computer program product for managing a streaming environment comprising a computer readable storage medium having a computer readable program stored therein, wherein the computer readable program, when executed on a computing device, causes the computing device to:
monitor one or more tuples within an operator graph, wherein the operator graph further comprises:
a first processing element which operates on one or more computer processors, and
a first queue of the first processing element;
record a wait time of the one or more tuples within the first queue of the first processing element;
record a processing time of the one or more tuples within a processing stage of the first processing element;
display, in response to recording, upon a general user interface;
receive, in response to displaying upon the general user interface, optimization instructions; and
optimize, in response to recording the processing time of the one or more tuples, a configuration of the operator graph.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the computer readable program further causes the computing device to:
monitor attributes of the one or more tuples, wherein the attributes further comprise:
a set of attributes defining a tuple, and
a trait for each of the set of attributes of the tuple;
monitor a first tuple with a first trait of a first attribute;
monitor a second tuple with a second trait of a first attribute;
record the processing time of the first tuple within the first processing element;
record the processing time of the second tuple within the first processing element; and
compare the processing time of the first tuple with the processing time of the second tuple.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the computer readable program further causes the computing device to:
determine whether a first processing time of the first tuple in the first processing element is longer than a second processing time of the second tuple in the first processing element; and
alert, in response to determining that the first processing time is longer, a user that the first processing time is longer.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the computer readable program further causes the computing device to:
informing the user that the first trait of the first attribute caused additional waiting time within the first processing element; and
outputting the processing time of the one or more tuples within the first processing element.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the computer readable program further causes the computing device to:
display the wait time of the one or more tuples;
display a tuple identification number of the one or more tuples;
display a wait time of the one or more tuples within one or more processing element; and
gather wait time statistics of each of the one or more tuples based on the wait time of each of the one or more tuples.
