# Plexamp cache growing beyond limit

**URL:** <https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184>\
**Category:** Plex Labs\
**Tags:** plexamp\
**Created:** [June 17, 2021, 10:11pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184 "2021-06-17T22:11:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [June 17, 2021, 10:11pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/1 "2021-06-17T22:11:30Z")

</div>

Running Plexamp 3.4.7 on Android 11 Pixel phone and I have the cache limit set to 2GB in the settings. Just looked at storage and the cache was up to 8GB just now. Doesn’t look like the limit setting is being used

---

<div class="post-metadata">

**Author:** ![d2freak](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/d2freak/32/111000_2.png) [@d2freak](https://forums.plex.tv/u/d2freak)\
**Post date:** [June 19, 2021, 10:54am UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/2 "2021-06-19T10:54:51Z")

</div>

Do you have downloaded items?

The cache is (as far as I know) only used to cache tracks you have been playing. Downloads would show as extra storage in Android. Maybe as cache too?

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [June 19, 2021, 1:14pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/3 "2021-06-19T13:14:53Z")

</div>

No downloads. Cache was 8.2 Gb before I cleared it.

---

<div class="post-metadata">

**Author:** ![Jason\_D](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@Jason\_D](https://forums.plex.tv/u/Jason_D)\
**Post date:** [June 20, 2021, 9:13am UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/4 "2021-06-20T09:13:04Z")

</div>

Mine is set at 4GB and the system reports 4.98GB in cache. So you might be on to something with it not fully respecting the limit…

Pixel 3 running Android 11.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [June 20, 2021, 9:18am UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/5 "2021-06-20T09:18:57Z")

</div>

I’m going to guess @elan is going to need to see logs if it keeps growing beyond limit. I asked a few folks about this and none of them could reproduce it

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [June 20, 2021, 5:17pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/6 "2021-06-20T17:17:40Z")

</div>

Ok I just did the following

1. Set cache to 512mb limit.
2. Cleared cache
3. Played a few playlists
4. Looked at cache size which is now 1.7 GB
5. Grabbed logs attached

[128688828174219.zip](https://forums.plex.tv/uploads/short-url/gB0VBweEM90k1fzfVMZM9DOorAn.zip) (238.4 KB)

Edit:. Should also mention I exited Plexamp and went back in before each playlist to see if cache was cleared at startup.

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [June 28, 2021, 9:10pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/7 "2021-06-28T21:10:37Z")

</div>

Just want to keep this visible. Just came back from a road trip. Plexamp cache is at 3.5 GB and limit is set to 2GB. It will grow indefinitely until I clear it, which is what I have to do on my space challenged phone.

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [July 1, 2021, 10:18pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/8 "2021-07-01T22:18:19Z")

</div>

Just tried Plexamp 3.5. Cleared existing cache, set max size to 512 MB. Cache is currently at 2 GB and growing.

Not sure how or when the cache size is supposed to be pared down to the limit set in the settings but it just seems to be ignored completely.

I can re-send logs if needed.

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [July 12, 2021, 2:24am UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/9 "2021-07-12T02:24:47Z")

</div>

For those of you whose cache stays set at the limit…at what point does it get lowered? At startup? Per song? When you start an album? Just want to know what to look for.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [July 12, 2021, 5:58pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/10 "2021-07-12T17:58:25Z")

</div>

As far as I can tell it is not the playback cache which the setting controls (for when you are in a tunnel or similar) but the cache of album artwork. The more items in the playlist with different artwork the larger the app cache becomes it seems.

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [July 12, 2021, 7:01pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/11 "2021-07-12T19:01:16Z")

</div>

Well that’s even stranger then. The setting in the app implies that the overall cached files are controlled by that setting. If they aren’t they should be.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [July 12, 2021, 10:05pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/12 "2021-07-12T22:05:00Z")

</div>

Sorry I worded that badly. I don’t disagree, the setting should cover all the cache files. Just seems to be what it is doing.

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [July 12, 2021, 10:21pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/13 "2021-07-12T22:21:40Z")

</div>

No problem. Hopefully that fix gets added in soon. My phone storage is stretched thin as it is.

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [July 25, 2021, 7:41pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/14 "2021-07-25T19:41:48Z")

</div>

Don’t mean to be.a squeaky wheel here (yes I do) just want to make sure this stays visible. Cache setting is definitely ignored for me. For now just completely clearing the cache every so often (which defeats the purpose of cached media…)

Hopefully a fix for this makes it in soon.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 26, 2021, 10:18pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/15 "2021-07-26T22:18:52Z")

</div>

To clarify—the media cache is the one tied to the setting. Artwork and other such tiny things are a fixed size, also cleaned up.

In your logs I see one cleanup, it looks like potentially the periodic ones aren’t properly being scheduled. We’ll have a further look over here. I _think_ you can manually trigger one by changing the cache size limit (e.g. bump to 1GB, then back down to 512KB and it should force a cleanup).

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [July 27, 2021, 1:31am UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/16 "2021-07-27T01:31:52Z")

</div>

Well setting cache to 4GB and then to 2GB knocked the size back down to 2GB (cache was 5GB before that)

Otherwise if there is a scheduled cleaning I don’t think that is happening for me. Not sure when it should happen on a scheduled basis.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [July 27, 2021, 4:16am UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/17 "2021-07-27T04:16:39Z")

</div>

agreed! we’ll investigate.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [August 1, 2021, 9:06am UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/18 "2021-08-01T09:06:57Z")

</div>

So did a bit more investigation, and it seems like the cache is cleaned up:

- At app startup.
- At most once an hour (wall clock time).
- More frequently if free space is less than 200MB.

Is it possible you’re just watching disk usage grow during the hour between startup and one hour?

---

<div class="post-metadata">

**Author:** ![EricD1973](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericd1973/32/81776_2.png) [@EricD1973](https://forums.plex.tv/u/EricD1973)\
**Post date:** [August 1, 2021, 2:43pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/19 "2021-08-01T14:43:29Z")

</div>

Well I can say the cache is not cleaned up for me at app startup. I have it set to 2gb and cache is at 3gb currently. Starting the app doesn’t reduce the cache. I’ll see if the hourly cleanup does anything.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [August 1, 2021, 7:06pm UTC](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184/20 "2021-08-01T19:06:25Z")

</div>

I stand corrected, it actually does skip the cleanup the very first time on boot up so as to not slow things down.

So it cleans cache (a) every hour or (b) more often if disk space is getting low.

[Next page](https://forums.plex.tv/t/plexamp-cache-growing-beyond-limit/723184.md?page=2)
