Jump to content

Library shenanagins with latest emby versions


Recommended Posts

isamudaison
Posted

So I've 'resolved' my emby hanging by removing very large paths that couldn't be resolved, but now I've got a problem with mono-sgen pegging my CPU.

 

Attached is a log, and it's obvious there's something very wrong with the library monitoring (notice the massive 'type change detected' entries). 

 

Here's the process that's hogging all my CPU:

 

/usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser/Server/Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh

 

 

emby_debug.txt.tar.gz

Posted

Do you see the same behavior if you disable the realtime monitor?

isamudaison
Posted

Do you see the same behavior if you disable the realtime monitor?

I don't seem to have that option under 'library->advanced' (or anywhere, really...)

mastrmind11
Posted

I don't seem to have that option under 'library->advanced' (or anywhere, really...)

it's per library, so click on each and disable it.

isamudaison
Posted

I see some oddness with realtime monitoring... I copied a file over to one of the library locations and pulled up a system monitor to see what happens.  After a minute or so, the 'mono-sgen' process kicks up CPU usage quite a bit, and then it started to settle down, and then it kicked up even more, and started to settle down, and then it kicked up even more... it did this for a few minutes, but then finally settled back down to zero.  I could see this happening and never recovering as being a real possibility.

isamudaison
Posted

it's per library, so click on each and disable it.

That makes sense, I've disabled them all and set the media library scan to hourly, I'll keep an eye on it.

isamudaison
Posted

No bueno... I've added back my home video category and as it was scraping, the mono process spiked CPU and emby hung... I'm guessing there needs to be a gdb dump to figure this out?

isamudaison
Posted

Well this is fun... every time I attempt to attach to the emby process, gdb throws an error and then emby hangs.  Ever seen this error from gdb?

 

"../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory"?

isamudaison
Posted (edited)

Here's as much as I could get (emby is in the hung state with gdb attached, I performed a bt full (see attached)

 

I think the real problem is there are over 2000 threads running...

 

*Edit: added 'full' thread dump

gdb.txt

Edited by isamudaison
isamudaison
Posted

Wow, The mono peoples' ears must've been burning :)  They've just pushed 4.8 to stable.  I've upgraded and will monitor any improvements.

Posted

Wow, wasn't expecting that just yet. Thanks for the info.

isamudaison
Posted

Just a quick update: so far, so good.  No apparent freezing/crashing, and I've also enabled real-time monitoring.  I'll give it another day before I call it 'solved' :)

 

Until then I'd highly recommend updating to the new mono to anyone having library scanning issues

Posted

Very interesting, thanks for the info. For us we're not likely to put 4.8 into our stable branch yet but we'll probably start looking at it in beta soon. Thanks.

isamudaison
Posted

Let's call this solved... It's been Rock solid after the upgrade.

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