OPNsense Forum

English Forums => 25.7 Series => Topic started by: TeeOrion on September 22, 2025, 12:11:13 PM

Title: High CPU waits
Post by: TeeOrion on September 22, 2025, 12:11:13 PM
Hi all,

Monit keeps flagging high resource and Portal GUI goes unresponsive and fails to loads widgets. I been tried to search on forum for more information and so far couldn't find anything. Happy to be corrected.



Here is what I noticed and actions so far:

Log errors:

[22-Sep-2025 10:54:33 Europe/London] TypeError: array_column(): Argument #1 ($array) must be of type array, null given in /usr/local/opnsense/mvc/app/controllers/OPNsense/Routing/Api/SettingsController.php:91
Stack trace:
#0 /usr/local/opnsense/mvc/app/controllers/OPNsense/Routing/Api/SettingsController.php(91): array_column(NULL, 'name')
#1 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Dispatcher.php(166): OPNsense\Routing\Api\SettingsController->searchGatewayAction()
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(156): OPNsense\Mvc\Dispatcher->dispatch(Object(OPNsense\Mvc\Request), Object(OPNsense\Mvc\Response), Object(OPNsense\Mvc\Session))
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(139): OPNsense\Mvc\Router->performRequest(Object(OPNsense\Mvc\Dispatcher))
#4 /usr/local/opnsense/www/api.php(36): OPNsense\Mvc\Router->routeRequest('/api/routing/se...', Array)
#5 {main}

Monit Status:
  status                      Resource limit matched
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  load average                [18.19] [14.92] [17.99]
  cpu                          1.7%usr 4.1%sys 0.0%nice 0.0%hardirq
  memory usage                5.4 GB [34.5%]
  swap usage                  3.1 GB [31.1%]
  uptime                      15h 51m
  boot time                    Sun, 21 Sep 2025 19:16:08
  filedescriptors              4742 [0.9% of 514702 limit]
  data collected              Mon, 22 Sep 2025 11:07:47

CPU Intel N110 , 16GB ram, 120GB
Title: Re: High CPU waits
Post by: meyergru on September 22, 2025, 01:17:46 PM
See this, #23 (https://forum.opnsense.org/index.php?topic=42985.0). Also: Did you install on ZFS instead of UFS? If not, your installation may be botched already. Save the configuration, reinstall and restore it.
Title: Re: High CPU waits
Post by: TeeOrion on September 23, 2025, 09:17:27 AM
Thank you for that,

It seems taking Step 23 has resolved the issue