Jump to content

Emby Very high memory utilization impacting other Synology Apps/Services


Recommended Posts

Didiflix
Posted (edited)

Hello Emby team,

After some Synology applications were dropped/shut due to lack of memory on my DS920+ (8Gb memory), on 12-march I realized EmbyServer service was using >4GB of memory. 

Reading through topics I tried most suggestions: reduced the scanning library refresh intervals, removed unnecessary plug-ins, reviewed DB Cache and lines analysis - apparently the situation stabilized - so I thought - Got to 40% utilization, gradually increasing, decreasing... around 60% within manageable boundaries.

Even to minimize overall NAS, I added 2xNVMe and pinned the BRTFS (where most of the library is stored). This also apparently attenuated the symptoms for a couple of days (up to 60% memory utilization - around 2.5Gb for Emby).

However, this morning, without any specific user peak (2-3 simultaneous) or library scans, the memory utilization spiked again to >85% (3.5Gb for Emby) - then other Synology services were impacted  (Universal Search and Indexing - which already have only music and photo folders indexed to minimize the consumption). Looking through Synology LogCenter, there's no other services behaving differently - only Log Center a little higher than usual, from 200Mb to 300Mb, but these 100Mb are far from being the cause.

Then, I fully shutdown EmbyServer and the memory usage dropped to 30% immediately as expected. After start EmbyServer again the memory spiked faster than ever in 10 minutes with only 1 user as you can see per the green arrow in the chart below.

I'm attaching the EmbyServer Log and a few snapshots to help elucidate this:

- Real-Time Memory Utilization Resource Monitor when the server at 80%, shut, restarted and went from 30% to 60-ish% in a15 min.

image.png.ebd50a730854fa91cf90d63d7dab5542.png

Weekly History range of memory consumption - March 13th midnight around 50%, peaked up to 85%, a first restart 14-mar 8AM, and the most recent in the right.

image.png.1ddc303fb804454e75f3179683cb678d.png

100% SSD Cache hit rate since the restart. (Expected since BRTFS is pinned)

image.png.460d9193efaca5a5d267033b60e9c388.png

 

Considering many other testimonies and topics in the forum, seems like a common issue related to multiple plug-ins, library loops, database cache, but nothing seem to match my particular scenario.

  1. Is there any way other than run EmbyServer in Docker, that I could do limit the memory consumption on the native application of Emby ? I'd really like to avoid migrate to another docked instance to prevent that - since there are also some other performance related topics with this architecture
  2. I'm now running 4.10 - don't recall version 4.9 and under having such memory growth either (I've been running emby since 4.7 for more than an year without any significant changes in the library size and plug-in adoption) - would downgrade to 4.9 be an option ? 

Glad to try any other suggestions and advices. 

Thank you in advance,

 

 

embyserver.txt

image.png

Edited by Didiflix
Adjusts in sentences for better understanding
Didiflix
Posted

Sorry - not running 4.10 - running 4.9, please interpret the last sentence as:

  • I'm now running 4.9 - don't recall version 4.8 and under having such memory growth either (I've been running emby since 4.7 for more than an year without any significant changes in the library size and plug-in adoption) - would downgrade to 4.8 be an option ? 
Didiflix
Posted

And here we go again on the memory spike coaster - 1 hour later testing with 2 users (1 TV streaming and 1 regular video file).

Embyserver is now consuming 3.67GB of Memory. Attached updated logs to see if we can capture what caused this spike in the period.

image.thumb.png.c57bdcc11ba19d21b1cba5a29ccff4ce.png

embyserver(1).txt

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