Jump to content

High CPU usage and the fan is Screaming.


Go to solution Solved by Luke,

Recommended Posts

The.doctor
Posted

Lately my WD My Cloud EX2 Ultra is showing 100 CPU Usage, and the fan is running %100.

If I turn off Emby, the CPU usage and fan drop off.

Ffmpeg appears to be an issue when I look at the WD Process.

High CPU and Memory usage.

What files do you need to see to help me resolve this issue?

I updated to version 4.9.0.8. It did not help.

If I wish to, how do I do a clean install?

Thank you!

The.doctor
Posted

Hi Luke, I have attached the file requested.

Thanks for helping me out.

embyserver.txt

Posted

hi, we'll take a look at it. Thanks for reporting.

Happy2Play
Posted
41 minutes ago, The.doctor said:

Hi Luke, I have attached the file requested.

Thanks for helping me out.

embyserver.txt 32.98 kB · 1 download

Is it still going the same thing?  But probably need to see the log when you restarted Emby and made this post as this 10 minute log doesn't really show anything.

The.doctor
Posted

I did just restart Emby and pull that log. CPU usage is up and down, and the fan is at is showing 10000 RPM.

I will let it run overnight and pull another log. Would the ffmpeg log help?

image.png.38a167309dc5e213cb480d5b52391002.png

Happy2Play
Posted
2 minutes ago, The.doctor said:

I did just restart Emby and pull that log. CPU usage is up and down, and the fan is at is showing 10000 RPM.

I will let it run overnight and pull another log. Would the ffmpeg log help?

image.png.38a167309dc5e213cb480d5b52391002.png

Yes and No but if transcoding is happening ffmpeg is full throttle processing the media.  

The.doctor
Posted

When does transcoding happen? No one is using my Emby right now. Is it something I can stop/kill?

Happy2Play
Posted
12 minutes ago, The.doctor said:

When does transcoding happen? No one is using my Emby right now. Is it something I can stop/kill?

Per that log it would appear someone was

2024-03-12 17:09:33.726 Info App: Bitrate exceeds DirectPlay limit: media bitrate: 15204947, max bitrate: 4000000
2024-03-12 17:09:33.727 Info App: Bitrate exceeds DirectStream limit: media bitrate: 15204947, max bitrate: 4000000
2024-03-12 17:09:36.054 Info VideoEncoder: ProcessRun 'Encoding 64e568' Execute: /mnt/HD/HD_a2/Nas_Prog/embyserver/bin/ffmpeg -loglevel +timing -y -print_graphs_file "/mnt/HD/HD_a2/emby/logs/ffmpeg-transcode-64e568ed-0482-4044-88ef-31dd2ff1186e_1graph.txt" -copyts -start_at_zero -f matroska,webm -re -c:v:0 hevc -noautorotate -i "/shares/Public/Shared Videos/Ferrari.2023.2160p.AMZN.WEB-DL.DDP5.1.Atmos.HDR.H.265-FLUX.mkv" -filter_complex "[0:0]scale@f1=width=1920:height=800,format@f2=pix_fmts=yuv420p[f2_out0]" -map [f2_out0] -map 0:1 -sn -c:v:0 libx264 -g:v:0 144 -maxrate:v:0 3616000 -bufsize:v:0 7232000 -sc_threshold:v:0 0 -keyint_min:v:0 144 -r:v:0 23.9760246276855 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=eng -filter:a:0 "volume=2" -disposition:a:0 default -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 "/mnt/HD/HD_a2/emby/sync/13/13/64e568ed-0482-4044-88ef-31dd2ff1186e.mkv"

What does the Emby Dashboard show is it will show you when something is playing.

example

image.png.7489729a7f9136ed3fe98ab1eac78782.png

Happy2Play
Posted

Dev will have to comment as everything I could find in the forum is years old.  But they are Mono related.

2024-03-13 00:32:10.578 Error Server: Error processing request
	*** Error Report ***
	Version: 4.9.0.8
	Command line: /mnt/HD/HD_a2/Nas_Prog/embyserver/system/EmbyServer.exe -programdata /mnt/HD/HD_a2/emby -ffdetect /mnt/HD/HD_a2/Nas_Prog/embyserver/bin/ffdetect -ffmpeg /mnt/HD/HD_a2/Nas_Prog/embyserver/bin/ffmpeg -ffprobe /mnt/HD/HD_a2/Nas_Prog/embyserver/bin/ffprobe -nolocalportconfig -defaultdirectory /shares/Public -updatepackage emby-server-western_digital-mono-os5-any_{version}_arm.bin -noskia
	Operating system: Linux version 4.14.22-armada-18.09.3 (kman@kmachine) (gcc version 8.3.0 (Debian 8.3.0-2)) #1 SMP Thu Oct 27 08:25:39 UTC 2022 ga-18.09.3 Build-30
	Framework: Mono: 6.12.0.182 (tarball Thu Jan 19 10:28:52 PM UTC 2023)
	OS/Process: X86/X86
	Runtime: mnt/HD/HD_a2/Nas_Prog/embyserver/lib/mono/4.5/mscorlib.dll
	Processor count: 2
	Data path: /mnt/HD/HD_a2/emby
	Application path: /mnt/HD/HD_a2/Nas_Prog/embyserver/system
	System.Net.Sockets.SocketException: System.Net.Sockets.SocketException (0x80004005): The socket is not connected
	  at System.Net.Sockets.Socket.get_RemoteEndPoint () [0x00035] in <592c5cca45dd4995b6e53e31bac2a687>:0 
	  at SocketHttpListener.Net.HttpConnection.get_RemoteEndPoint () [0x00000] in <d1e44c6b1e034cc2a5f3455bdd51f2c0>:0 
	  at SocketHttpListener.Net.HttpListenerRequest.get_RemoteEndPoint () [0x0000b] in <d1e44c6b1e034cc2a5f3455bdd51f2c0>:0 
	  at Emby.Server.SocketSharp.WebSocketSharpRequest.get_RemoteSocketIpAddress () [0x00000] in <fe302e1278c240688ead3a03b2058b68>:0 
	  at Emby.Server.Implementations.HttpServer.BaseRequest.InitRemoteConnectionInfo () [0x0001d] in <d4fc00bd55c04377898945f42c216e82>:0 
	  at Emby.Server.SocketSharp.WebSocketSharpListener.InitTask (SocketHttpListener.Net.HttpListenerContext context, System.Threading.CancellationToken cancellationToken) [0x0006a] in <fe302e1278c240688ead3a03b2058b68>:0 
	Source: System
	TargetSite: System.Net.EndPoint get_RemoteEndPoint()

 

The.doctor
Posted

Happy2Play,

Thanks for taking a look! Hopefully Luke or another Dev will have a solution.

Posted

For the server running on this NAS you probably want to focus your playback on files that can direct play without any server transcoding. This NAS just does not have the horsepower to transcode on the fly.

The.doctor
Posted

Luke, I am confused. I thought that transcoding only happened when a video was being played.

No one is playing anything. The server is not accessible.

As of this morning, WD says that Run App is ON, but I no longer see it in running processes, and the fan and CPU have dropped to normal operation.

I have not tried to restart it, yet.

Is there any other information I can supply that would help diagnosis the problem?

Do you have the proper procedure for doing a clean installation?

  • Solution
Posted

The transcode might have been coming from either the convert media feature or download feature so check the Conversions section of the server dashboard as well as the Downloads section and cancel any jobs if need be.

Posted
Quote

Do you have the proper procedure for doing a clean installation?

I don't think this is your solution. Better to understand what's going on because if you repeat the same setup then you'll just end up in the same place.

The.doctor
Posted

Luke, I rebooted the App and it came back. There was nothing under Conversions. There were some things under Downloads that I deleted.

I have attached a new Emby log.

embyserver.txt

The.doctor
Posted

Luke, I think you found the problem. When I cleared the downloads, things returned to normal.

It appears that is where the problem was. The fan and CPU are acting as they should.

Something to take note of if anyone else experiences the same issue.

I appreciate your and Happy2Play’s assistance.  

Thank you!

  • Thanks 1

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