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
Last revisionBoth sides next revision
installation_guide:debug:start [2022/10/20 07:32] – [Powerful SIP traffic monitor] borjainstallation_guide:debug:start [2024/02/19 16:09] – [Monitor the file descriptors] borja
Line 320: 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 331: 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>
 +
 +==== Coredump generators ====
 +
 +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.txt
  • Last modified: 2024/02/19 16:10
  • by borja