Halea
Well-Known Member
- Joined
- Aug 12, 2016
- Messages
- 1,164
- Reaction score
- 917
This is an Incredible PBX 2021 15.0.17.24.1 instance running on a VPS which works well except for an annoying delay on the Dashboard page.
When the Dashboard is accessed or refreshed the product branding banner shows up immediately, the progress bar quickly moves to 80% and seems to be stuck there for about 30 to 45 seconds, after which time the page is loaded with all the info sections.
Through trial and error I discovered that it's actually the "overview" section which is causing the delay.
Then I studied the php script in /var/www/html/admin/modules/dashboard/sections/Overview.class.php and found out the code bloc which seems to be the culprit.
It's the following instruction, which is part of the getSummary() public function:
When I comment out that portion the Dashboard page loads and refreshes at lightening speed! All the info sections work properly, except for "System Overview" which only loads partially (the Summary box is mostly incomplete).
I'm having difficulties figuring out how the above code exactly works.
This gotta be calling something in the system which takes its time before returning back the expected data.
As a side-note, I've observed this issue both on Debian and Ubuntu deployments, whether the host was bare-metal, a VPS, or VirtualBox. On the other hand, since I don't see anyone else complaining about something like this on the forum, I am even more puzzled.
Thanks for any help.
When the Dashboard is accessed or refreshed the product branding banner shows up immediately, the progress bar quickly moves to 80% and seems to be stuck there for about 30 to 45 seconds, after which time the page is loaded with all the info sections.
Through trial and error I discovered that it's actually the "overview" section which is causing the delay.
Then I studied the php script in /var/www/html/admin/modules/dashboard/sections/Overview.class.php and found out the code bloc which seems to be the culprit.
It's the following instruction, which is part of the getSummary() public function:
/*
foreach (array_keys($svcs) as $svc) {
if (!method_exists($this, "check$svc")) {
$final[$i]['type'] = 'unknown';
$final[$i]['tooltip'] = "Function check$svc doesn't exist!";
} else {
$func = "check$svc";
$final[$i] = $this->$func($sysinfo);
}
$final[$i]['title'] = $svcs[$svc];
$i++;
}
*/
When I comment out that portion the Dashboard page loads and refreshes at lightening speed! All the info sections work properly, except for "System Overview" which only loads partially (the Summary box is mostly incomplete).
I'm having difficulties figuring out how the above code exactly works.
This gotta be calling something in the system which takes its time before returning back the expected data.
As a side-note, I've observed this issue both on Debian and Ubuntu deployments, whether the host was bare-metal, a VPS, or VirtualBox. On the other hand, since I don't see anyone else complaining about something like this on the forum, I am even more puzzled.
Thanks for any help.
Last edited: