Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
installation_guide:debug:start [2020/07/14 15:36] – [Set the right TimeZone] borja | installation_guide:debug:start [2025/03/07 08:44] (current) – [Execute Asterisk with GDB (debugger)] borja | ||
---|---|---|---|
Line 82: | Line 82: | ||
</ | </ | ||
+ | ==== Powerful SIP traffic monitor ==== | ||
+ | |||
+ | Use the " | ||
+ | < | ||
+ | sngrep | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | xINVITE sip: | ||
+ | | ||
+ | qqqqqqqqqqwqqqqqqqqq | ||
+ | 22: | ||
+ | +0.000994 | ||
+ | 22: | ||
+ | +0.048311 | ||
+ | 22: | ||
+ | +0.085629 | ||
+ | 22: | ||
+ | +8.759074 | ||
+ | 22: | ||
+ | +0.000527 | ||
+ | 22: | ||
+ | x < | ||
+ | x | ||
+ | x | ||
+ | x | ||
+ | x | ||
+ | x | ||
+ | x | ||
+ | x | ||
+ | Esc Calls List Enter Raw Space Compare | ||
+ | </ | ||
+ | |||
+ | ==== Asterisk Manager traffic monitor ==== | ||
+ | |||
+ | Use the " | ||
+ | < | ||
+ | ngrep | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ngrep -d lo -s 1500 port 5038 -T | ||
+ | </ | ||
==== Monitor memory/CPU ==== | ==== Monitor memory/CPU ==== | ||
Line 276: | 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. |
< | < | ||
Line 282: | Line 326: | ||
</ | </ | ||
- | Or, for french servers, | + | or, for french servers, |
< | < | ||
# | # | ||
+ | </ | ||
+ | |||
+ | or automatically, | ||
+ | |||
+ | < | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ==== Monitor the file descriptors ==== | ||
+ | |||
+ | List the file descriptors used by a process : | ||
+ | |||
+ | < | ||
+ | # ls -l / | ||
+ | </ | ||
+ | |||
+ | ==== Generate a CallStacks or Coredumps ==== | ||
+ | |||
+ | Generate the threads stacks or a coredump file for the process (voximald) : | ||
+ | |||
+ | < | ||
+ | gdb -ex " | ||
+ | gdb / | ||
+ | </ | ||
+ | |||
+ | ==== Execute the Asterisk with GDB (debugger) ==== | ||
+ | |||
+ | Launch the Asterisk process with the debugger (gdb) : | ||
+ | |||
+ | < | ||
+ | gdb -ex=r --args asterisk -cvvvvvv -U asterisk -G asterisk | ||
</ | </ |