Created
January 3, 2020 20:25
-
-
Save JuanjoSalvador/7c2f7209f33ca0b59f515da74b61c97c to your computer and use it in GitHub Desktop.
Script that checks your Mastodon instance's process memory usage
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
#!/bin/bash | |
systemd-cgtop | grep mastodon* | awk 'BEGIN { printf "%-28s %s", "SERVICE", "MEMORY USAGE\n"; | |
printf "%-28s %s", "-------", "------------\n" } | |
{ printf "%-30s %10s\n", substr($1, 15), $4 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment