Jump to content

Latest Emby Update - RAM usage creep - Anyone else seen it ? Docker/Linux.


Go to solution Solved by vaise,

Recommended Posts

vaise
Posted

I close my MacBook down when im not using it, so the laptop is asleep I guess.

I generally ALWAYS have an emby tab open when I am using the MacBook.

Just on the admin page.

sa2000
Posted
1 hour ago, vaise said:

I close my MacBook down when im not using it, so the laptop is asleep I guess.

I generally ALWAYS have an emby tab open when I am using the MacBook.

Just on the admin page.

The Dashboard web pages where the Now Playing information shows, have websocket connections to the server which have data sent to them whilst there are playback sessions. We discovered that on Windows if the browser tab is suspended - eg when the browser detects it is not in focus and not current active tab, then the feeds from the server buffer up leading to memory usage increase over time.

If you do normally have a dashboard tab open, see if closing that browser tab before the machine gets put to sleep makes a difference

Uncle_Frank
Posted (edited)

I never seen anything like that before holy smokes, I just checked mine and not using much of anything thankfully.

Emby.jpg

Edited by Uncle_Frank
vaise
Posted

I am not closing the emby management tab when not in use.

I will report back.

At least the system is recovering and I don't get harassed by users.  I am going to lower the emby page not responding check to 3 minutes.

Seems when the memory issue happens, it blows from 12 to 16 and dies in the same 5 minutes.

vaise
Posted

OK - Reporting back.

I have stopped my normal process of having a management tab open in my safari browser all the time.

That was Tuesday morning.  Its now Thursday morning and under 4GB ram usage.

I suspect its still early days yet, but I will report back next week.

I assume if this is the issue, it will be fixed in a later release ?

yocker
Posted
1 hour ago, vaise said:

OK - Reporting back.

I have stopped my normal process of having a management tab open in my safari browser all the time.

That was Tuesday morning.  Its now Thursday morning and under 4GB ram usage.

I suspect its still early days yet, but I will report back next week.

I assume if this is the issue, it will be fixed in a later release ?

What plugins are you using?

sa2000
Posted
1 hour ago, vaise said:

I assume if this is the issue, it will be fixed in a later release ?

There is an open issue for this and there was an attempt to fix it but the issue remains.

 

vaise
Posted
40 minutes ago, yocker said:

What plugins are you using?

I posted above that I removed them all except the shipped plus the playback reporting, discord.

yocker
Posted

@sa2000I noticed that people that just shut down their TV or pause their player mid stream while transcode is happening causes high memory use that doesn't seem to get released when the stream is finally stopped.

image.png.bf7f86957e8507d88ee5e06e7f8913b1.png
This is after a couple of days without transcoding enabled on the server.
Huge difference next to the nearly 2GB it could use sometimes.

vaise
Posted

Reporting back for an update - Since I stopped having the browser sitting on the emby dashboard, I have not had any crashes to date.

This is by far the longest I have been.

 

vaise
Posted
1 minute ago, yocker said:

@sa2000I noticed that people that just shut down their TV or pause their player mid stream while transcode is happening causes high memory use that doesn't seem to get released when the stream is finally stopped.

image.png.bf7f86957e8507d88ee5e06e7f8913b1.png
This is after a couple of days without transcoding enabled on the server.
Huge difference next to the nearly 2GB it could use sometimes.

I very rarely have transcoding.

I generally get a better media file, of convert it if I see that.

It still could contribute however.

My son was away and using his MacBook, and changed his quality right down to save his mobile phone data - and that def was transcoding.

Two of the crashes were while he was away...... its not conclusive but.........

sa2000
Posted
1 hour ago, yocker said:

noticed that people that just shut down their TV or pause their player mid stream while transcode is happening causes high memory use that doesn't seem to get released when the stream is finally stopped.

The playback memory issues i have seen are all relating to having an emby server dashboard session which would show the Now Playing streams but the tab is not active or current.

With regards to transcoding - the transcoder may continue to run but the impact should be on disc space and not memory unless the transcoding temp directory is setup in RAM

sa2000
Posted
1 hour ago, vaise said:

Since I stopped having the browser sitting on the emby dashboard

So this was a browser session running on a MacBook ? Which browser ? and the macbook is going to sleep ?

vaise
Posted
28 minutes ago, sa2000 said:

So this was a browser session running on a MacBook ? Which browser ? and the macbook is going to sleep ?

Yep - I have a new MacBook Air M5 - This does not watch emby shows, but I always had the emby dashboard on my tabs - and it would go to sleep, wake up etc etc.

If you are referring to my sons laptop I mentioned when that is away - its a MacBook M3 I think.  That's does not use the dashboard but the emby app installed, and he has it transcoding.

  • Thanks 1
vaise
Posted
34 minutes ago, sa2000 said:

The playback memory issues i have seen are all relating to having an emby server dashboard session which would show the Now Playing streams but the tab is not active or current.

With regards to transcoding - the transcoder may continue to run but the impact should be on disc space and not memory unless the transcoding temp directory is setup in RAM

Transcoding does to go to NVME disk - and verified as such.

  • Thanks 1
  • 2 weeks later...
  • Solution
vaise
Posted

I guess I can close this off.

The 'issue' is still there - I am just no longer 'looking' at the users in the emby console.

My emby system restarts each week when the appdata backup is scheduled.  

My monitoring seems to show the max the memory gets to is 8.5GB.

No crashes.

  • Thanks 1
s0m3f00l
Posted

The docker seems to keep creeping up in RAM. Not sure whats going on tbh. 

s0m3f00l
Posted

Anyone else noticing the docker image is creeping up in memory usage? I have to restart once a week or it just keeps going until the host fails.

Posted
1 hour ago, s0m3f00l said:

The docker seems to keep creeping up in RAM. Not sure whats going on tbh. 

Hi there, please attach the Emby server log from when the problem occurred:

Thanks!

 

Trevor68
Posted

mine is using 900mb memory right now, I have no idea if that's good or bad though.

kmcmurtrie
Posted

In native Ubuntu, I see 300MB to 500MB resident but the virtual address space always 262GB.  That's pretty wild, even for a video server.  I wonder if that's causing issues in containerization.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...