FreePBX System CPU load
-
This image is from the FreePBX dashboard indicating the last hour of CPU usage on my test server.
For the last hour, there has been zero phone call activity. From what I understand about load averages, this seems high for being idle. The Vultr instance for this $5 1 CPU / 1 GB of memory.
For those who administer FreePBX systems, do you believe this looks odd for idle time?
-
That's pretty high.
-
Run top and see what's using the most CPU.
-
I've watched
top
for the last five minutes. Asterisk is almost always on top (mongod and mysqld) and is usually at 1% cpu. I did see three spikes, 23%, 33%, and 50%, but the next refresh oftop
showed 1% after.
The load averages shown in the FreePBX GUI at 15:52 were 0.86 / 0.86 / 0.78. Perhaps the FreePBX Statistics are wrong. I'm going to restart the server, and see what happens.
-
@eddiejennings said in FreePBX System CPU load:
I've watched
top
for the last five minutes. Asterisk is almost always on top (mongod and mysqld) and is usually at 1% cpu. I did see three spikes, 23%, 33%, and 50%, but the next refresh oftop
showed 1% after.
The load averages shown in the FreePBX GUI at 15:52 were 0.86 / 0.86 / 0.78. Perhaps the FreePBX Statistics are wrong. I'm going to restart the server, and see what happens.
Your FreePBX graph was close to that.
-
@jaredbusch said in FreePBX System CPU load:
@eddiejennings said in FreePBX System CPU load:
I've watched
top
for the last five minutes. Asterisk is almost always on top (mongod and mysqld) and is usually at 1% cpu. I did see three spikes, 23%, 33%, and 50%, but the next refresh oftop
showed 1% after.
The load averages shown in the FreePBX GUI at 15:52 were 0.86 / 0.86 / 0.78. Perhaps the FreePBX Statistics are wrong. I'm going to restart the server, and see what happens.
Your FreePBX graph was close to that.
How? All of the 10 and 15 minute averages were above 0.5, where as that top screen is showing averages at 0.33 and 0.37.
-
Does your graph STILL show that? Do they match now? Are you running SAR?
-
@scottalanmiller said in FreePBX System CPU load:
Does your graph STILL show that? Do they match now? Are you running SAR?
FreePBX 14 has sar installed by default.
-
One moment. I'm a fool. I'm now running top on the right system. and the load averages seem correct between freepbx and top. httpd, mysqld, and asterisk are the top commands, with http around 6% CP. mysqld at 1%, and asterisk at 1%.
-
@eddiejennings
sar
-
@jaredbusch I assume the time column is in UTC. This is the last hour.
And the last hour of FreePBX's CPU stats
By "zero voice activity" I mean no calls. I do have a two endpoints connected to the PBX as well as two trunks.
-
Here is the last hour of CPU. Looks like restarting that server helped; though, it's a bit disappointing to not be able to pinpoint the exact problem.
-
Wasn't exactly a huge number, could have been just about anything for a small spike a few times.
-
@scottalanmiller said in FreePBX System CPU load:
Wasn't exactly a huge number, could have been just about anything for a small spike a few times.
Yeah. I was concerned because I wasn't expecting load to be greater that 0.5 when supposedly the system was idle.
I did a conference call test with it last night (the PBX itself handling the conference). Audio quality was terrible for me (softphone to PBX), but all of the participants, who called in via cell phones said the quality was fine. Not sure if these events are related. Perhaps it's just me getting anxious as I'm running out of preparation tasks before attempting to port numbers and actually deploying this thing.