Jump to content

Emby memory usage is too high under Docker


Recommended Posts

Posted

我在 Docker 下部署了 Emby 服务器。客户端通过播放视频来增加内存使用量。即使视频停止,客户端退出后,内存仍然没有释放。一开始,容器没有内存使用限制,可以无限期地消耗 8G 的内存。将容器限制在3G内存后,迅速消耗了3G内存,无法自动释放内存。请解决内存问题。我尝试了 Emby 分支 Jellyfin,它没有这个问题。https://private-user-images.githubusercontent.com/109650712/478334555-1db54e1c-bbbb-4759-95b1-bee85cd91afc.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTUyNDM0ODMsIm5iZiI6MTc1NTI0MzE4MywicGF0aCI6Ii8xMDk2NTA3MTIvNDc4MzM0NTU1LTFkYjU0ZTFjLWJiYmItNDc1OS05NWIxLWJlZTg1Y2Q5MWFmYy5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgxNVQwNzMzMDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zODc5ODg5MDU4NTM0NWJiNGViOWU2MGE0ZTBhZmE0YTdhOTM1ZTYxZjQyZDZhNGFlOThmYjE4ZDg3OTYwYWYxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.GmR3j8aQUR_XwSAwHspxOS8SVGeZCSg4eIlnyivHa0U

 

https://private-user-images.githubusercontent.com/109650712/478343611-1b7446e3-6ff1-474b-95f5-5b6cb8486684.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTUyNDM1MDYsIm5iZiI6MTc1NTI0MzIwNiwicGF0aCI6Ii8xMDk2NTA3MTIvNDc4MzQzNjExLTFiNzQ0NmUzLTZmZjEtNDc0Yi05NWY1LTViNmNiODQ4NjY4NC5tcDQ_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgxNVQwNzMzMjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZjAzYzgwYzYxYzE0Nzg4Zjk5NmI4NjY1ZDhlYzhjMzJlNmE0MmExZTUyYjI0MzNkOWQwMmMxYmZjZDAzMWI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.iT5nhcTXe6B7NKMM3i_GzVHzHGaZTXPkBOZ4tuMNLJM

 

Posted

I deployed the Emby server under Docker. The client increases memory usage by playing videos. Even after the video stops and the client exits, the memory is still not released. At the beginning, the container had no memory usage limit and could consume 8G of memory indefinitely. After limiting the container to 3G of memory, it quickly consumed 3G of memory and could not automatically release memory. Please solve the memory problem. I tried the Emby branch Jellyfin and it does not have this problem.

 

Posted

Version 4.8.11.0 The latest Docker image version

Posted

@Luke@seanbuffThis is my log file. There is a problem with high memory usage and it will not be released automatically. I found that the memory will increase during movie playback, fast forward and rewind will also increase the RAM usage. After the movie ends, the memory usage remains and cannot be automatically released. I also turned off the transcoding and decoding functions in the background, and the temporary transfer directory is not opened.

seanbuff
Posted
6 minutes ago, aaaa123 said:

This is my log file.

Hi @aaaa123Did you forget to attach something here?

Posted

@Luke@seanbuffModerator, what is the reason for this? Now that I have set a RAM limit on my container, the RAM will be full and not released soon. However, if there is no limit, the RAM will be full of the entire memory size of my host machine. This problem is terrible.

Posted

HI, we are looking into it. Thanks.

Posted

@Luke这是不是不正常的,大概什么时候调整好,我需要更新到什么版本可以解决这个问题

Posted
41 minutes ago, aaaa123 said:

@Luke这是不是不正常的,大概什么时候调整好,我需要更新到什么版本可以解决这个问题

HI, we are working on it. Thanks.

Posted

@LukeCould you tell me what causes this, what kind of repairs are needed, and how long will it take?

Posted

Luke@seanbuffWhat is the current situation of the moderator? What is the reason for the problem of increasing memory usage and not releasing it in the log? When can it be fixed?

seanbuff
Posted
1 hour ago, aaaa123 said:

Luke@seanbuffWhat is the current situation of the moderator?

Not sure what you are asking here. Dev has already commented that they are working on it.

Please exercise some patience and wait for an update, thanks.

  • Agree 1
  • Thanks 1
Posted

Hi, we are working on it. Thanks.

  • 3 weeks later...
Posted

Hi, we are hoping that this will be better for you with the upcoming 4.9 server release. Thanks.

Posted

@Luke@seanbuffWhen will the 4.9 server be updated to the official version? I see it is still 4.9 bateb. When will the official 4.9 be released?

Posted

Yes it will be soon. Thanks.

Posted

@LukeI see there are many beta versions now. When will the official version be updated? I need to solve my memory full problem as soon as possible. This problem is now seriously affecting my use. Thank you for the time or approximate time of release. I really need to solve this memory full problem.

Posted
On 9/15/2025 at 3:07 AM, aaaa123 said:

@LukeI see there are many beta versions now. When will the official version be updated? I need to solve my memory full problem as soon as possible. This problem is now seriously affecting my use. Thank you for the time or approximate time of release. I really need to solve this memory full problem.

Hi, we are just working through one final issue and then we'll be releasing. Thanks.

  • 5 weeks later...

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