Page 1 of 1
memory issue
Posted:
Fri Aug 11, 2006 4:33 am
by rudra_ach
Hi all,
I've installed vicidial in a Dell 1420 Server with 2GB Ram.It is used by 20 agents.After the 5 agents worked for sometime 3 hrs one one agent logged in to the dialer and I see the total memory consuption is more the 1.5Gb.
Here is the out put of the top program with one agent logged in and dialing.
Tasks: 116 total, 1 running, 115 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.8% us, 0.3% sy, 0.0% ni, 97.3% id, 0.0% wa, 0.2% hi, 0.3% si
Mem: 2069320k total, 1715860k used, 353460k free, 81272k buffers
Swap: 2031608k total, 0k used, 2031608k free, 1469888k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2286 root 16 0 31356 12m 4668 S 2 0.6 37:17.64 asterisk
2407 root 15 0 5496 3836 1808 S 0 0.2 0:23.73 AST_manager_sen
9031 root 16 0 8460 2908 1968 S 0 0.1 0:42.78 sshd
1 root 16 0 1992 668 572 S 0 0.0 0:01.65 init
2 root RT 0 0 0 0 S 0 0.0 0:00.04 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.02 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.06 migration/1
6 root 34 19 0 0 0 S 0 0.0 0:00.02 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.03 events/0
9 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/1
10 root 10 -5 0 0 0 S 0 0.0 0:00.00 khelper
11 root 11 -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.02 kblockd/0
15 root 10 -5 0 0 0 S 0 0.0 0:00.02 kblockd/1
16 root 11 -5 0 0 0 S 0 0.0 0:00.00 kacpid
Here is the out put of the free program
[root@localhost]# free
total used free shared buffers cached
Mem: 2069320 1719332 349988 0 81348 1473192
-/+ buffers/cache: 164792 1904528
Swap: 2031608 0 2031608
[root@localhost ~]#
Posted:
Fri Aug 11, 2006 5:56 am
by mflorell
There are memory leaks in Asterisk.
Asterisk/MySQL/Apache-PHP/VICIDIAL all use a lot of memory.
Is this causing a problem?
Posted:
Sun Aug 13, 2006 12:29 am
by rudra_ach
no till now though the number of agents are less there is no issues but I don't know what will be the situation after the number of agents grow up to 40.Can you suggest how much memory atleast required for 40 agents.
regards
rudra
Posted:
Sun Aug 13, 2006 5:56 am
by mflorell
If you want to have 40 agents you will need at least one more server.
Fisrt thing to do is move Apache and Mysql to another server, then you can start adding more Asterisk/VICIDIAL servers as you expand. We have over 100 seats in a single location using this method and there are many others with production setups that have multiple servers in their setups.
Posted:
Sun Aug 13, 2006 5:22 pm
by marvin
the max number of agents on a single machine that ive known so far is 23-25 , 20 is the average.
check out the FAQ HW recommendation from jon hood, it gives me a great overview.
http://astguiclient.sourceforge.net/faq.html#15151
Posted:
Thu Aug 24, 2006 2:48 am
by rudra_ach
rudra_ach wrote:no till now though the number of agents are less there is no issues but I don't know what will be the situation after the number of agents grow up to 40.Can you suggest how much memory atleast required for 40 agents.
regards
rudra
Hiii,
we have tested with 20 users in one server.They dialed for 3 hrs and I see the memory consuption significantly increased like only 100 MB left out of 2GB.Separating the servers is a good idea but I think the problem is something else.As when I restart the server everything like apache mysql astgui running and it takes 400 to 600MB memory.After dialing for few hours it starts giving problem.Is there any other way to resolv this problem.Right now I'm manually monitoring the server and restart it in intervals.There is also a chance of server crash for this reason.
regards
rudra
Posted:
Thu Aug 24, 2006 6:38 am
by mflorell
We have run with using maximum server RAM for years, if you have a good motherboard you will not crash when all of the memory is allocated. The applications will recycle their memory and you shouldn't even notice functionally that it is happening.
One other thing, I've noticed with the 2.0 VICIDIAL code tree that a lot of memory leaks associated with Net::MySQL went away(since we use DBI now) You may want to try installing the SVN 2-X code and see if that helps you.
Posted:
Wed Sep 20, 2006 11:54 pm
by rudra_ach
Hi,
as per your suggestion shifting of mysql and apache to anather server and add vicidial+asterisk into anather server,I've made a plan to do this.Please let me know weather it is write or wrong.like after installing vicidial and asterisk in one server shall I've to map the web root directory to asterisk + vicidial server through nfs.I'm not sure how to do it.Please advice.
regards
rudra
mflorell wrote:If you want to have 40 agents you will need at least one more server.
Fisrt thing to do is move Apache and Mysql to another server, then you can start adding more Asterisk/VICIDIAL servers as you expand. We have over 100 seats in a single location using this method and there are many others with production setups that have multiple servers in their setups.
Posted:
Thu Sep 21, 2006 4:11 am
by mflorell
Just install the files on both. Even though you won't be using the web files on your Asterisk server it won't hurt to have them installed somewhere. You can always just install them to /dev/null. If you are installing 2.0.1(which is what I recommend) you could always use the (perl install.pl --without-web) option for your Asterisk server, and the (perl install.pl --web-only) for your web server.
Posted:
Fri Sep 22, 2006 5:59 am
by rudra_ach
Hi,
It works great.I've tested it.But if I want to add another asterisk+vicidial server what I'll have to do becos in one server where I kept the mysql and httpd there while installing vicidial with webonly option I've given the server ip pointing to the one asterisk+vicidial server.What I'll do if I want to add anather one.
regards
rudra
mflorell wrote:Just install the files on both. Even though you won't be using the web files on your Asterisk server it won't hurt to have them installed somewhere. You can always just install them to /dev/null. If you are installing 2.0.1(which is what I recommend) you could always use the (perl install.pl --without-web) option for your Asterisk server, and the (perl install.pl --web-only) for your web server.
Posted:
Fri Sep 22, 2006 6:28 am
by mflorell
the server_ip setting on the web/db server is unimportant. install the second asterisk/VICIDIAL server as you did the first asterisk/VICIDIAL server.
Posted:
Fri Sep 22, 2006 11:08 am
by enjay
MySQL is a memory HOG so expect those kind of utils..
I have load avg on my Dual Xeon 3.4ghz with 4gb Ram of around 0.10
yet mysql still utilizes ~2gb of memory all the time. Its a hog, is this impairing your user experience?
-enjay