Project

General

Profile

High CPU load

Added by Steve Turner 2 months ago

Server is experiencing High Load even at idle, with no agents and no calls, when Dashboard is open (sometimes 600% on Dashboard and LoadAvg 5 in HTOP). If I close the Dashboard, or even switch to another page the load drops immediately.

What I have found in /var/log/php-fpm/www-error.log is 14mb of NOTICE and WARNINGS. This is 14mb in less than 12hrs of this server being installed.

[06-Jul-2019 00:02:22 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php on line 42
[06-Jul-2019 00:02:22 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[06-Jul-2019 00:02:30 America/New_York] PHP Notice: Undefined variable: campaignFilters in /var/www/html/goAPIv2/goDashboard/goGetRealtimeAgentsMonitoring.php on line 175
[06-Jul-2019 00:02:30 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php on line 42
[06-Jul-2019 00:02:30 America/New_York] PHP Notice: Undefined variable: campaignFilters in /var/www/html/goAPIv2/goDashboard/goGetRealtimeAgentsMonitoring.php on line 175
[06-Jul-2019 00:02:30 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[06-Jul-2019 00:02:43 America/New_York] PHP Notice: Undefined variable: campaignFilters in /var/www/html/goAPIv2/goDashboard/goGetRealtimeAgentsMonitoring.php on line 175
[06-Jul-2019 00:02:43 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[06-Jul-2019 00:02:46 America/New_York] PHP Notice: Undefined variable: campaignFilters in /var/www/html/goAPIv2/goDashboard/goGetRealtimeAgentsMonitoring.php on line 175
[06-Jul-2019 00:02:46 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php on line 42
[06-Jul-2019 00:02:47 America/New_York] PHP Notice: Undefined variable: campaignFilters in /var/www/html/goAPIv2/goDashboard/goGetRealtimeAgentsMonitoring.php on line 175
[06-Jul-2019 00:02:47 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[06-Jul-2019 00:02:49 America/New_York] PHP Notice: Undefined variable: campaignFilters in /var/www/html/goAPIv2/goDashboard/goGetRealtimeAgentsMonitoring.php on line 175
[06-Jul-2019 00:02:49 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31


Replies (16)

RE: High CPU load - Added by Wittie Manansala 2 months ago

Hi,

Try to update your server by following the steps posted here https://goautodial.org/projects/goautodialce/wiki/HOWTO_Update_latest_version_via_Github

Thanks

RE: High CPU load - Added by Steve Turner 2 months ago

made the update

[root@dialin goAPIv2]# git pull
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/goautodial/goAPIv2
79d97cd..3213b52 master -> origin/master
Updating 79d97cd..3213b52
Fast-forward
goDashboard/goGetRealtimeAgentsMonitoring.php | 1
1 file changed, 1 insertion(
)

new error:
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined index: log_ip in /var/www/html/goAPIv2/goDashboard/goGetTotalDroppedCalls.php on line 29
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined variable: action in /var/www/html/goAPIv2/goAPI.php on line 128
[08-Jul-2019 17:13:41 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined index: log_ip in /var/www/html/goAPIv2/goDashboard/goGetIncomingQueue.php on line 29
[08-Jul-2019 17:13:42 America/New_York] Module "GOautodial Agent Dialer" initializing...
[08-Jul-2019 17:13:43 America/New_York] PHP Notice: Undefined variable: VARBRINGOWNVOIP in /var/www/html/goAPIv2/goPackages/goGetPackage.php on line 55
[08-Jul-2019 17:13:43 America/New_York] PHP Notice: Undefined variable: VARPACKAGETYPE in /var/www/html/goAPIv2/goPackages/goGetPackage.php on line 55
[08-Jul-2019 17:13:43 America/New_York] PHP Notice: Undefined index: log_ip in /var/www/html/goAPIv2/goDashboard/goGetDroppedPercentage.php on line 29
[08-Jul-2019 17:13:52 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php on line 42
[08-Jul-2019 17:13:52 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:13:53 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:13:54 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:13:57 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:14:00 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:14:04 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php on line 42
[08-Jul-2019 17:14:04 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31

RE: High CPU load - Added by Steve Turner 2 months ago

After reboot, within 10min CPU at 550%

RE: High CPU load - Added by Steve Turner 2 months ago

Steve Turner wrote:

After reboot, within 10min CPU at 550%

and these errors in /var/log/php-fpm/error.log
[08-Jul-2019 17:06:49] NOTICE: Terminating ...
[08-Jul-2019 17:06:49] NOTICE: exiting, bye-bye!
[08-Jul-2019 17:07:13] NOTICE: fpm is running, pid 1183
[08-Jul-2019 17:07:13] NOTICE: ready to handle connections
[08-Jul-2019 17:07:13] NOTICE: systemd monitor interval set to 10000ms
[08-Jul-2019 17:12:52] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 4 idle, and 8 total children
[08-Jul-2019 17:13:07] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 3 idle, and 14 total children

RE: High CPU load - Added by Wittie Manansala 2 months ago

Hi Steve,

For below warning no need to worry on that. Our Dev Team will fix on the next updates.
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined index: log_ip in /var/www/html/goAPIv2/goDashboard/goGetTotalDroppedCalls.php on line 29
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined variable: action in /var/www/html/goAPIv2/goAPI.php on line 128
[08-Jul-2019 17:13:41 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined index: log_ip in /var/www/html/goAPIv2/goDashboard/goGetIncomingQueue.php on line 29

And for this below error hope this link may help https://stackoverflow.com/questions/25097179/warning-pool-www-seems-busy-you-may-need-to-increase-pm-start-servers-or-pm

[08-Jul-2019 17:12:52] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 4 idle, and 8 total children

I also recommend this server specs:
Seats 10-25:
1 server
Quad core processor
8 GB RAM
512 GB SSD

Thanks

RE: High CPU load - Added by Steve Turner 2 months ago

Wittie Manansala wrote:

Hi Steve,

For below warning no need to worry on that. Our Dev Team will fix on the next updates.
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined index: log_ip in /var/www/html/goAPIv2/goDashboard/goGetTotalDroppedCalls.php on line 29
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined variable: action in /var/www/html/goAPIv2/goAPI.php on line 128
[08-Jul-2019 17:13:41 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[08-Jul-2019 17:13:41 America/New_York] PHP Notice: Undefined index: log_ip in /var/www/html/goAPIv2/goDashboard/goGetIncomingQueue.php on line 29

And for this below error hope this link may help https://stackoverflow.com/questions/25097179/warning-pool-www-seems-busy-you-may-need-to-increase-pm-start-servers-or-pm

[08-Jul-2019 17:12:52] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 4 idle, and 8 total children

I also recommend this server specs:
Seats 10-25:
1 server
Quad core processor
8 GB RAM
512 GB SSD

Thanks

but why the high server load of 550% with no agents and no calls, the server is sitting idle (not even in production environment) with only the Dashboard open. When dashboard is closed, the load drops to 10% or less.

RE: High CPU load - Added by Steve Turner 2 months ago

as you can see, with no agents and logged out of Dashboard, load is 0.28, and within 2 minutes of logging into system and Dashboard the system increases to 2.70. The longer the dashboard stays open, the load continues to increase.

Just in the short time to write this, the load is over 4. That is within 5min of the original login.

RE: High CPU load - Added by Demian Lizandro Biscocho 2 months ago

Are you running this on a virtual machine? Can you post the specs allotted on the VM or server?

WebRTC uses the Opus codec which is CPU intensive. You can switch to Ulaw by editing /etc/asterisk/sip-goautodial.conf.

RE: High CPU load - Added by Steve Turner 2 months ago

Why would OPUS affect the CPU if no calls are being made and no agents are connected?

I have Vicidial running on the exact same spec machine. 2core 8gb RAM and 80gb SSD.

When GoAutoDial is running with NO connections the CPU usage is same as Vicidial. As soon as I open the DASHBOARD the CPU starts to increase up to 600% usage with NO AGENTS, NO CALLS. If I go to another page in GoAutoDial (ie USERS) the CPU usage drops back down to normal. The DASHBOARD is using all the CPU resources, and unless the OPUS codec is running the dashboard, I do not know why the codec would affect the DASHBOARD. The php-fpm is what causes all the load when the DASHBOARD is open.

All of the screenshots I provided are with NO AGENTS and only myself logged in as ADMIN.

1st screenshot is server at idle, no one logged in not even Admin
2nd screenshot is within 1 minute of logging into dashboard
3rd screenshot is after 5 minutes on dashboard
4th screenshot is switching page to USERS
5th is Vicidial in same spec server with no agents and no calls.

The DASHBOARD is using all the CPU resources. Close DASHBOARD and CPU returns to normal. I counted at least 17 instances of php-fpm and as you can see that 5 or 6 of them drawing 25% or more CPU load when the DASHBOARD is open.

I have 66mb of error logs, and I already deleted almost 40mb 2 days ago. See screenshot and attached file

RE: High CPU load - Added by Sandro Vespucci 2 months ago

exactly the same problem.

RE: High CPU load - Added by Demian Lizandro Biscocho 2 months ago

Those are regular PHP warnings that are being logged. They are redirected to /var/log/php-fpm/www-error.log since we are using PHP-FPM for PHP optimizations and etc.

For the load average on the dashboard, divide that by the number of cores your server/VM has (to get the real load average).

The GOautodial dashboard is HTML5 and shows near realtime data. The downside is heavier CPU usage (than plain old school PHP). We recommend at least 4 CPU cores.

RE: High CPU load - Added by Steve Turner 2 months ago

Demian Lizandro Biscocho wrote:

Those are regular PHP warnings that are being logged. They are redirected to /var/log/php-fpm/www-error.log since we are using PHP-FPM for PHP optimizations and etc.

For the load average on the dashboard, divide that by the number of cores your server/VM has (to get the real load average).

The GOautodial dashboard is HTML5 and shows near realtime data. The downside is heavier CPU usage (than plain old school PHP). We recommend at least 4 CPU cores.

Sandro Vespucci has the same issue, and in his other post he has 10cores and 60gb ram. https://goautodial.org/attachments/18726/temp3.png

And have 40mb of the same errors?
[11-Jul-2019 14:38:06 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[11-Jul-2019 14:38:10 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php on line 42
[11-Jul-2019 14:38:16 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[11-Jul-2019 14:38:28 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[11-Jul-2019 14:38:33 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php on line 31
[11-Jul-2019 14:38:33 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php on line 42

Im not a programmer and dont claim to be, but I did find this and wonder if is close to same issue. The line numbers refer to code that pull server IP and info. https://goautodial.org/boards/1/topics/14417
Hello Jackie, my server conf was already with a different Alt Recording Server IP and the Recording Web Link was set to Alternate IP, but it didn't change in the call recording report's page.
By digging into some files I found that in file goGetCallRecordingList.php the function that gets the IP address of the server was trying to access an undefined variable, it seems they modified half of the code when changing from a "foreach" to an "while".

RE: High CPU load - Added by Steve Turner 2 months ago

and as soon as I log in as an agent, receive all these UNDEFINED VARIABLE notices and they continue as long as logged in:

[13-Jul-2019 13:22:18 America/New_York] PHP Notice: Undefined index: phone_pass in /var/www/html/php/AddUser.php on line 35
[13-Jul-2019 13:22:22 America/New_York] Module "GOautodial Agent Dialer" initializing...
[13-Jul-2019 13:22:22 America/New_York] PHP Notice: Undefined variable: VARBRINGOWNVOIP in /var/www/html/goAPIv2/goPackages/goGetPackage.php on line 55
[13-Jul-2019 13:22:22 America/New_York] PHP Notice: Undefined variable: VARPACKAGETYPE in /var/www/html/goAPIv2/goPackages/goGetPackage.php on line 55
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined index: lead_id in /var/www/html/goAPIv2/goGetLeads/goGetLeadsInfo.php on line 31
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: vendor_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 28
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: script_height in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 207
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: length_in_sec in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 227
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: phone_code in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 228
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: in_script in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 277
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: camp_script in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 278
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: group in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 284
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: ignore_list_script in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 293
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: vendor_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 413
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: gmt_offset_now in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 418
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: title in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 421
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: gender in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 433
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: date_of_birth in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 434
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: security_phrase in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 437
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: comments in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 438
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: campaign in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 441
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: phone_login in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 442
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: original_phone_login in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 443
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: phone_pass in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 444
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: fronter in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 445
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: closer in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 446
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: group in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 447
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: channel_group in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 448
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: SQLdate in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 449
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: epoch in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 450
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: uniqueid in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 451
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: customer_zap_channel in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 452
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: customer_server_ip in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 453
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: server_ip in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 454
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: SIPexten in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 455
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: session_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 456
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: phone in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 457
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: parked_by in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 458
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: dispo in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 459
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: dialed_number in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 460
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: dialed_label in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 461
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: source_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 462
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: rank in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 463
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: owner in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 464
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: camp_script in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 465
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: in_script in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 466
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: script_width in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 467
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: recording_filename in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 470
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: recording_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 471
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: user_custom_one in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 472
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: user_custom_two in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 473
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: user_custom_three in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 474
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: user_custom_four in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 475
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: user_custom_five in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 476
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_number_a in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 477
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_number_b in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 478
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_number_c in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 479
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_number_d in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 480
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_number_e in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 481
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_number_f in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 482
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_dtmf_a in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 483
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: preset_dtmf_b in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 484
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: did_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 485
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: did_extension in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 486
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: did_pattern in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 487
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: did_description in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 488
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: closecallid in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 489
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: xfercallid in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 490
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: agent_log_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 491
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: entry_list_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 492
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: call_id in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 493
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: user_group in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 494
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: web_vars in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 495
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: CF_uses_custom_fields in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 497
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: goAgentScripts in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 520
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: ScrollDIV in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 521
[13-Jul-2019 13:22:51 America/New_York] PHP Notice: Undefined variable: ScrollDIV in /var/www/html/goAPIv2/goViewScripts/goViewAgentScript.php on line 525
[13-Jul-2019 13:22:52 America/New_York] PHP Notice: Undefined variable: apiresults in /var/www/html/goAPIv2/goAPI.php on line 122
[13-Jul-2019 13:22:52 America/New_York] Module "GOautodial Agent Dialer" initializing...
[13-Jul-2019 13:22:52 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:23:00 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:23:10 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:23:10 America/New_York] PHP Notice: Undefined variable: user_id in /var/www/html/goAPIv2/goAgent/goGetCallbackCount.php on line 36
[13-Jul-2019 13:23:30 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:23:30 America/New_York] PHP Notice: Undefined variable: user_id in /var/www/html/goAPIv2/goAgent/goGetCallbackCount.php on line 36
[13-Jul-2019 13:23:50 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:23:50 America/New_York] PHP Notice: Undefined variable: user_id in /var/www/html/goAPIv2/goAgent/goGetCallbackCount.php on line 36
[13-Jul-2019 13:24:10 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:24:10 America/New_York] PHP Notice: Undefined variable: user_id in /var/www/html/goAPIv2/goAgent/goGetCallbackCount.php on line 36
[13-Jul-2019 13:24:30 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:24:30 America/New_York] PHP Notice: Undefined variable: user_id in /var/www/html/goAPIv2/goAgent/goGetCallbackCount.php on line 36
[13-Jul-2019 13:24:50 America/New_York] PHP Notice: Undefined index: debugX in /var/www/html/goAPIv2/goAgent/goAPI.php on line 110
[13-Jul-2019 13:24:50 America/New_York] PHP Notice: Undefined variable: user_id in /var/www/html/goAPIv2/goAgent/goGetCallbackCount.php on line 36

RE: High CPU load - Added by Demian Lizandro Biscocho 2 months ago

Those are regular PHP notices/warnings that you can safely ignore. You can disable notices and warnings them in php.ini.

Based from the 10 core screenshot (https://goautodial.org/attachments/18726/temp3.png), the load average is pretty normal. Around 3.58 or 358%.

Multiply the number of cores by 100% to get your optimum peak load. So a 10 CPU core server does 1000% or 10.0 load average.

Try accessing the GOautodial dashboard with multiple users and observe how the server performs. The CPU usage is not linear. That's one of the advantages of using PHP-FPM.

RE: High CPU load - Added by Push Me 10 days ago

To get rid of these warnings:

1. Edit: /var/www/html/php/dashboard/API_getRealtimeAgentsMonitoring.php
On line 30 change:

if (!empty($output->data)) {

to:

if (is_array($output->data) && !empty($output->data)) {

2. Edit: /var/www/html/php/dashboard/API_getAgentsMonitoringSummary.php
On line 39 change:

} else {

to:

} elseif(is_array($output->data)) {

All nice and quiet ;-)

    (1-16/16)
    Go to top