How to record and replay htop? – A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about How to record and replay htop? was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, performance-monitoring, htop, , .
TL;DR Is there an option to run htop in a way that will generate some report and the load it using htop later? Similar to perf record and perf report.
I’m a big fan of htop. I use it quite a lot when I want to see if I have some resource problem. e.g some process thread is taking too much cpu/memory. I was wondering if there is a way to record the data that htop use, e.g snapshots of
/proc, and use it later in htop. I basically want to run htop on my sever and view the results later. Similar to what you can do with sar. Only that I prefer htop a lot more than the tools that come with sar.
perf, which is fully fledged disassembler/debugger/profiler suite,
htop is just a simple “interactive process manager – a better top with scrolling” (as author defines it himself in his video presentation). In version 3.0
htop should get support for reading kernel perf counters, which is a great improvement, but no plans has been announced for supporting advanced profiling features like those present in
At this time, the only way one might record
htop is by means of asciinema or similar tools, nothing like interactive replay of a recorded performance profile…