Important

You are viewing documentation for an older version of Confluent Platform. For the latest, click here.

confluent local top

Description

View service resource usage.

Important

The confluent local commands are intended for a single-node development environment and are not suitable for a production environment. The data that are produced are transient and are intended to be temporary. For production-ready workflows, see Install and Upgrade Confluent Platform.

confluent local top -- [<service>] --path <path-to-confluent>

Caution

You must include a double dash (--) between the topic name and your flag. For more information, see this post.

Flags

Tip

You must either specify the path for each Confluent CLI confluent local command invocation, export the path as an environment variable for each terminal session, or set the path to your Confluent Platform installation in your shell profile. For example:

cat ~/.bash_profile
export CONFLUENT_HOME=<path-to-confluent>
export PATH="${CONFLUENT_HOME}/bin:$PATH"
Name, shorthand Description
--path <path-to-confluent> Path to Confluent Platform install directory.
-h, --help Print command information.

Positional arguments

Name, shorthand Default Description
<service>  

The service name.

Tip: You can view the available services with the confluent local list command.

Examples

Run this command to view the ZooKeeper runtime statistics:

confluent local top zookeeper

Your output should resemble:

Processes: 348 total, 4 running, 344 sleeping, 1715 threads                                               16:22:36
Load Avg: 5.10, 3.52, 2.90  CPU usage: 52.6% user, 14.84% sys, 33.9% idle
SharedLibs: 172M resident, 55M data, 20M linkedit.
MemRegions: 60350 total, 5039M resident, 185M private, 2482M shared.
PhysMem: 13G used (2687M wired), 3027M unused.
VM: 2048G vsize, 1088M framework vsize, 141871(0) swapins, 199786(0) swapouts.
Networks: packets: 2002220/1450M in, 1342794/303M out. Disks: 580023/14G read, 1034993/27G written.

PID    COMMAND      %CPU TIME     #TH  #WQ  #POR MEM  PURG CMPR PGRP  PPID STATE    BOOSTS     %CPU_ME %CPU_OTHRS
21532  java         0.0  00:04.97 30   1    99   70M  0B   0B   21516 1    sleeping *0[1]      0.00000 0.00000