Jump to content

Emby maxes out CPU - especially when running a search


scorchedcortex

Recommended Posts

scorchedcortex

Emby is maxing out my CPU at 90% or above when running idle. It also seems to spike when I run a search. It will max out the CPU for a good 2-5 minutes and then drop back down to under 10%. When Emby maxes out my CPU, everything comes to a crawl.

 

I mostly use Emby to play mp3's. No movies. I assume playing music isn't processor intensive? Any ideas?

 

I'm running:

 

Emby server 3.0.5675.1

 

Windows 10 Pro

 

Intel Core i7 CPU q720 @1.60GHz

 

8GB RAM

 

A log from today is attached.

server-63576618170.txt

Edited by scorchedcortex
Link to comment
Share on other sites

scorchedcortex

Emby is maxing out my CPU at 90% or above when running idle. It also seems to spike when I run a search. It will max out the CPU for a good 2-5 minutes and then drop back down to under 10%. When Emby maxes out my CPU, everything comes to a crawl.

 

I mostly use Emby to play mp3's. No movies. I assume playing music isn't processor intensive? Any ideas?

 

I'm running:

 

Emby server 3.0.5675.1

 

Windows 10 Pro

 

Intel Core i7 CPU q720 @1.60GHz

 

8GB RAM

 

A log from today is attached.

 

Also, I just noticed that whenever I try to add an album to one of my playlists, the CPU maxes out (95%) for a minute or so as well. I get the spinning circle and maxed out CPU until the items are added, which takes a minute or more.

Edited by scorchedcortex
Link to comment
Share on other sites

I can only speculate here, but one of the coding tricks is to use parellell routines which force the CPU to calculate information quickly.

 

This cause high CPU percentages.

 

Again only speculating but, when using asynchronous routines (or long running tasks) from the server, the parellell routines are used to play catch up so things seem fairly instantaneous to the user.

 

Adding an ablum to a playlist would use an async request for info, and then use parellell loops to try and quickly sort the Data Transfer Objects info to utilize.

 

Again, I maybe in left field here, but if you see high CPU, this is probably why.

 

But, an i7 chip should handle all that gracefully, so there might be something else at play here.

Link to comment
Share on other sites

scorchedcortex

I can only speculate here, but one of the coding tricks is to use parellell routines which force the CPU to calculate information quickly.

 

This cause high CPU percentages.

 

Again only speculating but, when using asynchronous routines (or long running tasks) from the server, the parellell routines are used to play catch up so things seem fairly instantaneous to the user.

 

Adding an ablum to a playlist would use an async request for info, and then use parellell loops to try and quickly sort the Data Transfer Objects info to utilize.

 

Again, I maybe in left field here, but if you see high CPU, this is probably why.

 

But, an i7 chip should handle all that gracefully, so there might be something else at play here.

Thanks for the info, But would what you are suggestiong actually MAX out the CPU? It spikes to 95% for at least a minute or more. That seems excessive to me. Any thoughts? I can include more logs if necessary. This is a real problem as it cripples Emby for me.

Link to comment
Share on other sites

Okay from the server log I see a couple errors happening regarding auth tokens being expired, which could be nothing more then clients changing version numbers, and re authenticating.

 

Are you saving metadata locally, or are you scraping images from the Internet for your collection on the fly?

Edited by chef
Link to comment
Share on other sites

scorchedcortex

Okay from the server log I see a couple errors happening regarding auth tokens being expired, which could be nothing more then clients changing version numbers, and re authenticating.

 

Are you saving metadata locally, or are you scraping images from the Internet for your collection on the fly?

 

 

I believe I am just getting images from the internet. I just used the standard settings when installing. Should I change that? Again, these are all just mp3 songs, albums, etc.

Link to comment
Share on other sites

Just to make sure, see if the settings for saving metadata locally are set.

 

Under: server manager > metadata > save metadata locally (or something like save artwork to folder)

 

If your system is grabbing images from the Internet each time it does a media refresh, and then using the Coverart plugin to treat the images, it would definitely run your CPU really really high.

 

At least we can try and rule this out.

Link to comment
Share on other sites

scorchedcortex

Just to make sure, see if the settings for saving metadata locally are set.

 

Under: server manager > metadata > save metadata locally (or something like save artwork to folder)

 

If your system is grabbing images from the Internet each time it does a media refresh, and then using the Coverart plugin to treat the images, it would definitely run your CPU really really high.

 

At least we can try and rule this

Is this what you are talking about? Please see screen shot. Thanks for your help!

 

 

 

 

post-20271-0-95419300-1441207429_thumb.png

Edited by scorchedcortex
Link to comment
Share on other sites

Yeah, check the box which saves metadata to folders.

 

The scan may take a while because it is going to download all the images and create the XML files nessessary for you collection.

 

The next time you run a scan it should be faster.

 

This will also take up space on your HD, but should be worth it for the faster media scan, and also you will probably see quite a difference in your CPU clock, because it is not scraping all the information from the Internet each time.

 

Let me know if you notice a difference.

 

I think you will.

Edited by chef
Link to comment
Share on other sites

scorchedcortex

Yeah, check the box which saves metadata to folders.

 

The scan may take a while because it is going to download all the images and create the XML files nessessary for you collection.

 

The next time you run a scan it should be faster.

 

This will also take up space on your HD, but should be worth it for the faster media scan, and also you will probably see quite a difference in your CPU clock, because it is not scraping all the information from the Internet each time.

 

Let me know if you notice a difference.

 

I think you will.

I tried everything you suggested with no luck. My CPU stays maxed at 75% or above when idle. It never goes down now! Please see attached log from today.

 

Pease help! This cripples my Emby server and makes it unusable!

 

55f0630faaa83_embymaxcpu.png

server-63577399147.txt

Link to comment
Share on other sites

it looks like the server is probing new videos in that log. that could be the reason for the cpu spike and not the search.

Link to comment
Share on other sites

scorchedcortex

it looks like the server is probing new videos in that log. that could be the reason for the cpu spike and not the search.

So how do I fix that? I don't have any videos in my library.

Edited by scorchedcortex
Link to comment
Share on other sites

rather it's processing new media. just let the scan finish or stop the scan, then try again. if the scan is constantly performing this probing activity, ensure that file timestamps in your media directories aren't changing.

Link to comment
Share on other sites

scorchedcortex

rather it's processing new media. just let the scan finish or stop the scan, then try again. if the scan is constantly performing this probing activity, ensure that file timestamps in your media directories aren't changing.

Sorry to ask Luke, but how do I check the timestamps of my files? Thye are all mp3's on an external drive.

 

Thanks for your help!

Link to comment
Share on other sites

scorchedcortex

rather it's processing new media. just let the scan finish or stop the scan, then try again. if the scan is constantly performing this probing activity, ensure that file timestamps in your media directories aren't changing.

Still no luck. It actually maxed out my CPU well after a scan stopped. I'm talking like 80-95% CPU usage for at least 30 minutes while idle.

 

Could Windows 10 be a problem? Please help!

Link to comment
Share on other sites

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