Skip to content

Instantly share code, notes, and snippets.

@milindsingh
Last active December 21, 2020 15:59
Show Gist options
  • Save milindsingh/c9277e109247d90683bc6cf58212e7b2 to your computer and use it in GitHub Desktop.
Save milindsingh/c9277e109247d90683bc6cf58212e7b2 to your computer and use it in GitHub Desktop.
Magento 2 Commands
# kill all consumers
pgrep -u "$(whoami)" -f "[q]ueue:consumers:start" | tee /dev/stderr | awk '{print $1}' | xargs -r kill
# top 15 process
ps aux | awk '{print $2, $4, $11, $12, $13, $14}' | sort -k2r | head -n 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment