installation_guide:debug:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
installation_guide:debug:start [2022/04/25 20:24] borjainstallation_guide:debug:start [2024/02/19 16:10] (current) – [Coredump generators] borja
Line 116: Line 116:
 </code> </code>
  
 +==== Asterisk Manager traffic monitor ====
 +
 +Use the "ngrep" tool : 
 +<code>
 +ngrep
 +</code>
 +
 +<code>
 +ngrep -d lo -s 1500 port 5038 -T
 +</code>
 ==== Monitor memory/CPU ==== ==== Monitor memory/CPU ====
  
Line 310: Line 320:
 ==== Set the right TimeZone ==== ==== Set the right TimeZone ====
  
-Install the NTP package to synchronize your server to the world'stime.+Install the NTP package to synchronize your server to the world's time.
  
 <code> <code>
Line 321: Line 331:
 #timedatectl set-timezone Europe/Paris #timedatectl set-timezone Europe/Paris
 </code> </code>
 +
 +or automatically,
 +
 +<code>
 +#dpkg-reconfigure tzdata
 +</code>
 +
 +==== Monitor the file descriptors ====
 +
 +List the file descriptors used by a process :
 +
 +<code>
 +# ls -l /proc/[PID]/fd
 +</code>
 +
 +==== Generate a CallStacks or Coredumps ====
 +
 +Generate the threads stacks or a coredump file for the process (voximald) :
 +
 +<code>
 +gdb -ex "thread apply all bt" --batch /usr/sbin/voximald $(pidof voximald) > /var/log/voximal/backtrace-voximald$(date +%s).txt
 +gdb /usr/sbin/voximald $(pidof voximald) -ex "gcore /tmp/toto.core" --batch
 +</code>
 +
  • installation_guide/debug/start.1650918248.txt.gz
  • Last modified: 2022/04/25 20:24
  • by borja