The vztop
utility is rather similar to vzps
but is usually started full-screen and updates continuously with process information. This can help with programs that may infrequently cause problems and can be hard to see with vzps
. Overall system information is also presented, which makes a nice place to start looking for problems.
The vztop
utility can be used just as the standard Linux htop
utility. It shows a dynamic list of all processes running on the system with their full command lines.
By default, it shows information about processor, swap and memory usage, number of tasks, load average, and uptime at the top of the screen. You can change the default meters, along with display options, color schemes, and columns at the setup screen (S or F2).
vztop
can be used interactively for sending signals to processes. For example, you can kill processes—without knowing their PIDs—by selecting them and pressing F9. You can also change process priority by pressing F7 (increase; can only be done by the root
user) and F8 (decrease).
The vztop
utility usually has an output like the following:
# vztop
1 [ 0.0%] Tasks: 77, 65 thr; 1 running
2 [||| 2.6%] Load average: 0.02 0.03 0.05
3 [|||| 4.6%] Uptime: 06:46:48
4 [| 0.7%]
Mem[||||||||||||||||||||| 344M/3.68G]
Swp[ 0K/3.87G]
PID CTID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
1 0 root 20 0 41620 4132 2368 S 0.0 0.1 0:05.91 /usr/lib/systemd/systemd
3164 0 root 20 0 19980 1380 1160 S 0.0 0.0 0:00.32 /usr/1ib/systemd/systemd-
3163 0 root 21 1 1402M 56992 10204 S 0.0 1.5 4:12.41 /usr/libexec/qemu-kvm -na
3186 0 root 20 0 1402M 56992 10204 S 0.0 1.5 0:00.09 /usr/libexec/qemu-kvm -na
3185 0 root 20 0 1402M 56992 10204 S 0.7 1.5 2:16.83 /usr/libexec/qemu-kvm -na
3180 0 root 20 0 1402M 56992 10204 S 0.0 1.5 0:00.00 /usr/libexec/qemu-kvm -na
3084 0 smmsp 20 0 85712 2036 516 S 0.0 0.1 0:00.19 sendmail: Queue runner@01
3064 0 root 20 0 98M 2380 572 S 0.0 0.1 0:01.43 sendmail: accepting conne
3036 0 root 20 0 291M 4788 3580 S 0.0 0.1 0:00.00 /usr/sbin/virt1ogd
3037 0 root 20 0 291M 4788 3580 S 0.0 0.1 0:00.00 /usr/sbin/virt1ogd
2787 0 nobody20 0 15548 896 704 S 0.0 0.0 0:00.14 /sbin/dnsmasq --conf-file
2788 0 root 20 0 15520 184 0 S 0.0 0.0 0:00.00 /sbin/dnsmasq --conf-file
2479 0 root 20 0 1962M 33344 24160 S 0.7 0.9 3:13.12 /usr/sbin/pr1_disp_servic
9022 0 root 20 0 1962M 33344 24160 S 0.0 0.9 0:10.74 /usr/sbin/pr1_disp_servic
The column CTID shows the container UUID inside which the process is running (the value 0
means that the process is running on the server), PRI (PRIORITY) displays the kernel’s internal priority for the process, and NI (NICE) shows the nice value (the nicer the process, the more it lets other processes take priority).
To organize processes by parenthood, you can switch to the tree view by pressing F5.