Page 1 of 1
Load Averages 100%!!
Posted:
Wed Feb 13, 2013 12:24 pm
by legin
Hi everyone, as the title says, my system has Load Averages in 100% what can I do to free a little this??? Also the Apache service, MySQL service and Asterisk service just stop suddenly... Can you help me please? I don't know what to do... Thanx!!!
Kernel Version 2.6.18-238.9.1.el5.goPAE (SMP)
Distro Name GoAutoDial CE 2.1
Model Intel(R) Pentium(R) 4 CPU 3.00GHz
CPU Speed 3 GHz
Cache Size 1024.00 KB
Ram: 3 GB
Re: Load Averages 100%!!
Posted:
Wed Feb 13, 2013 12:30 pm
by williamconley
Is this a recent development in a long running machine or is this what it has done since you began?
how many agents? How many calls in progress?
You may be experiencing that thing they call "overload" from having a single processor system when you need more.
Is this always the case, or does it happen only after XX agents log in? Or at a certain time of day?
Does it cause any symptoms (other than the 100%, do agents lose calls? Poor call quality? calls routing incorrectly?).
Please remember to Always post your information, here is my standard Newbie Suggestion list:
when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.
this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)
You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system. If your installation is "Hosted" list the site name of the host.
If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.
Similar to This:
Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600
Re: Load Averages 100%!!
Posted:
Wed Feb 13, 2013 12:55 pm
by legin
This happened a week ago, before that it was everything ok, we have 20 agents logged in, 10 in one campaign and 10 in another campaign, but all of them logged in at the same time. We have 4 calls in progress
This happens always. Some agents lose calls, other cases and error popups it says something about synchronization. I think also that Load Averages going to 100% makes my MySQL service to stop
GoAutoDial CE 2.1 | Asterisk 1.4.39.1-vici | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel(R) Pentium(R) 4 CPU 3.00GHz
Re: Load Averages 100%!!
Posted:
Wed Feb 13, 2013 1:10 pm
by williamconley
If you have 20 agents logged in, I will assume your statement of 4 calls is a miscommunication of some sort. If you are in autodial mode, the system is generating calls for all available agents. Those count. Especially if your room manager changed the dial ratio from 2.5 to 10 "a week ago". The total of all calls (agents, live prospects, calls ringing ... ) is what I was looking for.
It is also possible other functions are causing problems. You can use htop to see who the hog is. But if you have a single processor P4 @ 3.0 ghz, you are probably just experiencing an overload. Usually a Core2Quad at 2.3+ Ghz (ie: 4 processors) will handle 25 agents. If you have 20 agents on 1 processor ... it seems likely you are overloading.
But your system may be bogging down for other reasons as well. For instance: Have you backed up your DB to clear the DB binary logs? Have you archived your _log tables with the script in crontab for that purpose? Large log files (binary logs in mysql or log tables in the asterisk database) can slow down the system. Once "slow" has occurred, overload generally follows as the system fights to catch up (unsuccessfully). Especially in single processor systems.
NOTE: Always post your Vicidial Version with Build!
Re: Load Averages 100%!!
Posted:
Thu Feb 14, 2013 7:44 am
by legin
Hi... I just realize that the Load Averages reach to 100% when 2 agents login to the agent screen... Also yesterday I had to restore the recording_log table because it was corrupted, I do not know if this has anything to do with it
Re: Load Averages 100%!!
Posted:
Thu Feb 14, 2013 9:07 am
by williamconley
is your hard drive full?
why did your recording_log table corrupt? is it huge?
Re: Load Averages 100%!!
Posted:
Thu Feb 14, 2013 9:08 am
by legin
Re: Load Averages 100%!!
Posted:
Thu Feb 14, 2013 9:14 am
by legin
my hard drive was almost full, I deleted the recordings not all of them but the most of them. The table was huge indeed, that's why I delete every 2 weeks the old entries
Re: Load Averages 100%!!
Posted:
Thu Feb 14, 2013 9:27 am
by williamconley
table almost full can cause mysql to "stress" when trying to write it. also, binary logs piling up because you never back up mysql can stress the system. obviously a full HD can stress it as well. and since you have a single processor ... it has to do all the work, no shunting.
Re: Load Averages 100%!!
Posted:
Thu Feb 14, 2013 10:53 am
by legin
I am thinking on buy a new proccessor, a Core2Quad it will solve my problem?
Re: Load Averages 100%!!
Posted:
Thu Feb 14, 2013 11:17 am
by williamconley
that requires psychic powers. if your problem was a full HD, no. if your problem was a huge log file, maybe (for a little while), but ultimately that log file will still overburden the drive controller and i/o will backup and it will still fail even with a more powerful cpu. if it's your binary logs from the non-backed-up mysql ... same as huge log file.
but if it is that your single processor cannot handle the load, four may help quite a bit.
as a rule, though, you may find that it is more efficient to build a whole new machine. I do not know of very many P4 sockets that can hold a Core2Quad (but there are some, so you may get lucky
)
Re: Load Averages 100%!!
Posted:
Tue Feb 19, 2013 12:45 am
by gardo
You're system is way overloaded. Based from the screenshot, your "Load Average" is 9.70 (which really translates to 970%). Getting a more powerful server (Quad cores with 4 GB of RAM at the least) will definitely help. Add a little bit of optimization (using tmpfs or RAM drives for recordings), g711 or ulaw for your sofphone codecs and etc will help stabilize your day to day operations.
legin wrote: