Page 1 of 1

Slow Server performance !!

PostPosted: Fri Mar 23, 2007 12:53 am
by mohankumar
I have installed asterisk and vicidial, And it successfully throws calls .But the problem is the server is slow so that when the agent dispositions calls the call is still active and it drops after few seconds.Also all the agents are able to listen to the same call.

Even whwn the agent logins into the agent page he is getting the ring so late...

Please help me to solve the issue....

PostPosted: Fri Mar 23, 2007 12:00 pm
by enjay
Sounds like you have a couple problems.

A. the server load is so high that it is taking a while for the line to hangup.
B. Your agents are logging into the same conference (this typically happens when agents do not log out properly).

Please provide the following information:

a. asterisk version
b. system load details
c. vicidial version
d. what kind of lines? ZAP/SIP/IAX2?

@enjay

PostPosted: Sun Mar 25, 2007 11:59 pm
by mohankumar
a.My asterisk version is 1.2.14 the version in the scratch installation
b.for testing we used 10 clients.
c.System configuration : P4 3Ghz ,1 GB RAM.
d.astguiclient 2.0.2b2 version.
e.SIP

Works for two hours!!

PostPosted: Mon Mar 26, 2007 12:08 am
by mohankumar
Server works for two hours and then it slows down...We can see a Live call but it shows the Time out screen and asking us to disposition the call....

PostPosted: Tue Mar 27, 2007 5:35 am
by mflorell
What is the loadavg when this happens?

PostPosted: Thu Mar 29, 2007 5:20 am
by mohankumar
LoaAvg on the system is 26.49

These are the processes running

PostPosted: Thu Mar 29, 2007 5:35 am
by mohankumar
Should i stop any of these processes..

top - 15:58:54 up 2:57, 1 user, load average: 19.79, 21.89, 21.95
Tasks: 201 total, 4 running, 194 sleeping, 0 stopped, 3 zombie
Cpu(s): 21.0% us, 8.7% sy, 0.0% ni, 0.0% id, 70.3% wa, 0.0% hi, 0.0% si
Mem: 1035100k total, 971076k used, 64024k free, 7984k buffers
Swap: 2096472k total, 160k used, 2096312k free, 762880k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23385 root 18 0 4440 656 452 R 5.0 0.1 0:01.09 soxmix
23945 root 18 0 4848 656 452 R 4.7 0.1 0:01.01 soxmix
23895 root 18 0 4064 656 452 D 4.3 0.1 0:00.36 soxmix
23896 root 18 0 4544 656 452 D 4.0 0.1 0:00.35 soxmix
24183 root 18 0 3280 656 452 D 2.0 0.1 0:00.07 soxmix
1975 root 16 0 0 0 0 D 1.3 0.0 0:14.06 kjournald
2948 mysql 16 0 145m 27m 3864 S 1.0 2.7 3:05.93 mysqld
54 root 16 0 0 0 0 S 0.7 0.0 0:11.87 kswapd0
3403 root 16 0 2908 792 488 S 0.3 0.1 0:00.97 screen
13444 root 15 0 4984 2212 1312 S 0.3 0.2 0:00.71 AST_CRON_mix_re
1 root 16 0 3372 552 472 S 0.0 0.1 0:00.92 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
5 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
34 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
35 root 15 0 0 0 0 S 0.0 0.0 0:00.05 khubd
55 root 9 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
199 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
310 root 24 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
311 root 15 0 0 0 0 S 0.0 0.0 0:00.00 ahd_dv_0
313 root 19 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
314 root 15 0 0 0 0 S 0.0 0.0 0:00.00 ahd_dv_1
317 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/0
319 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
332 root 15 0 0 0 0 S 0.0 0.0 0:00.12 kjournald
1497 root 6 -10 2740 452 380 S 0.0 0.0 0:00.00 udevd
1834 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kauditd
1903 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kmirrord
1974 root 19 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
2577 root 15 0 2988 544 456 D 0.0 0.1 0:00.07 syslogd
2581 root 16 0 2340 384 316 S 0.0 0.0 0:00.00 klogd
2605 named 19 0 36988 2556 1696 S 0.0 0.2 0:00.00 named
2676 root 15 0 3064 724 620 S 0.0 0.1 0:00.00 rpc.statd
2702 root 16 0 4900 344 172 S 0.0 0.0 0:00.00 rpc.idmapd
2766 root 16 0 2268 508 300 S 0.0 0.0 0:00.00 smartd
2775 root 20 0 1620 436 368 S 0.0 0.0 0:00.00 acpid

PostPosted: Thu Mar 29, 2007 7:42 am
by mflorell
That's your problem, that lodavg is way too high, you need to get at least one more server to move some of that load off.

You can also switch your codec to Ulaw or use another machine to do transcoding for you.

PostPosted: Thu Mar 29, 2007 10:23 am
by eijal
And for timer what are you using?
ztdummy or any card?

PostPosted: Thu Mar 29, 2007 12:28 pm
by mohankumar
I am using ztdummy card....Also i found that sox
is taking more CPU usage...
Should i remove sox package ?

PostPosted: Thu Mar 29, 2007 2:08 pm
by mflorell
Are you recording ALLCALLS as well?

If so, you will want to modify your crontab settings to only run the mix_recordings script during off-hours.