# Plex has become very slow AGAIN!

**URL:** <https://forums.plex.tv/t/plex-has-become-very-slow-again/180144>\
**Category:** General Discussions\
**Created:** [February 15, 2017, 3:25pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144 "2017-02-15T15:25:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![charsiufan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@charsiufan](https://forums.plex.tv/u/charsiufan)\
**Post date:** [February 15, 2017, 3:25pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/1 "2017-02-15T15:25:38Z")

</div>

Made some changes to Plex, shrunk and optimised the DB, turned off thumbnail generation… Thought I would get Plex server to be a bit more responsive but once again its hanging.

Previous thread was here [http://forums.plex.tv/discussion/255980/plex-being-really-unreliable-and-slow#latest](http://forums.plex.tv/discussion/255980/plex-being-really-unreliable-and-slow#latest)

I’ve attached the logs. Anyone able to suggest a solution? Thanks!

---

<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:** [February 15, 2017, 3:51pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/2 "2017-02-15T15:51:34Z")

</div>

You attached the logs of Feb 10th.

In them, please notice “SLOW QUERY”. This is telling us the database is again lopsided from media addition, deletion, or other media/metadata activity.

In Settings - Server - Scheduled Tasks, you may setup the server to do some regular maintenance. I find these four to be invaluable at maintaining performance.

- Optimize database every week

- Remove old bundles every week

- Remove old cache files every week

- Refresh local metadata every three days

---

<div class="post-metadata">

**Author:** ![charsiufan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@charsiufan](https://forums.plex.tv/u/charsiufan)\
**Post date:** [February 15, 2017, 4:14pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/3 "2017-02-15T16:14:54Z")

</div>

Actually, that was on the old thread. Seems they didn’t attach to my post here so I’ll try again. I did change all those settings as you advised before. I checked the NAS and CPU and RAM usage were both low. Rebooted the NAS and Plex is running Ok again.

---

<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:** [February 15, 2017, 4:20pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/4 "2017-02-15T16:20:10Z")

</div>

your logs are already showing it:

```
Feb 15, 2017 23:10:02.679 [0xf0bffb40] DEBUG - Auth: Came in with a super-token, authorization succeeded.
Feb 15, 2017 23:10:02.679 [0xe8847b40] DEBUG - Request: [192.168.1.177:49175 (Subnet)] GET /library/sections/9/arts?sort=random (16 live) TLS Page 0-49 Signed-in Token (charsiufan)
Feb 15, 2017 23:10:02.687 [0xf0623b40] WARN - SLOW QUERY: It took 890.000000 ms to retrieve 91 items.
Feb 15, 2017 23:10:02.701 [0xe2bffb40] WARN - SLOW QUERY: It took 860.000000 ms to retrieve 81 items.

```

Please “Optimize Database” ??

---

<div class="post-metadata">

**Author:** ![charsiufan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@charsiufan](https://forums.plex.tv/u/charsiufan)\
**Post date:** [February 15, 2017, 4:24pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/5 "2017-02-15T16:24:53Z")

</div>

Its set to optimize every week as well as remove old bundles, old cache etc as you recommended a week ago.

Is there a way to get Plex to optimize every time the media changes? I don’t add or remove much each week so don’t understand why it gets lopsided for each addition.

---

<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:** [February 15, 2017, 4:30pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/6 "2017-02-15T16:30:52Z")

</div>

There is no current endpoint to allow manual scheduling (cron, etc) of these tasks. They are all integrated in the butler.

If you’re not adding or removing, do you have the option enabled to update every 3 days? If you have a large library **and** it’s updating ( **replacing** ) metadata every 3, I can see how it might happen but have never experienced it. Would you mind trying to run with the ‘3 day’ option turned off since metadata doesn’t usually update that frequently?

---

<div class="post-metadata">

**Author:** ![charsiufan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@charsiufan](https://forums.plex.tv/u/charsiufan)\
**Post date:** [February 15, 2017, 4:41pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/7 "2017-02-15T16:41:19Z")

</div>

Do you mean this option? ‘Backup database every three days’

---

<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:** [February 15, 2017, 4:44pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/8 "2017-02-15T16:44:33Z")

</div>

Apologies, that was ambiguous. Here are my settings. This is my Synology NAS.

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/4/4/44cce40b5ffc0b848ff670f104a715fa6714a9e2.png)

---

<div class="post-metadata">

**Author:** ![charsiufan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@charsiufan](https://forums.plex.tv/u/charsiufan)\
**Post date:** [February 15, 2017, 4:54pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/9 "2017-02-15T16:54:37Z")

</div>

Got it, thanks! Have deselected “Perform extensive media analysis during maintenance” and “Refresh local metadata every three days”

Fingers crossed!

Is there anywhere in Plex to see how many shows / movies its indexing? The total size of data is around 14Tb but not sure how many actual shows (guess around 2,000 movies, 600 TV shows)

---

<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:** [February 15, 2017, 5:01pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/10 "2017-02-15T17:01:36Z")

</div>

On Linux and MacOS, it’s a snap.

List the directories and have it count.

`find /movies /tv /music -type f -print | wc -l`

---

<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:** [January 7, 2020, 10:45pm UTC](https://forums.plex.tv/t/plex-has-become-very-slow-again/180144/11 "2020-01-07T22:45:41Z")

</div>


