New system, RAM problem
Posted: Fri Apr 14, 2023 5:12 pm
Hi,
I just upgraded my server hardware to accommodate few 4k cameras and made a fresh install on both OS and ZM. Been using zoneminder quite a long time now, over 6 years and now ran into severe problem hindering the servers ability to even record stable footage.
Server:
Intel i9-13900k, 64GB RAM, about 21TB of space on 7 HDDs and one fast SSD gathered up in LVM.
Ubuntu server 22.04
ZM from iconnors PPA, version installed 1.36.33
Cameras added to ZM (couple more waiting to be installed and added after this is solved):
2 Reolink 810A 4k @20fps 8000kbit/s
1 Unifi UVC G3 1080p @20fps 5000kbit/s
1 AXIS Companion Eye LVE 1080p @20fps 5000kbit/s
All cameras on RECORD, without analysis or decoding on pass-through, max image queu set on all cameras. Live view still works on all, even though system threatens it would be unavailable with those settings.
Everything goes smoothly for about 30min after zm restart, total RAM usage in 6-8gb. Then suddenly in under one minute, RAM usage tops to 64GB (64GB SWAP fills in 10 secs when RAM usage hits about 62GB) and system load goes from 5 to 20-50 for a while, all CPU cores max for a minute or two and then system kills zmc with out of memory message. Memory usage drops to normal and usually immediately starts to build up again and above mentioned behavior keeps repeating. (now as I write this memory use stayed in 33 GB for 5min and then maxed out again).
Htop on server tells that reolink cameras are using all the memory with 4 processes like other two also, log gives error on other two about image queue being full when memory hoarding from reolinks has started.
Log on debug level atm, but gives nothing before memory is about to run out.
Tried searching web for two days, but did not get very far, mainly few year old topics about memory leaks.
Quite tired at the moment, probably forgot to mention lots of things.
I just upgraded my server hardware to accommodate few 4k cameras and made a fresh install on both OS and ZM. Been using zoneminder quite a long time now, over 6 years and now ran into severe problem hindering the servers ability to even record stable footage.
Server:
Intel i9-13900k, 64GB RAM, about 21TB of space on 7 HDDs and one fast SSD gathered up in LVM.
Ubuntu server 22.04
ZM from iconnors PPA, version installed 1.36.33
Cameras added to ZM (couple more waiting to be installed and added after this is solved):
2 Reolink 810A 4k @20fps 8000kbit/s
1 Unifi UVC G3 1080p @20fps 5000kbit/s
1 AXIS Companion Eye LVE 1080p @20fps 5000kbit/s
All cameras on RECORD, without analysis or decoding on pass-through, max image queu set on all cameras. Live view still works on all, even though system threatens it would be unavailable with those settings.
Everything goes smoothly for about 30min after zm restart, total RAM usage in 6-8gb. Then suddenly in under one minute, RAM usage tops to 64GB (64GB SWAP fills in 10 secs when RAM usage hits about 62GB) and system load goes from 5 to 20-50 for a while, all CPU cores max for a minute or two and then system kills zmc with out of memory message. Memory usage drops to normal and usually immediately starts to build up again and above mentioned behavior keeps repeating. (now as I write this memory use stayed in 33 GB for 5min and then maxed out again).
Htop on server tells that reolink cameras are using all the memory with 4 processes like other two also, log gives error on other two about image queue being full when memory hoarding from reolinks has started.
Log on debug level atm, but gives nothing before memory is about to run out.
Tried searching web for two days, but did not get very far, mainly few year old topics about memory leaks.
Quite tired at the moment, probably forgot to mention lots of things.