Page 1 of 1
cache memory consuption.
Posted:
Sat Nov 11, 2006 12:59 am
by rudra_ach
Hi,
upgarded my server with current svn release of vicidial.But even after that I see cache is consuming a lot of memory.Even after runing for 12 hrs without dialing it consumes 1GB of memory.Any idea or how you all are managing this.
regards
rudra
Posted:
Sun Nov 12, 2006 8:53 am
by mflorell
I am not seeing that problame on any of my servers running SVN. Do you have some "top -c" output for us?
Posted:
Sun Nov 12, 2006 11:58 pm
by rudra_ach
Hi,
This is the out put of top -c.My server is running since 2 days without dialing.
regards
rudra
top - 10:26:40 up 2 days, 9:26, 2 users, load average: 0.02, 0.02, 0.00
Tasks: 106 total, 1 running, 105 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.0% us, 0.7% sy, 0.0% ni, 98.3% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 1026524k total, 864788k used, 161736k free, 177536k buffers
Swap: 524280k total, 0k used, 524280k free, 501544k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2083 mysql 15 0 136m 21m 4536 S 0.3 2.1 6:50.24 /usr/libexec/mysqld
2582 root 15 0 9360 4752 2504 S 0.3 0.5 4:17.65 /usr/bin/perl /usr/
26436 root 16 0 2128 1020 796 R 0.3 0.1 0:00.02 top -c
1 root 15 0 1992 672 572 S 0.0 0.1 0:01.21 init [3]
2 root 34 19 0 0 0 S 0.0 0.0 0:00.01 [ksoftirqd/0]
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [watchdog/0]
4 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 [events/0]
5 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 [khelper]
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 [kthread]
8 root 10 -5 0 0 0 S 0.0 0.0 0:00.30 [kblockd/0]
9 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 [kacpid]
116 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 [khubd]
118 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 [kseriod]
178 root 20 0 0 0 0 S 0.0 0.0 0:00.00 [pdflush]
179 root 15 0 0 0 0 S 0.0 0.0 0:00.15 [pdflush]
180 root 16 0 0 0 0 S 0.0 0.0 0:00.00 [kswapd0]
Posted:
Mon Nov 13, 2006 2:32 am
by rudra_ach
Hi,
I chked my other fedora core server which is not running the vicidial.I found similar kind of problem out there.there the out put of top -c is bellow given.I think the issue is with fedora.
regards
rudra
top - 07:28:34 up 21:41, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 105 total, 1 running, 104 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 772364k total, 764020k used, 8344k free, 326288k buffers
Swap: 1572856k total, 0k used, 1572856k free, 202812k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18409 root 16 0 2128 1020 796 R 0 0.1 0:00.01 top -c
1 root 16 0 1988 668 572 S 0 0.1 0:01.32 init [5]
2 root RT 0 0 0 0 S 0 0.0 0:00.11 [migration/0]
3 root 34 19 0 0 0 S 0 0.0 0:00.00 [ksoftirqd/0]
4 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/0]
5 root RT 0 0 0 0 S 0 0.0 0:00.11 [migration/1]
6 root 34 19 0 0 0 S 0 0.0 0:00.00 [ksoftirqd/1]
7 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/1]
8 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/0]
9 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/1]
10 root 11 -5 0 0 0 S 0 0.0 0:00.00 [khelper]
11 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kthread]
14 root 10 -5 0 0 0 S 0 0.0 0:00.03 [kblockd/0]
15 root 10 -5 0 0 0 S 0 0.0 0:00.01 [kblockd/1]
16 root 14 -5 0 0 0 S 0 0.0 0:00.00 [kacpid]
88 root 10 -5 0 0 0 S 0 0.0 0:00.00 [khubd]
143 root 20 0 0 0 0 S 0 0.0 0:00.00 [pdflush]
Posted:
Mon Nov 13, 2006 7:13 am
by mflorell
Any specific reason you are using Fedora?
Which Fedora version?
Do you upgrade it regularly?
rc scripts for zaptel
Posted:
Thu Nov 16, 2006 5:27 am
by rudra_ach
Hi,
I'm trying to install asterisk in slackware.But after installing zaptel I stucked up.There is no rc script available for zaptel for slaware.what ever is available for system V like os like redhat can be started directly from init.d directory.Please suggest how to start the zaptel in slackware.
regards
rudra
Re: rc scripts for zaptel
Posted:
Thu Nov 16, 2006 5:39 am
by rudra_ach
These are the errors I'm getting while dialing through iax trunk
Nov 16 16:08:32 WARNING[3472]: res_agi.c:210 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
== Spawn extension (default, 3000004001, 1) exited non-zero on 'IAX2/101-1'
-- Executing DeadAGI("IAX2/101-1", "agi://127.0.0.1:4577/call_log") in new stack
Nov 16 16:08:32 WARNING[3472]: res_agi.c:210 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
== Spawn extension (default, h, 1) exited non-zero on 'IAX2/101-1'
-- Hungup 'IAX2/101-1'
Posted:
Thu Nov 16, 2006 6:00 am
by gerski
- Code: Select all
I'm trying to install asterisk in slackware.But after installing zaptel I stucked up.There is no rc script available for zaptel for slaware.what ever is available for system V like os like redhat can be started directly from init.d directory.Please suggest how to start the zaptel in slackware.
do you mean like ztcfg -vvvvvvvvvvvv, this is the way to start zaptel before loading asterisk
- Code: Select all
These are the errors I'm getting while dialing through iax trunk
Nov 16 16:08:32 WARNING[3472]: res_agi.c:210 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
== Spawn extension (default, 3000004001, 1) exited non-zero on 'IAX2/101-1'
-- Executing DeadAGI("IAX2/101-1", "agi://127.0.0.1:4577/call_log") in new stack
Nov 16 16:08:32 WARNING[3472]: res_agi.c:210 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
== Spawn extension (default, h, 1) exited non-zero on 'IAX2/101-1'
-- Hungup 'IAX2/101-1'
make sure you put the correct ip, it is reading loopback ip.
Posted:
Thu Nov 16, 2006 6:40 am
by mflorell
If you were to read the SCRATCH_INSTALL it would have told you how to load the zaptel drivers and start ztcfg in the /etc/rc.d/rc.local file
As for the FastAGI issue, make sure you have the ADMIN_keepalive_ALL.pl script in your crontab and that your /etc/astguiclient.conf file is configured properly and that your manager.conf is configured properly.
Posted:
Fri Nov 17, 2006 4:17 am
by rudra_ach
Hi,
bellow my configuration file
root@dialer:/etc# cat astguiclient.conf
# astguiclient.conf - configuration elements for the astguiclient package
# this is the astguiclient configuration file
# all comments will be lost if you run install.pl again
# Paths used by astGUIclient
PATHhome => /usr/share/astguiclient
PATHlogs => /var/log/astguiclient
PATHagi => /var/lib/asterisk/agi-bin
PATHweb => /usr/local/apache2/htdocs
PATHsounds => /var/lib/asterisk/sounds
PATHmonitor => /var/spool/asterisk/monitor
# The IP address of this machine
VARserver_ip => 192.168.1.38
# Database connection information
VARDB_server => localhost
VARDB_database => asterisk
VARDB_user => cron
VARDB_pass => 1234
VARDB_port => 3306
# Alpha-Numeric list of the astGUIclient processes to be kept running
# (value should be listing of characters with no spaces: 123456)
# X - NO KEEPALIVE PROCESSES (use only if you want none to be keepalive)
# 1 - AST_update
# 2 - AST_send_listen
# 3 - AST_VDauto_dial
# 4 - AST_VDremote_agents
# 5 - AST_VDadapt (If multi-server system, this must only be on one server)
# 6 - FastAGI_log
VARactive_keepalives => 123456
# Settings for FastAGI logging server
VARfastagi_log_min_servers => 3
VARfastagi_log_max_servers => 16
VARfastagi_log_min_spare_servers => 2
VARfastagi_log_max_spare_servers => 8
VARfastagi_log_max_requests => 1000
VARfastagi_log_checkfordead => 30
VARfastagi_log_checkforwait => 60
You have new mail in /var/mail/root
root@dialer:/etc#
bellow my crontab entries
### recording mixing for Asterisk run every 5 minutes
1,6,11,16,21,26,31,36,41,46,51,56 * * * 1,2,3,4,5,6 /usr/share/astguiclient/AST_CRON_mix_recordings_BASIC.pl
### keepalive script for Asterisk updaters
##* * * * * /usr/share/astguiclient/ADMIN_keepalive_AST_update.pl
### keepalive script for Asterisk manager queue system
##* * * * * /usr/share/astguiclient/ADMIN_keepalive_AST_send_listen.pl
### keepalive script for Asterisk VICIDIAL autodial system
##* * * * * /usr/share/astguiclient/ADMIN_keepalive_AST_VDautodial.pl
### keepalive script for VICIDIAL remote agents
##* * * * * /usr/share/astguiclient/ADMIN_keepalive_AST_VDremote_agents.pl
### keepalive script for VICIDIAL predictive script
##* * * * * /usr/share/astguiclient/ADMIN_keepalive_AST_VDadapt.pl
### keepalive script for astguiclient processes
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl
stii not able to figure out the problem
In my old server when I issue telnet localhost 4577 I found something is listening on this port but in my current server it saying
root@dialer:/etc# telnet localhost 4577
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
root@dialer:/etc#
Not able to figure out what could be the problem.
I'm currently latest svn version of vicidial.
regards
rudra
Posted:
Fri Nov 17, 2006 5:47 am
by rudra_ach
Hi,
solved the problem. I’ve not installed the Net-Server perl module hence this problem was coming. Now it is working fine.
Thankx for the hint, and sorry for the inconvenience.
regards
rudra
Posted:
Fri Jan 12, 2007 5:31 am
by radium.fu
Hi,
I got same problem on my test server.
Server OS: CentOS 4.4 over vmware virtual Server GSX 3.2
all installration follow SCRATCH_INSTALL.txt (lastest version), with different version MySQL (mysql-4.1.20-1.RHEL4.1)
astguiclient & vicidial from astguiclient_2.0.2.zip
- Code: Select all
=========================================================================
Connected to Asterisk 1.2.14 currently running on CentOSClear (pid = 3714)
Verbosity is at least 7
CentOSClear*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
spa2001/spa2001 10.16.190.66 D 5061 OK (7 ms)
spa2000/spa2000 10.16.190.66 D 5060 OK (11 ms)
gs102/gs102 10.16.190.64 D 5060 OK (4 ms)
101/101 10.16.190.18 D 5060 OK (4 ms)
4 sip peers [4 online , 0 offline]
-- Executing Dial("SIP/gs102-09429058", "sip/spa2000|5|to") in new stack
-- Called spa2000
-- SIP/spa2000-0942f1b0 is ringing
== Spawn extension (default, 2000, 1) exited non-zero on 'SIP/gs102-09429058'
-- Executing DeadAGI("SIP/gs102-09429058", "agi://127.0.0.1:4577/call_log") in new stack
Jan 12 17:58:00 WARNING[30004]: res_agi.c:210 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
== Spawn extension (default, h, 1) exited non-zero on 'SIP/gs102-09429058'
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
astguiclint.conf
- Code: Select all
PATHhome => /usr/share/astguiclient
PATHlogs => /var/log/astguiclient
PATHagi => /var/lib/asterisk/agi-bin
PATHweb => /usr/local/apache2/htdocs
PATHsounds => /var/lib/asterisk/sounds
PATHmonitor => /var/spool/asterisk/monitor
VARserver_ip => 10.16.190.67
VARDB_server => 127.0.0.1
VARDB_database => asterisk
VARDB_user => cron
VARDB_pass => 1234
VARDB_port => 3306
VARactive_keepalives => 2
VARfastagi_log_min_servers => 3
VARfastagi_log_max_servers => 16
VARfastagi_log_min_spare_servers => 2
VARfastagi_log_max_spare_servers => 8
VARfastagi_log_max_requests => 1000
VARfastagi_log_checkfordead => 30
VARfastagi_log_checkforwait => 60
I check my crontab, it have
- Code: Select all
[root@CentOSClear etc]# crontab -l
### recording mixing for Asterisk run every 5 minutes
1,6,11,16,21,26,31,36,41,46,51,56 * * * 1,2,3,4,5,6 /usr/share/astguiclient/AST_CRON_mix_recordings_BASIC.pl
### keepalive script for astguiclient processes
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl
### kill Hangup script for Asterisk updaters
* * * * * /usr/share/astguiclient/AST_manager_kill_hung_congested.pl
### updater for voicemail
* * * * * /usr/share/astguiclient/AST_vm_update.pl
### updater for conference validator
* * * * * /usr/share/astguiclient/AST_conf_update.pl
### flush queue DB table every hour for entries older than 1 hour
11 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl -q
### fix the vicidial_agent_log once every hour
33 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl
### updater for VICIDIAL hopper
* * * * * /usr/share/astguiclient/AST_VDhopper.pl -q
### adjust the GMT offset for the leads in the vicidial_list table
1 1 * * * /usr/share/astguiclient/ADMIN_adjust_GMTnow_on_leads.pl --debug
### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl
### optimize the database tables within the asterisk database
3 1 * * * /usr/share/astguiclient/AST_DB_optimize.pl
## adjust time on the server with ntp
30 * * * * /usr/local/bin/ntpdate -u 18.145.0.30 2>/dev/null 1>&2
### VICIDIAL agent time log weekly summary report generation
2 0 * * 0 /usr/share/astguiclient/AST_agent_week.pl
manager.conf
- Code: Select all
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[cron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
[updatecron]
secret = 1234
read = command
write = command
[listencron]
secret = 1234
read = system,call,log,verbose,command,agent,user
write = command
[sendcron]
secret = 1234
read = command
write = system,call,log,verbose,command,agent,user
And CPAN modules
- Code: Select all
cpan[10]> install DBI
DBI is up to date (1.53).
cpan[11]> install Net::Telnet
Net::Telnet is up to date (3.03).
cpan[12]> install Time::HiRes
Time::HiRes is up to date (1.9704).
cpan[13]> install Net::Server
Net::Server is up to date (0.94).
telnet testing
- Code: Select all
[root@CentOSClear etc]# telnet 127.0.0.1 4577
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@CentOSClear etc]# telnet 127.0.0.1 5038
Trying 127.0.0.1...
Connected to CentOSClear (127.0.0.1).
Escape character is '^]'.
Asterisk Call Manager/1.0
Can somebody give me advice? Thank you. I try 2 times but got same error.
Posted:
Fri Jan 12, 2007 6:30 am
by mflorell
post results of "screen -r"
Posted:
Fri Jan 12, 2007 8:26 pm
by radium.fu
I'm not sure what you want me post, just cut some of them. If you want more let me know. Thank you reply.
By the way, I'm not sure if need to pay attation that the server is an virtual server running over VMware, so it no any Digium device. no that 8kHz clock signal. Maybe that's why I heard IVR plackback sound hear is not normal slowly like "The -- per-son--dial--....".
- Code: Select all
[root@CentOSClear ~]# screen -r
There are several suitable screens on:
3135.asterisk (Detached)
3754.ASTsend (Detached)
3757.ASTlisten (Detached)
5905.pts-4.CentOSClear (Attached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.
[root@CentOSClear ~]#
[root@CentOSClear ~]# screen -r 3135.asterisk
- Code: Select all
== Registered application 'DISA'
[app_queue.so] => (True Call Queueing)
== Registered application 'Queue'
== Manager registered action Queues
== Manager registered action QueueStatus
== Manager registered action QueueAdd
== Manager registered action QueueRemove
== Manager registered action QueuePause
== Registered application 'AddQueueMember'
== Registered application 'RemoveQueueMember'
== Registered application 'PauseQueueMember'
== Registered application 'UnpauseQueueMember'
== Registered custom function QUEUEAGENTCOUNT
== Parsing '/etc/asterisk/queues.conf': Found
[format_wav_gsm.so] => (Microsoft WAV format (Proprietary GSM))
== Registered file format wav49, extension(s) WAV|wav49
[codec_adpcm.so] => (Adaptive Differential PCM Coder/Decoder)
== Parsing '/etc/asterisk/codecs.conf': Found
-- codec_adpcm: using generic PLC
== Registered translator 'adpcmtolin' from format adpcm to slin, cost 1
== Registered translator 'lintoadpcm' from format slin to adpcm, cost 1
[app_mixmonitor.so] => (Mixed Audio Monitoring Application)
== Registered application 'MixMonitor'
[app_cut.so] => (Cut out information from a string)
== Registered custom function CUT
== Registered custom function SORT
== Registered application 'Sort'
== Registered application 'Cut'
[format_wav.so] => (Microsoft WAV format (8000hz Signed Linear))
== Registered file format wav, extension(s) wav
[app_echo.so] => (Simple Echo Application)
== Registered application 'Echo'
[app_macro.so] => (Extension Macros)
== Registered application 'MacroExit'
== Registered application 'MacroIf'
== Registered application 'Macro'
[app_system.so] => (Generic System() application)
== Registered application 'TrySystem'
== Registered application 'System'
[app_lookupblacklist.so] => (Look up Caller*ID name/number from blacklist database)
== Registered application 'LookupBlacklist'
[app_forkcdr.so] => (Fork The CDR into 2 separate entities.)
== Registered application 'ForkCDR'
Asterisk Ready.
*CLI> -- Registered SIP '101' at 10.16.190.18 port 5060 expires 3600
-- Saved useragent "Grandstream HT286 1.0.7.19" for peer 101
-- Registered SIP 'gs102' at 10.16.190.64 port 5060 expires 3600
-- Saved useragent "Grandstream HT286 1.0.7.19" for peer gs102
-- Saved useragent "Sipura/SPA2002-3.1.2(a)" for peer spa2000
-- Registered SIP 'spa2001' at 10.16.190.66 port 5061 expires 3600
-- Saved useragent "Sipura/SPA2002-3.1.2(a)" for peer spa2001
Jan 13 09:05:02 NOTICE[6436]: chan_sip.c:11704 sip_poke_noanswer: Peer 'spa2001' is now UNREACHABLE! Last qualify: 0
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'listencron' logged on from 127.0.0.1
Jan 13 09:05:26 NOTICE[6436]: chan_sip.c:9989 handle_response_peerpoke: Peer 'spa2001' is now REACHABLE! (21ms / 1000ms)
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
[root@CentOSClear ~]# screen -r 3754.ASTsend
- Code: Select all
checking to see if listener is dead ||1|
checking to see if listener is dead ||1|
checking to see if listener is dead ||1|
...
checking to see if listener is dead ||1|
checking to see if listener is dead ||1|
checking to see if listener is dead ||1|
loop counter: |860714|
[root@CentOSClear ~]# screen -r 3757.ASTlisten
- Code: Select all
|UPDATE vicidial_manager set status='UPDATED', channel='SIP/spa2000-0881e170', uniqueid = '1168652593.22' where server_ip = '10.16.190.67' and callerid = 'gs102'|
|0E0 RINGINGs updated|
input buffer: 432 lines: 2 partial: 0
|Event: Hangup
Privilege: call,all
Channel: SIP/spa2000-0881e170
Uniqueid: 1168652593.22
Cause: 16
Cause-txt: Normal Clearing
Event: Newexten
Privilege: call,all
Channel: SIP/gs102-08818d68
Context: default
Extension: h
Priority: 1
Application: DeadAGI
AppData: agi://127.0.0.1:4577/call_log
Uniqueid: 1168652593.21
Event: Hangup
Privilege: call,all
Channel: SIP/gs102-08818d68
Uniqueid: 1168652593.21
Cause: 0
Cause-txt: Unknown
|
|UPDATE vicidial_manager set status='DEAD', channel='SIP/spa2000-0881e170' where server_ip = '10.16.190.67' and uniqueid = '1168652593.22' and callerid NOT LIKE "DCagcW%";|
|0E0 HANGUPS updated|
|UPDATE vicidial_manager set status='DEAD', channel='SIP/gs102-08818d68' where server_ip = '10.16.190.67' and uniqueid = '1168652593.21' and callerid NOT LIKE "DCagcW%";|
|0E0 HANGUPS updated|
input lines: 2|863550|50|
+++++++++++++++++++++++++++++++sending keepalive transmit line 863550|2007-01-13 9:43:19|0000-00-00 00:00:00|
Posted:
Sat Jan 13, 2007 7:13 am
by mflorell
looks like several of your screens are not running. What do you have for the keepalive value in your /etc/astguiclient.conf file?
Posted:
Tue Jan 16, 2007 3:49 am
by radium.fu
Oh right, thank you. I know my mistake.
Currently is 2 - AST_send_listen
Should select 123456. it's work now(no that error message.).
Thank you reply.