# Plexamp on headless Raspberri Pi - CPU usage keeps increasing

**URL:** <https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283>\
**Category:** Plex Labs\
**Tags:** plexamp\
**Created:** [October 2, 2022, 11:08am UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283 "2022-10-02T11:08:27Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 2, 2022, 11:08am UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/1 "2022-10-02T11:08:27Z")

</div>

Hi,

I have Plexamp running on a Raspberry Pi, using this guide:

> [@Plexamp on the Raspberry Pi](https://forums.plex.tv/t/plexamp-on-the-raspberry-pi/791500):
>
> (Making this a pinned thread until we have better instructions/links on the website.) OK, ready to have some fun? Make sure you have a 64-bit capable Raspberry Pi and node v16 installed. Download the headless package from [https://plexamp.com](https://plexamp.com) Extract in the pi home directory. Run from terminal to start (and ignore anything which is printed after you enter the code): $ node js/index.js Starting Plexamp. Please visit https://plex.tv/claim and enter the claim token: You should now…

It’s working well, but CPU usage keeps on going up and up, over time even when I don’t use Plexamp:

 ![image](https://global.discourse-cdn.com/plex/original/4X/d/9/c/d9c166b13618ee5838a326f4b24b3be579bedc58.png)

There’s nothing else installed on the Pi, it’s only used for Plexamp. Is this normal behavior for nodejs?

Setup:  
RaspberryPi 3b+  
Plexamp 4.4.0 (installed from “Plexamp-Linux-headless-v4.4.0.tar.bz2”)  
OS: Raspberry OS 64 bit VERSION=“11 (bullseye)” - fully updated  
Node: v12.22.12

---

<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:** [October 2, 2022, 5:29pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/2 "2022-10-02T17:29:14Z")

</div>

not normal at all, consider posting logs so we might be able to see what’s going on.

---

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 2, 2022, 5:48pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/3 "2022-10-02T17:48:16Z")

</div>

Thanks @elan

Can you let me know which logs you need?

To visualize the issue more, this is the Pi:s CPU usage. At the red arrow is a manual reboot:

 ![image](https://global.discourse-cdn.com/plex/original/4X/1/1/8/11883f8d2f05b00bdbf05ce9ea76e09457310ed1.png)

---

<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:** [October 2, 2022, 6:19pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/4 "2022-10-02T18:19:00Z")

</div>

The files in ~/.cache/Plexamp/log/

---

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 2, 2022, 6:21pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/5 "2022-10-02T18:21:39Z")

</div>

Thanks, I have attached the logs here and pm:ed you its password  
[log.zip](https://forums.plex.tv/uploads/short-url/xTpworMIu14gCBhVX2Zgfhw0LrS.zip) (67.7 KB)

---

<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:** [October 2, 2022, 7:06pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/6 "2022-10-02T19:06:44Z")

</div>

The last entry in your logs is 8:35 am.

It looks like you have play queue caching set to 15 tracks ahead, that can cause CPU usage on lower powered devices and/or slow SD cards. You can also make sure you have a network speed limit set (advanced / caching / network speed).

---

<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:** [October 2, 2022, 7:08pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/7 "2022-10-02T19:08:52Z")

</div>

Happy to get you into Slack for more support, give me your email.

---

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 2, 2022, 7:10pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/8 "2022-10-02T19:10:26Z")

</div>

pm:ed my email

---

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 2, 2022, 7:12pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/9 "2022-10-02T19:12:34Z")

</div>

I have set one track ahead queue (seems to be lowest possible) and 10Mbit network limit

I start a stream and see if the problem comes back.

---

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 2, 2022, 7:21pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/10 "2022-10-02T19:21:33Z")

</div>

Following the modifications the load looks more reasonable:

(this is metrics from the PI)

 ![image](https://global.discourse-cdn.com/plex/original/4X/1/1/a/11a3d171d432e99e145a8ea3172575c0e602ac06.png)

---

<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:** [October 2, 2022, 7:22pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/11 "2022-10-02T19:22:44Z")

</div>

OK, glad to hear! For some reason on the Pi (esp slower + with slow SD) I/O is expensive.

---

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 2, 2022, 7:24pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/12 "2022-10-02T19:24:47Z")

</div>

Indeed, just 3 IOPS at 800ms 😛 - let’s say it’s quite slow …

 ![image](https://global.discourse-cdn.com/plex/original/4X/4/2/e/42eca75307f4f993fcd2bdc1929fe88c94460292.png)

---

<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:** [October 2, 2022, 7:43pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/13 "2022-10-02T19:43:28Z")

</div>

😱 did you get your SD card out of a child’s toy?

---

<div class="post-metadata">

**Author:** ![JohanLundgren](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johanlundgren/32/266396_2.png) [@JohanLundgren](https://forums.plex.tv/u/JohanLundgren)\
**Post date:** [October 3, 2022, 6:12pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/14 "2022-10-03T18:12:27Z")

</div>

Hey it was probably very cheap at least 😅

---

<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 1, 2023, 6:13pm UTC](https://forums.plex.tv/t/plexamp-on-headless-raspberri-pi-cpu-usage-keeps-increasing/813283/15 "2023-01-01T18:13:15Z")

</div>

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