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
Next revisionBoth sides next revision
installation_guide:debug:start [2018/10/24 08:25] – [VoiceXML Log levels] borjainstallation_guide:debug:start [2020/07/14 15:36] – [Set the right TimeZone] borja
Line 15: Line 15:
 CLI> voximal debug interpreter CLI> voximal debug interpreter
 </code> </code>
 +
 +
 +==== View the traces flow ===
 +
 +Execute :
 +<code>
 +root# tail -f /var/log/voximal/debug.log
 +</code>
 +
 +With colors :
 +<code>
 +root# tail -f /var/log/voximal/debug.log | ccze -A
 +</code>
 +
  
 ==== Generate a normal stop ==== ==== Generate a normal stop ====
Line 33: Line 47:
 < exit|result=ok < exit|result=ok
  
 +</code>
 +
 +==== Powerful top monitor ====
 +
 +Use the "htop" tool : 
 +<code>
 +htop -p $(pidoff voximald)
 +</code>
 +
 +<code>
 +  1  [                          0.0%]   Tasks: 33, 29 thr; 1 running
 +  2  [|                         0.7%]   Load average: 0.51 0.28 0.30
 +  3  [                          0.0%]   Uptime: 3 days, 01:39:39
 +  4  [                          0.0%]
 +  Mem[|||                 175M/3.91G]
 +  Swp[|                  31.8M/7.81G]
 +
 +  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
 +    1 root       20    199M  3316  2208 S  0.0  0.1  0:02.58 /sbin/init
 +18890 root       20   0 56440  4164  3360 S  0.0  0.1  0:00.02 `- /lib/systemd/s
 +18891 root       20    224M  1316     0 S  0.0  0.0  0:00.00 |  `- (sd-pam)
 +  409 root       20   0 81156  1236  1068 S  0.0  0.0  0:00.95 `- /usr/lib/postf
 +14487 postfix    20   0 83224  5088  4320 S  0.0  0.1  0:00.00 |  `- pickup -l -
 +  412 postfix    20   0 83388  1916  1648 S  0.0  0.0  0:00.30 |  `- qmgr -l -t
 +  308 root       20    350M 24556 19196 S  0.0  0.6  0:05.93 `- /usr/sbin/apac
 +30788 www-data   20    350M  6752  1384 S  0.0  0.2  0:00.00 |  `- /usr/sbin/a
 +30787 www-data   20    350M  6752  1384 S  0.0  0.2  0:00.00 |  `- /usr/sbin/a
 +30786 www-data   20    350M  6752  1384 S  0.0  0.2  0:00.00 |  `- /usr/sbin/a
 +30785 www-data   20    350M  6752  1384 S  0.0  0.2  0:00.00 |  `- /usr/sbin/a
 +30784 www-data   20    350M  6752  1384 S  0.0  0.2  0:00.00 |  `- /usr/sbin/a
 +  263 mysql      28    670M 38608  1668 S  0.0  0.9  1:55.94 `- /usr/sbin/mysq
 + 2808 mysql      20    670M 38608  1668 S  0.0  0.9  0:00.00 |  `- /usr/sbin/m
 +F1Help  F2Setup F3SearchF4FilterF5SortedF6CollapF7Nice -F8Nice +F9Kill  F10Quit
 +</code>
 +
 +==== Monitor memory/CPU ====
 +
 +A very simple way to follow the memory and CPU indicators :
 +
 +<code>
 +root# top -b -d 5 -p $(pidof voximald) | awk -v OFS="," '$1+0>0 {print strftime("%Y-%m-%d %H:%M:%S"),$1,$NF,$5,$6,$7,$9,$10; fflush() }' | tee datas.csv
 </code> </code>
  
Line 217: Line 272:
     <diag tag="1">VXIrec: Grammar trace </diag>     <diag tag="1">VXIrec: Grammar trace </diag>
 </DiagnosticMessages> </DiagnosticMessages>
 +</code>
 +
 +==== Set the right TimeZone ====
 +
 +Install the NTP package to synchronize your server to the world'stime.
 +
 +<code>
 +#timedatectl set-timezone America/New_York
 +</code>
 +
 +or, for french servers,
 +
 +<code>
 +#timedatectl set-timezone Europe/Paris
 </code> </code>
  • installation_guide/debug/start.txt
  • Last modified: 2024/02/19 16:10
  • by borja