Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Out Of Memory 7.0.0 beta2

Featured Replies

I keep getting out of memory errors

 

I add:

 

     nchan_shared_memory_size 512M;

 

to /etc/nginx/nginx.conf, but it keeps disappearing

 

Does it get overwritten on reboot?

 

Do I need to add it to the flash drive somewhere?

 

Thanks in advance

Alan

mickey-diagnostics-20240921-1043.zip mickey-syslog-20240921-1004.zip

Solved by Michael_P

  • Community Expert
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

  • Author
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

  • Community Expert
  • Solution
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

  • Author

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?

 

 

  • Community Expert
8 hours ago, AlanC said:

to /etc/nginx/nginx.conf, but it keeps disappearing

 

Does it get overwritten on reboot?

Yes - that location is only on RAM.

  • Author
3 hours ago, itimpi said:

Yes - that location is only on RAM.

Any way of making it persistent?

  • Community Expert
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.

  • Author
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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.