diff --git a/scripts/stats_supervisor.sh b/scripts/stats_supervisor.sh new file mode 100644 index 0000000..63b2162 --- /dev/null +++ b/scripts/stats_supervisor.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +echo "===== STATUS DES APPS SUPERVISÉES =====" +supervisorctl status + +echo "" +echo "===== UTILISATION MÉMOIRE DES PROCESS STREAMLIT =====" +ps aux | grep streamlit | grep -v grep | awk '{printf "%-8s %-6s %-6s %-6s %s\n", $1, $2, $4, $3, $11" "$12" "$13" "$14" "$15" "$16" "$17" "$18}' | awk 'BEGIN { print "USER PID %MEM %CPU CMD" } { print }' + +echo "" +echo "===== PORTS UTILISÉS PAR STREAMLIT =====" +ss -tlnp | grep streamlit | awk '{print $4 " <- " $7}' | sed 's/.*://;s/,.*//'