Page 1 of 2
Memory Leak
Posted: Mon Mar 25, 2024 4:25 pm
by wesley_witt
I'm seeing a serious memory leak in BI. The memory usage just continually increases until the system is unusable. I was running the latest version so I dropped back to 5.8.0.5, but that did not fix it. Does anyone have any insight as to how I can fix this?
Re: Memory Leak
Posted: Mon Mar 25, 2024 7:33 pm
by TimG
I can tell you that I'm running BI5 v5.8.8.10 and memory usage is stable here. Have you checked that you have exempted the BI5 folders from your anti virus scans ? See Help file for details.
Re: Memory Leak
Posted: Mon Mar 25, 2024 7:58 pm
by wesley_witt
i solved it by deleting the database & all recordings. memory is now stable, but there is clearly a bug in bi.
Re: Memory Leak
Posted: Fri Apr 05, 2024 2:28 am
by holmesm
I am having the same issue. My system is windows 11, intel cpu, nvidia gpu, 256gtb ram. If I go back to 3/2/24 version 5.8.7.11 - my ram and cpu stay stable. Anything after that it just keeps climbing. I have Intel+VPP hardware acerbation on and have tried Nvidia and Intel and none with no difference. I have to restart daily otherwise my system becomes unusable.
Re: Memory Leak
Posted: Fri Apr 05, 2024 4:14 am
by IAmATeaf
holmesm wrote:I am having the same issue. My system is windows 11, intel cpu, nvidia gpu, 256gtb ram. If I go back to 3/2/24 version 5.8.7.11 - my ram and cpu stay stable. Anything after that it just keeps climbing. I have Intel+VPP hardware acerbation on and have tried Nvidia and Intel and none with no difference. I have to restart daily otherwise my system becomes unusable.
If you are using substreams then disabling hardware acceleration might actually improve cpu usage and might fix your issue? So give that a try.
Re: Memory Leak
Posted: Sat Apr 06, 2024 4:10 pm
by holmesm
IAmATeaf wrote: ↑Fri Apr 05, 2024 4:14 am
If you are using substreams then disabling hardware acceleration might actually improve cpu usage and might fix your issue? So give that a try.
My CPU usage is stable, it rarely goes above 15%. It's the memory usage that's the problem. I have tried disabling hardware acceleration - even after a reboot if I leave BI running, it will be using 40gb of memory after a day. It does not do that on v5.8.7.11.
Re: Memory Leak
Posted: Sat Apr 06, 2024 4:42 pm
by IAmATeaf
Next step is to try disabling a cam at a time to see if it might be a cam causing the issue?
Also as far as hardware acceleration is concerned, did you also check and disable it in each cam, might need to do this if you enabled it on particular cams?
Re: Memory Leak
Posted: Tue Apr 09, 2024 12:22 am
by holmesm
I have tested every scenario imaginable. Hardware acceleration off completely, disabled AI, disabled sub streams, disabled a camera at a time, disabled all but one and added one back at a time - all have the same result. The thing I haven't tried is something with the hard drive. I am moving files to see if that is anything.
Re: Memory Leak
Posted: Tue Apr 09, 2024 12:15 pm
by MikeBwca
In each cameras settings/Video Tab... Set 'Hardware decode' to 'Default'.
Then, in BI settings Camera Tab, set 'Hardware accelerated decode'.
All cameras w use this settings.
Makes it much easier to change hardware decode for all cameras.
Re: Memory Leak
Posted: Tue Apr 09, 2024 1:17 pm
by holmesm
MikeBwca wrote: ↑Tue Apr 09, 2024 12:15 pm
In each cameras settings/Video Tab... Set 'Hardware decode' to 'Default'.
Then, in BI settings Camera Tab, set 'Hardware accelerated decode'.
All cameras w use this settings.
Makes it much easier to change hardware decode for all cameras.
Thanks, that is the way I have it set up. I was just testing to see if there were cameras that didn't like the setting.
It was a last resort to figuring out this memory leak.