-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug Command #4227
Debug Command #4227
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superb work @alexanderbez! We will need to update https://docs.tendermint.com/master/tendermint-core/running-in-production.html ("Debugging Tendermint" section) and maybe even write a blog post 🏣 |
@melekes I've added a small section to the |
Implement a new subcommand:
tendermint debug
. This subcommand itself has two subcommands:$ tendermint debug kill <pid> </path/to/out.zip> --home=</path/to/app.d>
Writes debug info into a compressed archive. The archive will contain the following:
The Tendermint process will be killed.
$ tendermint debug dump </path/to/out> --home=</path/to/app.d>
This command will perform similar to
kill
except it only polls the node and dumps debugging data everyfrequency
seconds to a compressed archive under a given destination directory. Each archive will contain:Note:
goroutine.out
andheap.out
will only be written if a profile address is provided and is operational.replaces: #3327
closes: #3249