High CPU utilization by .vicidial

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

High CPU utilization by .vicidial

Postby nkasoff » Tue May 15, 2012 12:52 pm

Using Vicidial for autodial and also Asterisk's regular pbx functions. About 8 phones right now, plus 15 lines on outbound Vicidial campaign. Everything is working perfectly, but high cpu utilization concerns me.

Vicidial:
VERSION: 2.4-309a
BUILD: 110430-1642

Asterisk:
1.4.39.1-vici

Output from top follows. Vicidial sits near 100% all the time.

top - 12:41:49 up 80 days, 21:55, 1 user, load average: 1.26, 1.38, 1.31
Tasks: 190 total, 2 running, 188 sleeping, 0 stopped, 0 zombie
Cpu0 : 1.7%us, 0.5%sy, 0.1%ni, 97.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 12.6%us, 3.3%sy, 0.4%ni, 83.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 2.1%us, 0.6%sy, 0.1%ni, 97.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 6.6%us, 2.1%sy, 0.5%ni, 90.6%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Cpu4 : 1.5%us, 0.4%sy, 0.1%ni, 98.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu5 : 13.0%us, 3.3%sy, 0.4%ni, 83.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu6 : 1.6%us, 0.5%sy, 0.1%ni, 97.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu7 : 13.3%us, 3.4%sy, 0.5%ni, 82.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 6232100k total, 2026276k used, 4205824k free, 172916k buffers
Swap: 1044216k total, 0k used, 1044216k free, 1010292k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31051 apache 25 0 5484 3396 1208 R 100.4 0.1 9709:27 .vicidial
19060 root 25 0 47516 18m 5784 S 3.3 0.3 41:43.61 asterisk
22860 mysql 15 0 144m 31m 5108 S 3.3 0.5 491:44.04 mysqld
19258 root 16 0 12488 7120 2772 S 2.2 0.1 32:07.88 AST_update.pl
19269 root 16 0 21440 15m 2672 S 1.6 0.3 15:56.22 AST_VDauto_dial
30744 root 15 0 2428 1068 788 R 1.1 0.0 0:00.03 top
3667 root 15 0 13664 8260 2832 S 0.5 0.1 1:50.36 FastAGI_log.pl
19262 root 15 0 10864 5388 2688 S 0.5 0.1 13:10.52 AST_manager_sen
19265 root 15 0 12352 6888 2744 S 0.5 0.1 0:49.40 AST_manager_lis
25020 root 16 0 13804 7140 1592 S 0.5 0.1 0:02.20 FastAGI_log.pl
nkasoff
 
Posts: 63
Joined: Sun Jun 29, 2008 11:23 am

Re: High CPU utilization by .vicidial

Postby DomeDan » Wed May 16, 2012 2:41 am

Post your installation method, if its a scratch install then link to the guide you followed
if its a vicibox redux then post the name of the ISO used and so on.

use htop (install it if you have to) and press F5 to get a nice view of what process is using all the cpu cycles.

(and please use [ code ]-tag when posting column-based data, its frustrating to read when the columns are not in line)
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: High CPU utilization by .vicidial

Postby nkasoff » Wed May 16, 2012 9:12 am

Installation method was goautodial-ce-2.1-final.iso.

Installed htop, pressed F5, got this:

Code: Select all
  1  [|                                                               0.6%]     5  [|||                                                             2.6%]
  2  [||                                                              1.3%]     6  [||                                                              1.3%]
  3  [|||                                                             2.6%]     7  [                                                                0.0%]
  4  [||||                                                            4.5%]     8  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]
  Mem[|||||||||||||||||||||||||                                 836/6086MB]     Tasks: 195, 116 thr; 3 running
  Swp[                                                            0/1019MB]     Load average: 1.34 1.44 1.34
                                                                                Uptime: 81 days, 18:18:51

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
    1 root       15   0  2160   640   548 S  0.0  0.0  0:42.07 init [3]
31880 root       19   0  6376  4484  1776 S  0.0  0.1  0:00.11 ââ /usr/bin/perl /usr/share/astguiclient/AST_send_action_child.pl --SYSLOG --PATHlogs=%2Fvar%2
31866 root       18   0  6376  4488  1776 S  0.0  0.1  0:00.12 ââ /usr/bin/perl /usr/share/astguiclient/AST_send_action_child.pl --SYSLOG --PATHlogs=%2Fvar%2
31864 root       18   0  6376  4444  1756 S  0.0  0.1  0:00.11 ââ /usr/bin/perl /usr/share/astguiclient/AST_send_action_child.pl --SYSLOG --PATHlogs=%2Fvar%2
31859 root       18   0  6376  4448  1756 S  0.0  0.1  0:00.11 ââ /usr/bin/perl /usr/share/astguiclient/AST_send_action_child.pl --SYSLOG --PATHlogs=%2Fvar%2
31051 apache     25   0  5484  3396  1208 R 100.  0.1     182h ââ vicidialweb
24970 root       15   0  5384  1108   568 S  0.0  0.0  0:16.34 ââ crond
31342 root       20   0  5968  1512   880 S  0.0  0.0  0:00.00 â  ââ crond
31346 root       16   0 10276  4768  2612 S  0.0  0.1  0:00.12 â     ââ /usr/bin/perl /usr/share/astguiclient/AST_manager_kill_hung_congested.pl
22813 root       18   0  4628  1216  1060 S  0.0  0.0  0:00.00 ââ /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --
22860 mysql      15   0  144M 32652  5108 S  1.0  0.5  8h29:01 â  ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var
31844 mysql      16   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31817 mysql      18   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31793 mysql      17   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31786 mysql      24   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31477 mysql      16   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31429 mysql      16   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31352 mysql      15   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31301 mysql      18   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
31283 mysql      16   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22871 mysql      20   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22870 mysql      15   0  144M 32652  5108 S  0.0  0.5  0:22.82 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22869 mysql      15   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22868 mysql      18   0  144M 32652  5108 S  0.0  0.5  0:00.47 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22867 mysql      18   0  144M 32652  5108 S  0.0  0.5  0:00.26 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22865 mysql      18   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22864 mysql      20   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22863 mysql      18   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
22862 mysql      20   0  144M 32652  5108 S  0.0  0.5  0:00.00 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
19293 mysql      15   0  144M 32652  5108 S  0.0  0.5  5:35.25 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
17045 mysql      16   0  144M 32652  5108 S  0.0  0.5  0:44.59 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
16145 mysql      16   0  144M 32652  5108 S  0.0  0.5  0:04.13 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
16143 mysql      15   0  144M 32652  5108 S  0.0  0.5  1:05.04 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
14112 mysql      15   0  144M 32652  5108 S  0.0  0.5  2:18.66 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
14106 mysql      16   0  144M 32652  5108 S  0.0  0.5  4:52.38 â     ââ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/
19256 root       15   0  2996   996   644 S  0.0  0.0  0:04.94 ââ /usr/bin/SCREEN -d -m -S ASTupdate /usr/share/astguiclient/AST_update.pl
19258 root       15   0 12488  7128  2772 S  1.0  0.1 40:43.61 â  ââ /usr/bin/perl /usr/share/astguiclient/AST_update.pl
19060 root       25   0 49064 19888  5784 S  5.0  0.3 59:24.88 ââ /usr/sbin/asterisk
31882 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.00 â  ââ /usr/sbin/asterisk
31881 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.00 â  ââ /usr/sbin/asterisk
31873 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.00 â  ââ /usr/sbin/asterisk
31872 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.00 â  ââ /usr/sbin/asterisk
31870 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.00 â  ââ /usr/sbin/asterisk
31869 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.00 â  ââ /usr/sbin/asterisk
31861 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.01 â  ââ /usr/sbin/asterisk
31860 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.00 â  ââ /usr/sbin/asterisk
31843 root       17   0 14036  6616  2736 S  0.0  0.1  0:00.17 â  ââ /usr/bin/perl /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi SURVEYCAMP-----LB
31837 root       15   0 49064 19888  5784 S  0.0  0.3  0:00.14 â  ââ /usr/sbin/asterisk
31815 root       17   0 14040  6620  2736 S  0.0  0.1  0:00.17 â  ââ /usr/bin/perl /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi SURVEYCAMP-----LB
F1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit
nkasoff
 
Posts: 63
Joined: Sun Jun 29, 2008 11:23 am

Re: High CPU utilization by .vicidial

Postby okli » Fri May 18, 2012 4:52 am

Code: Select all
PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
31051 apache     25   0  5484  3396  1208 R 100.  0.1     182h ââ vicidialweb

It maybe worth taking a look at apache's logs to find out what's going on with it.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Re: High CPU utilization by .vicidial

Postby DomeDan » Fri May 18, 2012 5:21 am

I haven't played around with goautodial and its probably part of that system that got some issue,
there was a thread about this a week ago, but with no solution: viewtopic.php?f=4&t=25148
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: No registered users and 127 guests