Luke 37120 Posted September 24, 2018 Share Posted September 24, 2018 Hi i seem to be having this Memory Problem Emby server will run for a few days two or three and will use about 300.00K and then for no reason that i can see it will just start to eat the ram all of it, now i have 32gig in the machine and emby will use 31gig of that and then the machine will stop responding now up until two or three weeks ago i never had this problem emby could run for weeks with no problem or until the temp transcode drive was full then i would have to restart emby to clear the temp folder running on Win 7 64bit with minimal software just Antivirus , backup software , recode software, Ftp software, and remote desktop software as i have looked and found that other people have had memory usage problems in the past does anyone know what could be causing this thanks Please see how to report a problem. thanks ! Link to comment Share on other sites More sharing options...
deallier 8 Posted September 24, 2018 Share Posted September 24, 2018 Hi Luke as requested Emby server log files thank you embyserver part 1.txt embyserver part 2.txt embyserver part 3.txt embyserver part 4.txt embyserver part 5.txt Link to comment Share on other sites More sharing options...
deallier 8 Posted September 24, 2018 Share Posted September 24, 2018 hi back again ok the last set of server logs don't seem to cover the time the problem started however looking though some other posts i found the same problem someone else is having https://emby.media/community/index.php?/topic/61900-server-crashes-after-running-out-of-memory i have the same error over and over in my server log 2018-09-24 16:25:13.609 Error HttpServer: WebSocketException Success *** Error Report *** Version: 3.5.3.0 Command line: C:\Users\admin-dea\AppData\Roaming\Emby-Server\system\EmbyServer.dll Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 32 Program data path: C:\Users\admin-dea\AppData\Roaming\Emby-Server\programdata Application directory: C:\Users\admin-dea\AppData\Roaming\Emby-Server\system System.Net.WebSockets.WebSocketException (997): 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() embyserver1.txt embyserver2.txt 1 Link to comment Share on other sites More sharing options...
Luke 37120 Posted September 25, 2018 Share Posted September 25, 2018 Ok as this is becoming more rare now, it will be easier to work with you on the beta release. If you like, you can setup a portable install of the beta in order to avoid disrupting your stable install. What we want to do is eliminate all of the socket errors and that should resolve everything. Thanks. Link to comment Share on other sites More sharing options...
deallier 8 Posted September 25, 2018 Share Posted September 25, 2018 Hi i was looking through the log files at the time the error started to appear i was trying to accesses the server using emby for android on my mobile phone but because i had a very bad signal i kept losing connection could this have something to do with it as for setting up a portable beta install how do you do that ? the stable setup is only accessed remotely and by about 40 people not all at the same time but sometimes 15 or so at the same time so how do i do this ? thanks Dallier Link to comment Share on other sites More sharing options...
Luke 37120 Posted September 25, 2018 Share Posted September 25, 2018 Instructions are on the download page of our website. Thanks. Link to comment Share on other sites More sharing options...
KingKoopa08 17 Posted October 16, 2018 Share Posted October 16, 2018 I have this also. Which is happening right now during transcoding. I have verbose logging turned on, I have attached embyserver log and I attached a transcode log for it along with screenshot of what emby was doing via HTOP linux command sorted by memory usage. If you notice there are a couple tasks that are high in time along with short times but taking 56% of memory each. The embyservertopfewresults.txt is the top few results in the log file. The full log file is 10gb in size please let me know if you need that I will get it to you another way. Let me know if you have any other questions. OneTranscodeLog.txt embyservertopfewresults.txt Link to comment Share on other sites More sharing options...
Luke 37120 Posted October 16, 2018 Share Posted October 16, 2018 Those socket errors are resolved for the next release and will probably resolve your memory problem. thanks. Link to comment Share on other sites More sharing options...
KingKoopa08 17 Posted October 16, 2018 Share Posted October 16, 2018 Thanks @@Luke Do you have an eta on that release? Those socket errors are resolved for the next release and will probably resolve your memory problem. thanks. Link to comment Share on other sites More sharing options...
Luke 37120 Posted October 16, 2018 Share Posted October 16, 2018 Hopefully soon. Link to comment Share on other sites More sharing options...
acidspike 0 Posted October 23, 2018 Share Posted October 23, 2018 Same problem here. I have stopped the emby server until the fix will be released. Link to comment Share on other sites More sharing options...
Luke 37120 Posted October 23, 2018 Share Posted October 23, 2018 Same problem here. I have stopped the emby server until the fix will be released. Please attach the information requested in how to report a problem. thanks. Link to comment Share on other sites More sharing options...
acidspike 0 Posted October 24, 2018 Share Posted October 24, 2018 (edited) Surely. I have attached a subset of the log file, the WebSocketException thrown thousand times, from log timecode the exception is thrown every milliseconds. emby.log Edited October 24, 2018 by acidspike Link to comment Share on other sites More sharing options...
Luke 37120 Posted October 24, 2018 Share Posted October 24, 2018 Ok thanks. This is resolved for the next release. 1 Link to comment Share on other sites More sharing options...
Gaspar Filmes 8 Posted December 9, 2018 Share Posted December 9, 2018 Maybe it's just me, but after watching for the last 24 hours and trying different things, it seems that my memory usage only rises and keeps rising after opening the Emby dashboard. If I don't open the dashboard it does not climb at all unless a user connects, but then drops after a few minutes back to normal. Only seems to rise after opening the dashboard and keeps climbing even after closing the dashboard. Attached is a small log of doing this. Not sure if this helps, but figured it was worth mentioning. i'm experiencing that problem, when my clients are watching and i'll go check the monitor (dashboard) sunddenly the ram consumption turn up and got the entire RAM until freeze the system and have to restart, always that. Checking my logs, are repetedly this: 2018-12-09 03:15:16.536 Error HttpServer: WebSocketException Success *** Error Report *** Version: 3.5.3.0 Command line: C:\emby\system\EmbyServer.dll Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 6 Program data path: C:\emby\programdata Application directory: C:\emby\system System.Net.WebSockets.WebSocketException (997): 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() and again and again, until freeze the system and catch all RAM. I'm with this problem almost 3~4 months, this ridiculous, i'm having to use a programa to automate, called Kiwi Application Monitor to restart the Embyserver.exe automatically when it reachs 2gb of ram. Its happen when I acess dashboard for monitoring my clients. I have only the Backup plugin installed and turned off DLNA as a feedback for try out a solution from Luke a few months ago, but, no lucky. Link to comment Share on other sites More sharing options...
Luke 37120 Posted December 9, 2018 Share Posted December 9, 2018 It's resolved for the upcoming 3.6 release. If you need immediate relief you can always jump on the beta channel. Thanks. 1 Link to comment Share on other sites More sharing options...
Gaspar Filmes 8 Posted December 9, 2018 Share Posted December 9, 2018 It's resolved for the upcoming 3.6 release. If you need immediate relief you can always jump on the beta channel. Thanks. Thank you a lot Link to comment Share on other sites More sharing options...
lepitismak 1 Posted December 24, 2018 Share Posted December 24, 2018 when 3.6 ver will be release on stable ver? Link to comment Share on other sites More sharing options...
Luke 37120 Posted December 24, 2018 Share Posted December 24, 2018 Very soon. Thanks. Link to comment Share on other sites More sharing options...
Gaspar Filmes 8 Posted February 17, 2019 Share Posted February 17, 2019 Hey! G evening for everyone!, unfortunately here we go again: I'm on V4.0.2, and now, its now occurring in random time, not even going through the dashboard memory consumption rises. I'm having to use the Kiwi Monitor program again to 'divert' the machine to a full stop. log attached. embyserver-63685956530.zip Link to comment Share on other sites More sharing options...
Gaspar Filmes 8 Posted February 19, 2019 Share Posted February 19, 2019 Any help please? Hey! G evening for everyone!, unfortunately here we go again: I'm on V4.0.2, and now, its now occurring in random time, not even going through the dashboard memory consumption rises. I'm having to use the Kiwi Monitor program again to 'divert' the machine to a full stop. log attached. Link to comment Share on other sites More sharing options...
Luke 37120 Posted February 19, 2019 Share Posted February 19, 2019 Can you provide more information about your server setup? Thanks. Link to comment Share on other sites More sharing options...
Gaspar Filmes 8 Posted February 21, 2019 Share Posted February 21, 2019 Can you provide more information about your server setup? Thanks. VPS Windows server 2012 R2/ Intel XEON E5-1620, 3.60GHz, 6gb ram, 6/6 sockets/cores, only using .strm and local music (.mp3) Link to comment Share on other sites More sharing options...
Luke 37120 Posted March 18, 2019 Share Posted March 18, 2019 Are you still having an issue with this? Link to comment Share on other sites More sharing options...
oldschool 7 Posted November 19, 2019 Share Posted November 19, 2019 I've just recently started to see 95%-98% usage on my server. I removed all plugins except server config backup and trailers, and I'm still having the problems. I thought maybe it was a drivepool problem, but when I start my server, Emby used to start as a service until recently. I can now see that when I manually start Emby, the memory usage will go from 9% and immediately rocket to 96% within a minute after starting, and I can't recover that memory if I close the emby services on the PC. I have to reboot to reclaim that memory. I'm on Windows Server 2K8 R2 with 32GB of memory. I thought I might have figured out what my problem was. Under Settings > Transcoding, I had Hardware Acceleration set to "yes", but I'm running server hardware (Emby is actually inside a VM) without any kind of graphics card on my server. When I chose "No", the physical memory on the server went from 9% to 10% and stayed there after reboot for about a minute or two, and then it rocketed back up to 94%. embyserver.txt Link to comment Share on other sites More sharing options...
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