2016-05-21 00:16:23 +08:00
# RabbitMQ Top Plugin
2014-06-20 01:24:54 +08:00
2019-08-24 16:25:34 +08:00
Adds UNIX top-like information on the Erlang VM to the [management UI ](https://www.rabbitmq.com/management.html ).
The closest interactive CLI alternative in recent releases is `rabbitmq-diagnostics observer` .
2019-08-24 16:03:30 +08:00
This is what it looks like:
2014-04-10 21:26:43 +08:00
2019-08-24 16:03:30 +08:00

2014-06-20 01:24:54 +08:00
2016-12-28 12:29:15 +08:00
## Installation
2017-11-08 18:20:26 +08:00
This plugin ships with RabbitMQ as of `3.6.3` . Enable it with
2019-08-24 16:26:25 +08:00
``` bash
# use sudo as necessary
rabbitmq-plugins enable rabbitmq_top
```
2016-12-28 12:29:15 +08:00
### RabbitMQ 3.5.x
You can download a pre-built binary of this plugin for RabbitMQ `3.5.x` from [RabbitMQ Community plugins page ](https://bintray.com/rabbitmq/community-plugins/rabbitmq_top ).
2016-05-21 00:16:23 +08:00
## Usage
2014-06-20 01:24:54 +08:00
Sort by process ID, memory use or reductions/sec (an approximate
measure of CPU use).
Click on the process description (e.g. "my queue") to see that
object's management view.
2014-06-20 01:26:08 +08:00
Click on the process ID (e.g. "< 0.3423.0> ") to see some more
2017-11-08 18:20:26 +08:00
Erlang process details.
2014-06-20 01:24:54 +08:00
2019-03-20 16:24:27 +08:00
See [Memory Use Analysis guide ](https://www.rabbitmq.com/memory-use.html ) on RabbitMQ website
2017-11-08 18:21:29 +08:00
for more information.
2014-06-20 01:24:54 +08:00
2016-05-21 00:16:23 +08:00
## HTTP API
2014-12-03 19:02:28 +08:00
You can drive the HTTP API yourself. It installs into the management plugin's API; you should understand that first. Once you do, the additional paths look like:
/api/top/< node-name >
List of processes. Takes similar query string parameters to other
lists, `sort` , `sort_reverse` and `columns` . Sorting is quite
important as it currently hard-codes returning the top 20 processes.
/api/process/< pid >
Individual process details.
2016-05-21 00:16:23 +08:00
2019-08-24 16:03:30 +08:00
## More Screenshots
Individual process metrics are also available:

2016-05-21 00:16:23 +08:00
## Building from Source
You can build and install it like any other plugin (see
2019-03-20 16:24:27 +08:00
[the plugin development guide ](https://www.rabbitmq.com/plugin-development.html )).
2016-05-21 00:16:23 +08:00
## License and Copyright
2024-02-06 01:26:25 +08:00
(c) 2007-2024 Broadcom. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
2016-05-21 00:16:23 +08:00
Released under the same license as RabbitMQ.