Jump to content

Out Of Memory 7.0.0 beta2


AlanC
Go to solution Solved by Michael_P,

Recommended Posts

Posted
16 minutes ago, AlanC said:

keep getting out of memory errors

 

Looks like Frigate is spawning a bunch of ffmpeg processes and running the host OOM repeatedly - fix the config so it's not writing to RAM or limit the container's memory allowance

Posted
6 minutes ago, Michael_P said:

 

Looks like Frigate is spawning a bunch of ffmpeg processes and running the host OOM repeatedly - fix the config so it's not writing to RAM or limit the container's memory allowance

Thanks, it's already limited to 1GB

  • Solution
Posted
1 minute ago, AlanC said:

Thanks, it's already limited to 1GB

 

Then its not being respected - you'll need to fix the containers config so that any temp space for encoding and such isn't being done in RAM or you can force docker to limit the RAM instead of the kernel with the --oom-kill-disable flag, but use it cautiously as it's highly likely to bring down the entire system if docker doesn't do it right.

 

https://docs.docker.com/engine/containers/resource_constraints/

 

When you've fixed it, you'll need to reboot so FCP doesn't see it in the log anymore and continue to warn you

Posted

Thanks added  --oom-kill-disable now

 

I've also disabled a wifi camera that looks like it has a spotty connection.

 

I've also cut down the number of cameras being processed by go-rtc

 

We'll see how it goes, any idea why nchan_shared_memory_size 512M; keeps disappearing?

 

 

Posted
11 hours ago, AlanC said:

Any way of making it persistent?

You can add code to the config/go file on the flash drive to make the change during the boot sequence.    Whether Unraid ever regenerates the nginx.conf file while running (thus erasing the change) I have no idea.

Posted
On 9/21/2024 at 6:35 AM, Michael_P said:

 

Then its not being respected - you'll need to fix the containers config so that any temp space for encoding and such isn't being done in RAM or you can force docker to limit the RAM instead of the kernel with the --oom-kill-disable flag, but use it cautiously as it's highly likely to bring down the entire system if docker doesn't do it right.

 

https://docs.docker.com/engine/containers/resource_constraints/

 

When you've fixed it, you'll need to reboot so FCP doesn't see it in the log anymore and continue to warn you

Thankyou, seems to have done the trick

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...