V0.1.9 (#26)
* fix: prevent duplicate call link detection (#23) Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local> * bot improvements (#25) Co-authored-by: Maksim <maksim@MBP-Maksim.lan> * headless vk video creator * add scroll to logs * allow peer reconnection * add todo about topology changes, kick stale peer to prevent SFU topology * unified relay for headless * remove relay binaries, extend build-go.sh to build them * refactor constants * limit headless resource usage * nuke everyone and yourself at sfu topology changes * add headless for creator * save bot enabled state * increment release version --------- Co-authored-by: Nevenuga <80585376+Nevenuga@users.noreply.github.com> Co-authored-by: Maksim <maksim@MacBook-Pro-Maksim.local> Co-authored-by: Maksim <maksim@MBP-Maksim.lan> Co-authored-by: kulikov <user@Mac.lan>
This commit is contained in:
37 files changed
+2589
-133
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
interval="${1:-5}"
|
||||
printf "%-8s %-20s %10s %6s %6s\n" "TIME" "PROCESS" "RSS(MB)" "THR" "FD"
|
||||
echo "-------------------------------------------------------"
|
||||
while true; do
|
||||
pids=$(pgrep -f "headless-creator" 2>/dev/null)
|
||||
if [ -z "$pids" ]; then
|
||||
printf "%-8s %s\n" "$(date +%H:%M:%S)" "no processes found"
|
||||
else
|
||||
for pid in $pids; do
|
||||
name=$(ps -o comm= -p "$pid" 2>/dev/null | xargs basename 2>/dev/null)
|
||||
rss=$(ps -o rss= -p "$pid" 2>/dev/null | tr -d ' ')
|
||||
rss_mb=$(awk "BEGIN{printf \"%.3f\", $rss/1024}")
|
||||
thr=$(ps -M "$pid" 2>/dev/null | tail -n +2 | wc -l | tr -d ' ')
|
||||
fd=$(lsof -p "$pid" 2>/dev/null | wc -l | tr -d ' ')
|
||||
printf "%-8s %-20s %10s %6s %6s\n" "$(date +%H:%M:%S)" "$name($pid)" "${rss_mb}" "$thr" "$fd"
|
||||
done
|
||||
fi
|
||||
echo ""
|
||||
sleep "$interval"
|
||||
done
|
||||
Reference in new issue
Block a user