Skip to content

Commit

Permalink
Update debug.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkgo committed Mar 26, 2024
1 parent c0d305e commit e42b737
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,21 @@ blank
echo "[INFO]" ENV
blank
cat /tmp/env.conf
ls -shan
blank
#sleep 5
echo "[INFO]" PS
blank
ps -ef
if ps -ef | grep -v grep | grep unbound_raw; then
echo unbound OK.
else
echo Try to run unbound...
unbound -c /tmp/unbound_raw.conf -p -v -d &
grep -E "(num-threads: |outgoing-range: |outgoing-num-tcp: |incoming-num-tcp: |msg-cache-size: |msg-cache-slabs: |num-queries-per-thread: |rrset-cache-size: |rrset-cache-slabs: )" /tmp/unbound_raw.conf
echo RealCore:"$(grep -c ^processor /proc/cpuinfo)"
echo ulimit:$(ulimit -n)
fi
blank
echo "[INFO]" TOP
blank
Expand Down

0 comments on commit e42b737

Please sign in to comment.