brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: ps aux --sort=-%mem | head shows which programs eat your memory

~/tips/tip-ps-sort-memory

ps aux --sort=-%mem | head -n 6

Lists the processes using the most memory first, so you can see what is filling your RAM.

The server feels slow and free says memory is low. Which program?

ps aux --sort=-%mem | head -n 6

The minus sign sorts the biggest first, and head keeps the top lines. Use --sort=-%cpu for processor use. The %MEM column is a share of physical memory, and containers show up as their own processes on the host.

Further reading: ps manual page

More tips xmlstarlet ed -u '//item[@id="1"]/title' -v 'Changed' feed.xml xmlstarlet sel -t -v '//item/title' -n feed.xml cat config.yml | xsel -ib xvfb-run -a your-program --some-flag xxhsum -H64 backup.tar > backup.xxh All tips

Link