Jump to content

CPU & Memory reaching 100%


Recommended Posts

Posted

Hello emby community!

Have been using emby for quite a while, and i don't know if it is the most recent versions, but recently my emby is behavioring weirdly, it randomly spikes to 100% CPU even though i have a RTX 5060 as GPU for the transcoding process (yes, i did verify if it is set properly), can you guys enlighten me? i'm pretty sure i'm not the only one having trouble with it

Posted

Having the same issue, I can't go more than 36 hours between restarting service since update.   

Was running fine.

adminExitium
Posted
8 hours ago, xAssasin said:

randomly spikes to 100% CPU

is it only CPU or memory too? If only CPU, it may be due to search queries:

It will be helpful if you can try to isolate the spikes and provide the logs for the same.

Posted
6 hours ago, adminExitium said:

is it only CPU or memory too?

So, memory actually builds up to cap (about 16GB, running in ubuntu 24.04, but im gonna upgrade memory capacity later), but before that, the CPU goes from 2% to 100% pretty quickly, i've went through "top -H -p <emby's pid>" and it seems like a single thread is consuming the CPU and stopping from others running, including the emby-server itself. I can access the dashboard (runs slowly, but i can) while the machine is at about 80% CPU, but not the /Views (which runs when i access the home page), it keeps loading infinitely and gives me an error. Also it seems that it unclogs itself at a random point, and CPU goes back to 1-10% max, and that thread stops consuming that much CPU. .NET BGC and a single .NET TP Worker are the responsable for that

Posted

Devs will need server logs.

 

Posted

Also if i could ask, is there a way to downgrade from 4.9.1.90 to 4.8.11.0 without breaking stuff or having to re-scan everything? tried stopping the server and downgrading through dpkg but seems like it broke and doesn't show any content, only part of the images and everything gives Internal Server Error. i can just upgrade back to 4.9.1.90 and it works perfectly fine

Happy2Play
Posted
45 minutes ago, xAssasin said:

Also if i could ask, is there a way to downgrade from 4.9.1.90 to 4.8.11.0 without breaking stuff or having to re-scan everything?

Since there were database changes you would have to start over unless you by chance still have a 4.8.11.0 backup.

 

Happy2Play
Posted
1 hour ago, blackcatTN said:

I would first test reseting cache size as Emby changed to a multiconnection model.  So the previous method of 1.5 to 2 times db size is obsolete.

2025-11-20 02:29:51.449 Info SqliteItemRepository: Initializing PooledDatabaseConnectionManager with pool size: 5

So it could be 5 x your cache size (cache_size=-3121152)

Default is currently 128.

Posted

Thank you.

I set it to 256 but can't restart until off peak.   Will monitor for the next couple of days and report back.

 

Screenshot2025-11-20at10_35_52PM.thumb.png.f2692adc3c6e5f6d0b3601f45f0966dd.png

 

 

Looking forward to seeing what the dev team officially endorses for optimal settings.

Does it ever need to be changed now or not so much?  That would be useful info to share.

 

Posted
6 hours ago, blackcatTN said:

Hi, please also try removing these plugins:

2025-11-19 14:21:08.017 Info App: Loading playback_reporting, Version=2.1.0.7, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/playback_reporting.dll
2025-11-19 14:21:08.017 Info App: Loading Emby.Bulky, Version=1.0.20.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Bulky.dll
2025-11-19 14:21:08.017 Info App: Loading MediaBrowser.Plugins.TimeLord, Version=19.8.3.1105, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MediaBrowser.Plugins.TimeLord.dll

Then restart the server and see how things compare.

Posted
1 hour ago, Luke said:

Hi, please also try removing these plugins:

2025-11-19 14:21:08.017 Info App: Loading playback_reporting, Version=2.1.0.7, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/playback_reporting.dll
2025-11-19 14:21:08.017 Info App: Loading Emby.Bulky, Version=1.0.20.0, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.Bulky.dll
2025-11-19 14:21:08.017 Info App: Loading MediaBrowser.Plugins.TimeLord, Version=19.8.3.1105, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/MediaBrowser.Plugins.TimeLord.dll

Then restart the server and see how things compare.

I have been using those plugins for a long time without issue.

Are you saying that plugins that have been working for years may now have a memory leak due to an Emby server code update?  

 

 

Happy2Play
Posted
10 hours ago, blackcatTN said:

I have been using those plugins for a long time without issue.

Are you saying that plugins that have been working for years may now have a memory leak due to an Emby server code update?  

Any plugin that is not created by Emby will always be asked to uninstall when there are user issues to eliminate this that are totally out of Emby's control.  So if is identified as a plugin issue the appropriate plugin dev will have to look at the issue.

But there are other similar topics out there as it is somewhat a platform issue.

  • Agree 1
Posted (edited)

I've noticed the same thing but I've gotten around it by scanning at 3am and 3pm.  I have my config to automatically reboot the instance at 6 am and then I hit a manual reboot before peak hours start around 4:30 pm daily (after the 3 pm scan)

This has kept things stable for myself and my users.

Currently running 128mb cache, 800 row.  Real time monitoring off for all libraries.  I vacuum database once a week and do not scan intros. I only do Emby backups manually.

Edited by Dan_86

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