← 返回命令列表

Linux command

roumon 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Monitor goroutines on localhost:6060 (pprof default)

roumon

Monitor a Go application on a remote host and port

roumon -host=[192.168.10.1] -port=[8081]

Write debug output to a log file

roumon -debug=[roumon.log]

Combine remote connection with debug logging

roumon -host=[app.example.com] -port=[6060] -debug=[roumon.log]

Show built-in help

roumon -h

说明

roumon is a terminal user interface for monitoring goroutines in running Go applications. It connects to a Go program's `net/http/pprof` endpoint and renders the live list of goroutines together with their stack traces, states, and labels, which makes it useful for hunting goroutine leaks and debugging concurrency issues. Inside the TUI, press F1 for help and F10 or Ctrl+C to quit.

参数

-host _HOST_
Hostname or IP address of the pprof HTTP server. Default: `localhost`.
-port _PORT_
Port of the pprof HTTP server. Default: `6060`.
-debug _LOGFILE_
Enable debug logging and write diagnostics to the given file.
-h, --help
Display help information.

FAQ

What is the roumon command used for?

roumon is a terminal user interface for monitoring goroutines in running Go applications. It connects to a Go program's `net/http/pprof` endpoint and renders the live list of goroutines together with their stack traces, states, and labels, which makes it useful for hunting goroutine leaks and debugging concurrency issues. Inside the TUI, press F1 for help and F10 or Ctrl+C to quit.

How do I run a basic roumon example?

Run `roumon` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -host _HOST_ do in roumon?

Hostname or IP address of the pprof HTTP server. Default: `localhost`.