# Plex Media Server Docker hogs CPU

**URL:** <https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728>\
**Category:** Plex Media Server\
**Tags:** server-synology\
**Created:** [March 7, 2022, 10:03pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728 "2022-03-07T22:03:41Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 7, 2022, 10:03pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/1 "2022-03-07T22:03:42Z")

</div>

Server Version#: Docker - version.txt has:

```auto
version=beta
plex_build=linux-x86_64
plex_distro=debian

```

With the help of @ChuckPa I was able to change my PMS from a Synology app to a Docker container. Things seemed to have been running smoothly. Then I noticed a spike in CPU usage and started capturing data.

 ![Screenshot-2022-03-07@13:50:59](https://global.discourse-cdn.com/plex/original/4X/b/1/b/b1b6086762cfaa3231d4199868eb066f772d1e21.jpeg)

 ![Screenshot-2022-03-07@13:51:07](https://global.discourse-cdn.com/plex/original/4X/8/d/0/8d00d880645ab2175ff3286d06ffe15cd8d73275.png)

 ![Screenshot-2022-03-07@13:51:16](https://global.discourse-cdn.com/plex/original/4X/7/5/2/752d8c5ed940df9acae1fc13c1fc284b53dec903.png)

 ![Screenshot-2022-03-07@13:51:36](https://global.discourse-cdn.com/plex/original/4X/2/e/e/2ee3c5966039385e9c0f4ff481e897a224ccef7d.png)

It has since settled down to around 50% CPU but even that seems high. I only have one person streaming at this time. I thought that using a Docker container would allow me to use the hardware transcoder in my Synology DS1019+ but this seems to instead being taxing my CPUs more!

Why would this one user tax my system that much?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [March 7, 2022, 11:20pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/2 "2022-03-07T23:20:59Z")

</div>

@adefaria

Is the user burning subtitles ?

If you’re able to transcode normally otherwise until this instant, the most likely cause is subtitle burning.

Synology CPUs are VERY weak. Burning subtitles into high bit rate video will cause huge (pegging) load.

Which version of PMS is reported in Settings - Server - General please ?

---

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 8, 2022, 4:36pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/3 "2022-03-08T16:36:57Z")

</div>

Server - General reports Version 4.76.1

Subtitle burning? What’s that? This is a remote user who is not very sophisticated and IIRC she was watching a program that was in English and she’s a native English speaker. I don’t think she was doing any subtitling at all.

Can a remote user cause subtitle burning on my server and thus cause such high usage? Is there a way to turn off that capability?

BTW, how would I verify that I am indeed using hardware transcoding?

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [March 8, 2022, 7:30pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/4 "2022-03-08T19:30:28Z")

</div>

> [@adefaria](#):
>
> Server - General reports Version 4.76.1

Please verify your Plex Media Server version.

4.76.1 is the version of Plex Web.

Check the Plex Media Server version at [Settings](https://app.plex.tv/desktop/#!/settings/web/general) → _Server\_Name_ → General or your list of [Authorized Devices](https://app.plex.tv/desktop/#!/settings/devices/pms).

> [@adefaria](#):
>
> BTW, how would I verify that I am indeed using hardware transcoding?

You would see `(hw)` on the Plex Dashboard. Transcoding is a two step process: The video is decoded from the current format, then encoded to the desired format. Ideally, hardware acceleration is used for both steps.

Example: The first `(hw)` is for decoding the video, the second for encoding.  
 ![hw-accel](https://global.discourse-cdn.com/plex/original/4X/e/5/b/e5bb37c8f75365880f6c48eaf09dd1fd134a9e16.jpeg)

> [@adefaria](#):
>
> Subtitle burning? What’s that?

It is not always possible to direct play or direct stream subtitles. Sometimes they must be incorporated into the video stream, becoming part of the video frame. This is called “burning” subtitles.

Subtitle burning uses the CPU, even when hardware accelerated transcoding is in use. Due to the weak CPU in Synology NAS, this generally results in high CPU utilization. The end-user may also experience buffering if the CPU cannot burn the subtitles in real time.

Plex clients vary widely in their ability to handle subtitles. There is no master list of subtitle capabilities across Plex clients. However, in general:

- Enabling SSA/ASS subtitles results in subtitle burning on almost any Plex client. The Plex desktop apps seem to handle SSA/ASS without requiring burning.
- Enabling image subtitles, PGS & VOBSUB, on Plex SmartTV apps results in subtitle burning.
- If the audio is transcoding, enabling any subtitle on Plex SmartTV apps results in subtitle burning.
- The Plex Android & Android TV app will play PGS/VOBSUB/SRT subtitles w/o burning. SSA/ASS subtitles are still burned into the video.

> [@adefaria](#):
>
> Can a remote user cause subtitle burning on my server and thus cause such high usage?

Yes. Any user, whether local or remote, can cause subtitle burning by enabling subtitles that match the conditions mentioned above.

> [@adefaria](#):
>
> Is there a way to turn off that capability?

No.

Technically, you could disable video transcoding, but that is not feasible for most people. No transcoding means no subtitle burning. However, if the video needs to be transcoded due to bandwidth limits or other non-subtitle related reasons, Plex would simply refuse to play the video and the user will receive a (somewhat vague) error message, “the server is not strong enough to convert the video.”

---

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 8, 2022, 9:16pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/5 "2022-03-08T21:16:40Z")

</div>

PMS Version 1.25.6.5577

Re: (hw) in the Plex Dashboard. Thanks. I’ll look for that.

Re: Subtitle burning - Again, I really don’t think this user was requesting subtitles in any form. They are using BRAVIA 4K GB ATV3.

Q: How do you enable/disable SSA/ASS subtitles?  
Q: How do you enable subtitles for PGS & VOBSUB?

Again, I really doubt that this remote user is trying to use subtitles at all. In fact, I don’t think she even knows that subtitles are a possibility/option. I’ve used subtitles. I have a Vizio TV but I’m also the PMS owner and my TV and PMS are hardwired so I don’t think I need to transcode often.

I also know that some of my users have used subtitles in the past but I have never seen such a violent over-demand of CPU from remote users. It could happen as I don’t monitor the PMS CPU usage like a hawk.

Is there something on my end that I can do to verify that this subtitle burning is happening when I see the CPU usage spike on PMS?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [March 9, 2022, 12:10am UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/6 "2022-03-09T00:10:09Z")

</div>

@adefaria

In the player settings, for Subtitles → Set to Automatic.

If they are set to `Always burn` , you will always get subtitle burning.  
If set to “Only Image Formats” then PGS, VOBSUB, and DVDRIP will be burned

Note: Some clients word this differently.

---

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 9, 2022, 12:33am UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/7 "2022-03-09T00:33:03Z")

</div>

So to be clear, on my friend’s BRAVIA 4K GB ATV3 I need to locate the settings and set Subtitles → Automatic or Only Image Formats (speaking of which I don’t think I have any PGS, VOBSUB, or DVDRIP files).

Sidenote seems odd that a client setting that is apparently defaulted to a value that could tax the remote server that much. Most of my users have no idea that their clients even have settings!

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [March 9, 2022, 2:15am UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/8 "2022-03-09T02:15:13Z")

</div>

when you see your server being hogged,

1. Look at what’s playing.
2. Go to those titles in your library
3. Hover on the poster → Click the ellipsis → Get Info.
4. Look for subtitles.

Folks often have embedded subtitles they didn’t know they were carrying

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [March 9, 2022, 4:21am UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/9 "2022-03-09T04:21:45Z")

</div>

@adefaria Based on the Plex Dashboard screenshot in your first post, you are not using hardware accelerated transcoding. If you were, you would see `(hw)` in the video transcode section. Transcoding using the CPU, instead of the GPU, will also make CPU utilization spike, no matter what is happening with subtitles.

In Settings → Transcoder, make sure you have:

- `Disable video stream transcoding` = NOT selected.
- `Use hardware acceleration when available` = selected
- `Use hardware-accelerated video encoding` = selected

Also, review [Synology FAQ 28. Using Docker for HW trancode & Tone Mapping - How To](https://forums.plex.tv/t/synology-faq-questions-answers-and-a-few-how-tos/490215/35).

Make sure Plex Docker can access the GPU in the Celeron processor: `--device=/dev/dri:/dev/dri \`.

Reviewing your [prior conversation](https://forums.plex.tv/t/going-from-synology-plex-app-docker-image/776995/) with @ChuckPA may also help.

---

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 9, 2022, 3:47pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/10 "2022-03-09T15:47:22Z")

</div>

I do have `device=/dev/dri:/dev/dri` set. What I didn’t have set was `Use hardware acceleration when available` was **not** selected.

@ChuckPa I looked at that episode’s info and didn’t see any mention of subtitles. Perhaps this must be done when the server is being hogged. As I said though, this is the first time I’ve seen the server being hogged like that. And assuming I now have hardware accelerated transcoding hopefully properly configured I may not see this issue again. I’ll keep my eyes opened.

---

<div class="post-metadata">

**Author:** ![sixxnet](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sixxnet](https://forums.plex.tv/u/sixxnet)\
**Post date:** [March 9, 2022, 4:03pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/11 "2022-03-09T16:03:09Z")

</div>

In the client settings turn remote and local quality to maximum or original. This is the most likely cause for the transcoding which is rarely needed to begin with unless your internet is slow.

---

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 9, 2022, 4:17pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/12 "2022-03-09T16:17:09Z")

</div>

What are client settings? Which client? Where do I find these settings?

Also wouldn’t turning up the quality possibly cause more transcoding not less? Finally, when you say “your internet” do you mean my upload speed or a remote user’s download speed?

---

<div class="post-metadata">

**Author:** ![pl\_5309](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pl\_5309](https://forums.plex.tv/u/pl_5309)\
**Post date:** [March 9, 2022, 4:36pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/13 "2022-03-09T16:36:22Z")

</div>

Need some time in the support articles.

> **[Support Articles | Plex Support](https://support.plex.tv/articles/)**

Client settings for Android

> **[Settings: Android TV | Plex Support](https://support.plex.tv/articles/settings-android-tv/)**
>
> General Device Name Friendly name for the device. Experience Play theme music Choose if you would like the Theme Music...

What is your internet upload limit?  
What is your friends internet download limit?  
Do you have an upload limit set?

> **[Remote Access | Plex Support](https://support.plex.tv/articles/200289506-remote-access/)**
>
> Enable access to your Plex Media Server from outside your local network so that you can reach it when away...

---

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 9, 2022, 5:20pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/14 "2022-03-09T17:20:17Z")

</div>

I was just trying to understand if you meant on my, server, end, or at the remote user’s, client end. I have no idea what settings they have set. I don’t have an Android TV, I have a Vizio. Is BRAVIA 4K GB ATV3 an Android TV?

On the server-side, I have `Internet upload speed` set to 9 Mbps ([Speedtest.net](http://Speedtest.net) says 37 Mbps but that is from my desktop, not the Synology. My desktop is connected via WiFi but the Synology’s wired into the router. I think the upload speed could be increased somewhat). For now, I guess I will set it to 37,

`Limit remote stream bitrate` is set to 4 Mpbs. Should I up that? To what?

---

<div class="post-metadata">

**Author:** ![pl\_5309](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pl\_5309](https://forums.plex.tv/u/pl_5309)\
**Post date:** [March 9, 2022, 6:28pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/15 "2022-03-09T18:28:28Z")

</div>

Yes, the BRAVIA uses android tv and unfortunately you have to change each client in additional to allowing the server more bandwidth for sending.

If the goal is for your NAS to use a little CPU as possible then opening the transfer path as much as possible will eliminate one of the reasons it might start transcoding. A TV show usually tops out at 12Mbps so you should be good setting it to 30Mbps, remember that it will be shared with all remote clients. In the first post the picture says 2Mbps so that could be the client restricting the connection of remote connection via relay so once you get the client settings opened up you will have a better idea.

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [March 9, 2022, 6:29pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/16 "2022-03-09T18:29:52Z")

</div>

> [@adefaria](#):
>
> Is BRAVIA 4K GB ATV3 an Android TV?

Look at the Plex Dashboard screenshot in your first post.

> [@adefaria](#):
>
> What are client settings? Which client? Where do I find these settings?

Each Plex client (SmartTV app, Roku app, etc) has local settings that can be accessed and changed only on the client itself. They cannot be configured remotely, “pushed” from the Plex server, etc.

How to access settings, what each setting means, etc is in the Plex documentation / support articles linked above.

> [@adefaria](#):
>
> Also wouldn’t turning up the quality possibly cause more transcoding not less?

No. Lowering quality/bandwidth leads to transcoding. Plex tries to play media at its original quality. Plex transcodes when needed to fit a quality/bandwidth limitation or due to a compatibility issue (ex: client does not support a certain audio or video format).

> [@adefaria](#):
>
> Finally, when you say “your internet” do you mean my upload speed or a remote user’s download speed?

Read the [Remote Access & Server Settings](https://support.plex.tv/articles/categories/features/remote-access-server-sharing/) documentation and the [Remote Access](https://support.plex.tv/articles/200289506-remote-access/) server settings, and Plex client support articles.

There are bandwidth settings on both the server and the client that should be reviewed and set appropriately.

Everyone’s setup (server, Internet access, etc) is a bit different. The default settings in Plex generally work, but may not provide the “best” overall experience.

It will take some trial and error to find the optimal settings for your setup.

> [@adefaria](#):
>
> `Limit remote stream bitrate` is set to 4 Mpbs. Should I up that? To what?

This is the trial and error part. You may have to adjust it over time, especially if you have multiple simultaneous remote streams.

Try increasing it to a higher setting, see how things work. Adjust as needed. You might try setting it to Original just to see what happens.

The Internet upload speed setting takes precedence, so Plex Media Server will transcode if needed to keep the stream under that limit.

You should have your friend adjust the settings on their Sony TV as well. The Plex client default settings for remote streaming is ~~4~~ 2 Mbps. Try setting it to Maximum/Original.

As mentioned, expect it will take some trial & error to find optimal settings. Also, remember there is no guaranteed bandwidth on the Internet. Your uplink speed might be “X” Mbps, but that does not mean remote users can reliably stream at that speed.

Example: My uplink speed is 30 Mbps. A friend across town has 100 Mbps downlink speed. However, the routing between our ISPs is quite poor. She can reliably stream from my server at 6 to 8 Mbps. We had to lower the remote bandwidth setting on her devices to avoid buffering.  
Another friend several hundred miles away has no such issues. Their ISP has a better interconnect with my ISP, so they can stream at a much higher rate (and quality).

---

<div class="post-metadata">

**Author:** ![adefaria](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/adefaria/32/300475_2.png) [@adefaria](https://forums.plex.tv/u/adefaria)\
**Post date:** [March 9, 2022, 7:32pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/17 "2022-03-09T19:32:07Z")

</div>

It’s a shame that the remote clients need to set this themselves. I’m working with very tech-unsavvy people here and it’s hard to get them to change things (hell it’s hard to get them to report things!) because they fear they will break something. This particular user I’m often over her house so maybe I can get in there and tweak the settings.

I got hardware transcoding working BTW. I simply streamed something to my own TV then changed the resolution to force it to transcode.

 ![Screenshot from 2022-03-09 11-23-58](https://global.discourse-cdn.com/plex/original/4X/0/b/0/0b09cc38fcd7a2f572e605be502b5cfa5a82101c.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [June 7, 2022, 7:32pm UTC](https://forums.plex.tv/t/plex-media-server-docker-hogs-cpu/779728/18 "2022-06-07T19:32:21Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
