Internal AI Causing Massive CPU/Memory Usage?

btreinders

n3wb
May 17, 2017
26
3
I was seeing 25 GB plus usage of memory on 6.0.2.2 (could have started on an earlier version) with internal AI enabled. Went back to CodeProject and back down to about 2 GB for BI and another 2 for CP. Anyone else seeing the same?

I have an i9-14900k, 32GB DDR5 RAM running on an SSD with 8TB SATA for storage and with W11 and 7 4k cameras. With internal AI enabled I turned off hardware encoding and the CPU spiked to near 100% and the GPU didn't really drop. CPU was in the 50% with hardware encoding enabled, normally it is less than 10% without internal AI. All Direct to disk and using sub-streams. Could hardly use the PC. Had issues with all cameras not staying at 15FPS/1.00 key frame too. They would fluctuate all over the place and miss things in recordings that were in the preview clips.

Thanks,
Brent
 
I don't use AI with Blue Iris (yet..) but I recall there was an issue where Blue Iris had a way-too-high default for the number of AI instances it was running. I think this is "max connects" in Blue Iris Settings > AI tab. It should be set to something like 4 or less.
 
The built in AI is going to use at least 2Gb of additional RAM depending on the number of connections you allow the AI to use!
I am running 6.0.2.2 with the built in AI (max connects 32) and I am beginning to suspect that there may be a memory leak, I was showing over 6GB of RAM allocated, I just restarted the BI service and it is currently at 2.61GB, I am going to keep an eye on it and see if it keeps climbing, before I can confirm if it is a problem!

Edit it is now 4:46 pm and the RAM is at 3.23GB
 
Last edited:
The built in AI is going to use at least 2Gb of additional RAM depending on the number of connections you allow the AI to use!
I am running 6.0.2.2 with the built in AI (max connects 32) and I am beginning to suspect that there may be a memory leak, I was showing over 6GB of RAM allocated, I just restarted the BI service and it is currently at 2.61GB, I am going to keep an eye on it and see if it keeps climbing, before I can confirm if it is a problem!

Edit it is now 4:46 pm and the RAM is at 3.23GB

Mine would go right to 20+ GB when I would restart BI and then settle out at around 15-20. Max connects set to 32.