HIGH CPU

All installation and configuration problems and questions

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

HIGH CPU

Postby richardroi » Mon Oct 20, 2014 11:10 am

Hello Support,

I've noticed that suddenly the cpu consumption is now reaching 100+%, sometimes it stayed there for 3 - 5 seconds.
I have 8 cores cpu, 8gb ram
Image
When it reached 100+, lines are affected (still monitoring), but the load average is still minimal.
What is that process?
Thank you.
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: HIGH CPU

Postby richardroi » Mon Oct 20, 2014 1:33 pm

Update!
I noticed that when the call comes in and created the meetme, that is when the cpu goes to 100+%! Affecting the line!
Please help!
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: HIGH CPU

Postby Acidshock » Mon Oct 20, 2014 9:22 pm

How many agents and how many calls coming in at the same time? Also check your max calls per second under the server. 100+ lines on a single server is really pushing the limit of the box.

Just an FYI the most CPU use comes from building and tearing down the call.
VERSION: 2.14-698a | BUILD: 190207-2301 | Asterisk:13.24.1-vici | Vicibox 8.1.2
Acidshock
 
Posts: 430
Joined: Wed Mar 03, 2010 3:19 pm

Re: HIGH CPU

Postby richardroi » Tue Oct 21, 2014 10:23 am

Restarted the server, back to normal. But i'm still digging why/what happened!
Thank you. Will keep the forum posted.
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: HIGH CPU

Postby geoff3dmg » Wed Oct 22, 2014 3:07 am

Did you have any stuck channels perhaps?
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: HIGH CPU

Postby richardroi » Wed Oct 22, 2014 6:51 am

Stuck channels? I believe if it is red, kernel is consuming the cpu usage. It is supposed to be green on htop for normal consumption, right?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: HIGH CPU

Postby geoff3dmg » Wed Oct 22, 2014 10:23 am

I meant 'stuck channels' as in channels in asterisk that haven't hung up. Yes red is kernel in the htop CPU display. Another thought that occurred to me, how is your firewall setup? Do you allow SIP connections from anywhere on the Internet? If so it might be a brute force attempt on your SIP accounts. That can cause a lot of CPU issues.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: HIGH CPU

Postby richardroi » Thu Oct 23, 2014 9:32 am

Only allowed local network, no access outside.

'stuck channels' as in channels in asterisk that haven't hung up" how can I check?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: HIGH CPU

Postby geoff3dmg » Thu Oct 23, 2014 9:48 am

Ah so you are using an E1/T1 card?

As for looking at your channels (this is a ViciBox v5 telephony server, also works fine with v6. I am unsure if this command is correct for v3 etc).
Code: Select all
asterisk -rx'core show channels'

shows you everything. I usually have about 100 channels open at any one time with 20 agents/server. I sometimes just look at SIP too, as I'm using VoIP.
Code: Select all
asterisk -rx'sip show channels'
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK


Return to Support

Who is online

Users browsing this forum: No registered users and 136 guests