Eddie 12 Posted January 12, 2020 Posted January 12, 2020 (edited) Hello im running Kubuntu 18.04 Emby was running real quiet on my server with barely any CPU load even when people were using it I recently upgrade to 4.3.1.0 and now im noticing a process run at nearly or close to 100% and i wanted to know what it is system/embyserver -programdata /config -ffdetect /bin/ffdetec -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode3 I attached 2 pictures one with a long uptime and the other after a fresh update and restart and letting it sit for a few minutes without anyone logged in Thanks in Advance Edited January 15, 2020 by Eddie
Luke 42077 Posted January 12, 2020 Posted January 12, 2020 Hi there, please attach the emby server log. Thanks.
Eddie 12 Posted January 15, 2020 Author Posted January 15, 2020 Sorry for the delay response i didnt click to follow topic and i thought i did I am going to try and figure out how to revert to old docker version since i deleted it just to test in the mean time thanks again embyserverlog.txt
Luke 42077 Posted January 15, 2020 Posted January 15, 2020 Sorry for the delay response i didnt click to follow topic and i thought i did I am going to try and figure out how to revert to old docker version since i deleted it just to test in the mean time thanks again This log covers nearly 24 hours but doesn't have a whole lot of activity. At what point was cpu usage high?
Eddie 12 Posted January 15, 2020 Author Posted January 15, 2020 (edited) As soon as I reboot the computer that process I took a screenshot of starts spiking no one is even logged into the computer except to me SSHing into it Edited January 15, 2020 by Eddie
Luke 42077 Posted January 15, 2020 Posted January 15, 2020 Does it go down though? The log you provided shows the guide refresh scheduled task is running. Is it only when that task runs?
Eddie 12 Posted January 15, 2020 Author Posted January 15, 2020 (edited) The server stays up it does not crash There are no scans happening right now and it still pegging the cpu Any idea what this is? system/embyserver -programdata /config -ffdetect /bin/ffdetec -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode3 Edited January 15, 2020 by Eddie
Luke 42077 Posted January 15, 2020 Posted January 15, 2020 That's the server's launch command line. Can you attach an another server log example? Thanks.
Eddie 12 Posted January 17, 2020 Author Posted January 17, 2020 (edited) So i installed the backup plugin and restarted emby using the web interface and apparently emby is no longer pegging the cpu and im back to normal cpu loads lik 2% at idle .... no idea why a reboot of the computer didnt fix the problem but installing a backup plugin and rebooting emby via the web interface fixed the problem.. oh well saved me from having to nuke and pave... thanks for the response anyways you guys are usually very responsive Edited January 17, 2020 by Eddie
Eddie 12 Posted January 27, 2020 Author Posted January 27, 2020 Well i dunno what happened but i used emby again today and it felt sluggish so i ssh in and i see cpu at 100% again Im going to nuke and pave and see if that accomplishes anything just wanted to update you This server pretty much runs headless and is only used to serve emby and has a airsonic server running as well
Luke 42077 Posted January 30, 2020 Posted January 30, 2020 Can you attach the server log from that session? Thanks.
kmcmurtrie 3 Posted February 3, 2020 Posted February 3, 2020 I'm getting 100% CPU of a single core per recording, per playback, and often it remains after playback. Since installing Emby, I've had to restart it at least once a day to keep power consumption reasonable. There's nothing interesting in the logs and I'm not transcoding. 'strace -f' lists sched_yield as fast as the Terminal can go. I've included a snippet below that includes some other calls. This shouldn't be using more than a few percent CPU since it's never doing more than streaming between file and HTTP. I've tried turning off real-time monitoring of changes, which helped somewhat. [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 14682] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 14682] futex(0x7f2930002740, FUTEX_WAIT_PRIVATE, 0, {tv_sec=19, tv_nsec=999999784} <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 6599] futex(0x7f292c00c0e4, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] sched_yield( <unfinished ...> [pid 6599] <... futex resumed> ) = 1 [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] sched_yield( <unfinished ...> [pid 11076] sched_yield( <unfinished ...> [pid 6965] <... sched_yield resumed> ) = 0 [pid 11076] <... sched_yield resumed> ) = 0 [pid 6965] sched_yield( <unfinished ...> [pid 11076] futex(0x7f295c010b70, FUTEX_WAIT_PRIVATE, 0, {tv_sec=19, tv_nsec=999999367} <unfinished ...> [pid 6965] <... sched_yield resumed> ) = 0 [pid 6599] futex(0x7f2928006f60, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> [pid 6965] sched_yield( <unfinished ...> [pid 16319] <... futex resumed> ) = 0 [pid 6965] <... sched_yield resumed> ) = 0 [pid 16319] futex(0x7f2928006f10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...> [pid 6599] <... futex resumed> ) = 1 [pid 6965] sched_yield( <unfinished ...> [pid 6599] futex(0x7f2928006f10, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> [pid 6965] <... sched_yield resumed> ) = 0 [pid 16319] <... futex resumed> ) = 0 [pid 6965] sched_yield( <unfinished ...> [pid 16319] futex(0x7f2928006f10, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> [pid 6965] <... sched_yield resumed> ) = 0 [pid 16319] <... futex resumed> ) = 0
Luke 42077 Posted February 3, 2020 Posted February 3, 2020 Hi there @@kmcmurtrie, please attach the emby server log. THanks.
Eddie 12 Posted February 4, 2020 Author Posted February 4, 2020 Well i deleted the container and started it up back up again but im still at 100% When i delete the container my cpu goes back to normal I save all the configs on a NFS share on my FREENAS so loading the new emby container did pretty much nothing I just clicked the debug log mode thing hoping that would help.. i am the only one use my emby server at the moment and it stays at 100% without anyone watching anything and dashboard doesnt show anything transcoding etc. let me know what you think... by anychance do you have docker containers of old images.. id be willing to try old ones and keep upgrading until we find out where and when this bug started embyserver-63716371200.txt embyserver.txt ffmpeg-remux-4e4f75eb-1adf-4f49-b621-42854e5e4ee5_1.txt
Luke 42077 Posted February 4, 2020 Posted February 4, 2020 Well i deleted the container and started it up back up again but im still at 100% When i delete the container my cpu goes back to normal I save all the configs on a NFS share on my FREENAS so loading the new emby container did pretty much nothing I just clicked the debug log mode thing hoping that would help.. i am the only one use my emby server at the moment and it stays at 100% without anyone watching anything and dashboard doesnt show anything transcoding etc. let me know what you think... by anychance do you have docker containers of old images.. id be willing to try old ones and keep upgrading until we find out where and when this bug started You're playing Live TV which has to convert the audio on the fly. There's going to be some cpu usage there. Additionally two extra things, the live tv guide refresh is running in the background as well as lots of attempts to download subtitles. All of those things happening at the same time will result in come cpu usage. Try turning off downloading subtitles for your library, or at least moving the schedule of the download subtitles scheduled task to time that is off hours for you so that it doesn't disrupt your normal usage. And then try stopping the live tv guide refresh scheduled task so that it's not running at the same time you're trying to play.
Eddie 12 Posted February 4, 2020 Author Posted February 4, 2020 i was using live tv yesterday.. today i havent used it all and its till 100%.. ill turn off the sub thing and see if that helps.. brb
kmcmurtrie 3 Posted February 4, 2020 Posted February 4, 2020 Clear logs, start server, stream live from HDHomeRun tuner to Android Emby client, wait, stop client, stop server, archive logs. 192.168.1.100 is the tuner and 192.168.1.112 is the Android phone. CPU was 110% while playing. logs.tar
Luke 42077 Posted February 4, 2020 Posted February 4, 2020 Clear logs, start server, stream live from HDHomeRun tuner to Android Emby client, wait, stop client, stop server, archive logs. 192.168.1.100 is the tuner and 192.168.1.112 is the Android phone. CPU was 110% while playing. Hi, I don't see any text files in here. Can you try zipping it up instead. But I can probably predict the answer, which is transcoding video on the fly. You do realize this is a CPU intensive task, right? Let's see the server logs first though before settling on anything.
kmcmurtrie 3 Posted February 4, 2020 Posted February 4, 2020 Hi, I don't see any text files in here. Can you try zipping it up instead. But I can probably predict the answer, which is transcoding video on the fly. You do realize this is a CPU intensive task, right? Let's see the server logs first though before settling on anything. You can't open a tar file? OK, here's a zip. It's not showing re-compression. Maybe shuffling packets in the TS, but that shouldn't be a big deal. Last time I checked, the HDHomeRun already did stream clean-up. logs.zip
Luke 42077 Posted February 4, 2020 Posted February 4, 2020 You can't open a tar file? OK, here's a zip. It's not showing re-compression. Maybe shuffling packets in the TS, but that shouldn't be a big deal. Last time I checked, the HDHomeRun already did stream clean-up. This is only about a one minute log. The server was still in process of running it's startup processes when you started the live stream. Try giving it a little more time.
kmcmurtrie 3 Posted February 4, 2020 Posted February 4, 2020 What? The server starts up in 5 seconds. I verified that CPU usage was nearly zero before I started streaming and after I stopped streaming.
Luke 42077 Posted February 4, 2020 Posted February 4, 2020 How are you determining that cpu usage is high?
Eddie 12 Posted February 5, 2020 Author Posted February 5, 2020 (edited) You're playing Live TV which has to convert the audio on the fly. There's going to be some cpu usage there. Additionally two extra things, the live tv guide refresh is running in the background as well as lots of attempts to download subtitles. All of those things happening at the same time will result in come cpu usage. Try turning off downloading subtitles for your library, or at least moving the schedule of the download subtitles scheduled task to time that is off hours for you so that it doesn't disrupt your normal usage. And then try stopping the live tv guide refresh scheduled task so that it's not running at the same time you're trying to play. I have been starting and stopping this container a million times so i wonder if it keeps trying to do something and i keep stopping it Question #1 Is this how i turn off subtitles? i click on my Library then go to > Subtitle downloaders > uncheck Open Subtitles ? Also i have been using emby since it was called Media Browser and i have never had this issue so i dont know why its popping up now Question #2 If this works how can i use the auto subtitle downloader without hammering my cpu Question #3 can i schedule Live TV guide refresh for a specific time.. like 2 am? @@cayars @@Happy2Play Edited February 14, 2020 by Luke
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now