Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
installation_guide:debug:start [2016/05/23 10:42] – borja | installation_guide:debug:start [2020/07/14 15:35] – [VoiceXML Log levels] borja | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Debug commands ====== | ====== Debug commands ====== | ||
+ | |||
+ | ==== Enable Voximal module traces === | ||
+ | |||
+ | Execute : | ||
+ | < | ||
+ | CLI> voximal debug | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Enable Voximal interpreter traces === | ||
+ | |||
+ | Execute : | ||
+ | < | ||
+ | CLI> voximal debug interpreter | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== View the traces flow === | ||
+ | |||
+ | Execute : | ||
+ | < | ||
+ | root# tail -f / | ||
+ | </ | ||
+ | |||
+ | With colors : | ||
+ | < | ||
+ | root# tail -f / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Generate a normal stop ==== | ||
Clean stop of the Voximald process : | Clean stop of the Voximald process : | ||
Line 18: | Line 49: | ||
</ | </ | ||
- | Start the voximald process with Valgrid | + | ==== Powerful top monitor ==== |
+ | |||
+ | Use the " | ||
+ | < | ||
+ | htop -p $(pidoff voximald) | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | 1 [ 0.0%] | ||
+ | 2 [| | ||
+ | 3 [ 0.0%] | ||
+ | 4 [ 0.0%] | ||
+ | Mem[||| | ||
+ | Swp[| 31.8M/ | ||
+ | |||
+ | PID USER PRI NI VIRT | ||
+ | 1 root | ||
+ | 18890 root | ||
+ | 18891 root | ||
+ | 409 root | ||
+ | 14487 postfix | ||
+ | 412 postfix | ||
+ | 308 root | ||
+ | 30788 www-data | ||
+ | 30787 www-data | ||
+ | 30786 www-data | ||
+ | 30785 www-data | ||
+ | 30784 www-data | ||
+ | 263 mysql 28 | ||
+ | 2808 mysql 20 | ||
+ | F1Help | ||
+ | </ | ||
+ | |||
+ | ==== Monitor memory/CPU ==== | ||
+ | |||
+ | A very simple way to follow the memory and CPU indicators : | ||
+ | |||
+ | < | ||
+ | root# top -b -d 5 -p $(pidof voximald) | awk -v OFS="," | ||
+ | </ | ||
+ | |||
+ | ==== Valgrid using ==== | ||
+ | |||
+ | The Asterisk module launch the interpreter by defaut, you need to disable it to be able to run the voximald process with Valgrid. | ||
+ | |||
+ | To disable the Voximal launch from the Asterisk module edit and add this option in the voximal.conf : | ||
+ | |||
+ | < | ||
+ | [general] | ||
+ | ... | ||
+ | launcher=no | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Start the voximald process with Valgrid | ||
+ | |||
+ | < | ||
+ | #root valgrind | ||
+ | </ | ||
+ | |||
+ | And run the Asterisk. | ||
+ | |||
+ | < | ||
+ | asterisk -cvvvvv -U asterisk -G asterisk -g | ||
+ | </ | ||
+ | |||
+ | ==== VoiceXML Log levels ==== | ||
+ | |||
+ | Format : | ||
+ | |||
+ | < | ||
+ | |||
+ | Diagnostic | ||
+ | date/time | threadID | sessionID or mark | tagID | subtag | text | ||
+ | |||
+ | Error | ||
+ | date/time | threadID | sessionID or -1 | 0 | severity | modulename | errorID | errorText | appends | ||
+ | |||
+ | Event | ||
+ | date/time | threadID | sessionID | EVENT | 0|evenID | appends | ||
+ | </ | ||
+ | |||
+ | Logging example : | ||
+ | |||
+ | < | ||
+ | ... | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | Oct 23 23: | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | |||
+ | The default log bases (used to define tagIDs) : | ||
+ | |||
+ | < | ||
+ | client.cache.diagLogBase | ||
+ | client.inet.diagLogBase | ||
+ | client.jsi.diagLogBase | ||
+ | client.prompt.diagLogBase | ||
+ | client.rec.diagLogBase | ||
+ | client.tel.diagLogBase | ||
+ | client.vxi.diagLogBase | ||
+ | client.object.diagLogBase | ||
+ | client.client.diagLogBase | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Interet connector === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Cache === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === EcmaScript interpreter === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | === Client main === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Objects === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | === VoiceXML interpreter (VXI) === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | === Telephony === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Prompt === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Recognize === | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <diag tag=" | ||
+ | <diag tag=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Set the right TimeZone ==== | ||
+ | |||
+ | Install the NTP package to synchronize your server to the world' | ||
< | < | ||
- | #root valgrind | + | #timedatectl set-timezone America/New_York |
</ | </ |