CPU usage surges when running as service
Posted: Thu Feb 22, 2024 2:46 pm
I have recently purchased and installed BI on my computer. So far, most everything seems to be working OK. However, when I clicked the box to run it as a service, the CPU utilization skyrocketed. Why is this and what can be done to fix it?
My system:
Win 11.
intel i5-1235U CPU w/12 cores/threads running at 2.5 GHz according to speccy.
The CPU has a built in GPU.
16G RAM.
11 IP Cameras mostly 4MP all wired and connected to a VLAN and private unmanaged switch.
All cameras output H.264 except for one which only does H.265.
The BI box is also part of the VLAN and all are denied internet access but still have local LAN access.
The BI box and all the cameras are set to use the Time Server in the router so they all have accurate time and are in sync.
With this setup, running as a program from the windows desktop, the CPU utilization is about 3%. It makes no difference if I am using the web interface.
When I click "run as service" and reboot, the CPU jumps to 12% with no console or web connection. When the console is started, the CPU jumps to 25%. When connected to the web interface as well, it jumps to 30%.
This is easily repeatable so if I uncheck "run as service", reboot and restart BI, the CPU falls back to 3%.
I tried unchecking "start as service" and then putting it in Task Scheduler to automatically start at bootup, but it seems to start it as a service anyway because the UI never came up. I haven't tried putting it in the Startup folder because I was concerned something might stop it from loading.
I also have Direct to Disk and Intel+Vpp selected.
Is this something that can be fixed or worked around? I would like to add AI detection later which will need a lot of CPU% just for that which is why I want to keep the non-AI part of BI running as low CPU% as possible.
My system:
Win 11.
intel i5-1235U CPU w/12 cores/threads running at 2.5 GHz according to speccy.
The CPU has a built in GPU.
16G RAM.
11 IP Cameras mostly 4MP all wired and connected to a VLAN and private unmanaged switch.
All cameras output H.264 except for one which only does H.265.
The BI box is also part of the VLAN and all are denied internet access but still have local LAN access.
The BI box and all the cameras are set to use the Time Server in the router so they all have accurate time and are in sync.
With this setup, running as a program from the windows desktop, the CPU utilization is about 3%. It makes no difference if I am using the web interface.
When I click "run as service" and reboot, the CPU jumps to 12% with no console or web connection. When the console is started, the CPU jumps to 25%. When connected to the web interface as well, it jumps to 30%.
This is easily repeatable so if I uncheck "run as service", reboot and restart BI, the CPU falls back to 3%.
I tried unchecking "start as service" and then putting it in Task Scheduler to automatically start at bootup, but it seems to start it as a service anyway because the UI never came up. I haven't tried putting it in the Startup folder because I was concerned something might stop it from loading.
I also have Direct to Disk and Intel+Vpp selected.
Is this something that can be fixed or worked around? I would like to add AI detection later which will need a lot of CPU% just for that which is why I want to keep the non-AI part of BI running as low CPU% as possible.