Last active
January 31, 2026 01:23
-
-
Save muhamad-ridwant-tech/f1ce3496fec1d8c0cf79d38337d53a7a to your computer and use it in GitHub Desktop.
Menemukan instances pengguna CPU/Memory tertinggi di server Hypervisor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Menemukan instances pengguna CPU/Memory tertinggi ( --sort=-%cpu / --sort=-%mem) | |
| [tripleo-admin@Openstack-Compute-2 ~]$ ps aux --sort=-%cpu | awk 'NR==1 {print $1, $2, $3, $4, "UUID"} / -uuid / {for(i=1;i<=NF;i++) if($i=="-uuid") {print $1, $2, $3, $4, $(i+1)}}' | column -t | |
| USER PID %CPU %MEM UUID | |
| qemu 691730 2646 16.9 457990e4-8d26-4f18-9940-72f652b99572 | |
| qemu 75529 1165 1.1 e6175dac-d40f-4375-855c-b48632a28d68 | |
| qemu 213227 775.4 4.1 148f0a0b-b13d-4718-aff2-1bc2b11ec505 | |
| admin 1642873 0.0 0.0 / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment