Analyzer java-kafka-req-latency

Name

java-kafka-req-latency - Java Kafka Request Latency

This analyzer profiles Kafka request latency in Java applications using Kafka clients. It captures timing information for Kafka operations including produce and consume requests. The analyzer can optionally capture network packets for matched requests. It generates time-series charts that visualize Kafka request latency distribution over time, helping identify slow operations, network issues, and performance bottlenecks in Kafka-based Java applications.

Resource Category

Network I/O.

Application Type & Technical Stack

  • Java

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run java-kafka-req-latency -p PID

# trace a shell command directly
orxray analyzer run java-kafka-req-latency -c SHELL_CMD

Tracing Multiple Processes

Not supported.

Output Formats

  • Line Charts
  • Plain Texts

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.