Jump to content

Emby utilizing all of systems resources


Recommended Posts

Posted

I recently switched from emby on debian to emby on docker through Unraid. It has happened twice now where emby will utilize all available ram on my server. To the point the CPU then maxes out trying to handle all the swap requests. The only fix I have is to restart the emby docker. It has happened on different days and times, and while I'm doing different things. The first time I was streaming a show the other time, no one was using the server and I was simply trying to connect. 

I do not have logs from the first time but last time it happened was yesterday(11-7-18) and I noticed it around 11pm est.

 

Specs: i7-3770k

Ram: 24gb DDR3 

OS: Unraid 6.6.3

Emby: Version 3.5.3.0

 

This is a snippet of my log file. I can't upload the full file was it's 350MB. The daily log file was 4m lines. This was repeated for about 1/3 of that.

 

2018-11-07 21:46:48.843 Error HttpServer: WebSocketException Success
*** Error Report ***
Version: 3.5.3.0
Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Unix 4.18.15.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: /config
Application directory: /system
System.Net.WebSockets.WebSocketException (0x80004005): net_WebSockets_InvalidState
   at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
   at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()
System.Net.WebSockets.WebSocketException
   at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
   at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()
 
2018-11-07 21:46:48.843 Error HttpServer: WebSocketException Success
*** Error Report ***
Version: 3.5.3.0
Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Unix 4.18.15.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: /config
Application directory: /system
System.Net.WebSockets.WebSocketException (0x80004005): net_WebSockets_InvalidState
   at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
   at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()
System.Net.WebSockets.WebSocketException
   at SocketHttpListener.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
   at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync(ArraySegment`1 buffer, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at SocketHttpListener.Net.WebSockets.WebSocket.ReceiveAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at EmbyServer.SocketSharp.SharpWebSocket.StartReceive()
 
 
 
 
I am also seeing lots of comments like this and i'm not sure why.
2018-11-07 21:41:40.062 Error App: Error validating images for /mnt/tempdata/seeding/Stargate.SG-1.S03.WS.NTSC.DVD.DD5.1.X264Hi10-LiGHTSPEED/stargate.sg-1.e046.seth.ws.ntsc.dvd.dd5.1.x264hi10-lightspeed.mkv
*** Error Report ***
Version: 3.5.3.0
Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Unix 4.18.15.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: /config
Application directory: /system
System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/tempdata/seeding/Stargate.SG-1.S03.WS.NTSC.DVD.DD5.1.X264Hi10-LiGHTSPEED'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options)
   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive)
   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path)
   at MediaBrowser.Controller.Providers.DirectoryService.GetFiles(String path)
   at MediaBrowser.LocalMetadata.Images.EpisodeLocalLocalImageProvider.GetImages(BaseItem item, IDirectoryService directoryService)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList()
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(BaseItem item, IEnumerable`1 providers, IDirectoryService directoryService)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
System.IO.DirectoryNotFoundException
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options)
   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive)
   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path)
   at MediaBrowser.Controller.Providers.DirectoryService.GetFiles(String path)
   at MediaBrowser.LocalMetadata.Images.EpisodeLocalLocalImageProvider.GetImages(BaseItem item, IDirectoryService directoryService)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList()
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(BaseItem item, IEnumerable`1 providers, IDirectoryService directoryService)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
 
2018-11-07 21:41:40.062 Error App: Error in FFProbeProvider.HasChanged
*** Error Report ***
Version: 3.5.3.0
Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Unix 4.18.15.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: /config
Application directory: /system
System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/tempdata/seeding/Stargate.SG-1.S03.WS.NTSC.DVD.DD5.1.X264Hi10-LiGHTSPEED'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options)
   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFilePaths(String path, String[] extensions, Boolean enableCaseSensitiveExtensions, Boolean recursive)
   at MediaBrowser.Controller.Providers.DirectoryService.GetFilePaths(String path, Boolean clearCache)
   at MediaBrowser.Providers.MediaInfo.SubtitleResolver.AddExternalSubtitleStreams(List`1 streams, String folder, String videoPath, Int32 startIndex, IDirectoryService directoryService, Boolean clearCache)
   at MediaBrowser.Providers.MediaInfo.SubtitleResolver.GetExternalSubtitleStreams(Video video, Int32 startIndex, IDirectoryService directoryService, Boolean clearCache)
   at MediaBrowser.Providers.MediaInfo.SubtitleResolver.GetExternalSubtitleFiles(Video video, IDirectoryService directoryService, Boolean clearCache)
   at MediaBrowser.Providers.MediaInfo.FFProbeProvider.HasChanged(BaseItem item, IDirectoryService directoryService)
   at MediaBrowser.Providers.Manager.MetadataService`2.HasChanged(BaseItem item, IHasItemChangeMonitor changeMonitor, IDirectoryService directoryService)
System.IO.DirectoryNotFoundException

 

Posted

Hi, this repeated error is resolved for the next release. Thanks.

Posted

thanks, would these be the cause of Emby randomly taking all available ram on my system?

Posted

Probably, yes. If you need immediate relief you could try the beta channel.

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