Memory leak in Roon?! [Solved: Update to Build 970]

Ever since build 952 I’ve been having Roon killed by the OOMkiller process. It happens about daily, and on one occasion killing the process also corrupted the database and needed a full reinstall. Running on a box with 8GB RAM, been stable until 952.

root@DietPi:~# service roon status
Unit roon.service could not be found.
root@DietPi:~# service roonserver status
● roonserver.service - Roon Server (DietPi)
Loaded: loaded (/etc/systemd/system/roonserver.service; disabled; vendor preset: enabled)
Active: failed (Result: oom-kill) since Wed 2022-06-01 03:19:19 AEST; 6h ago
Process: 53429 ExecStart=/opt/roonserver/ (code=killed, signal=TERM)
Main PID: 53429 (code=killed, signal=TERM)
CPU: 8h 56min 2.549s

May 31 23:23:37 DietPi Roon Server[53433]: 07:49:48.035 Debug: PathForResource, filename: …/Appliance/RoonAppliance
May 31 23:23:37 DietPi Roon Server[53433]: 07:49:48.035 Debug: PathForResource, candidate: /opt/roonserver/Server/…/Appliance/RoonAppliance
May 31 23:23:37 DietPi Roon Server[53433]: Started
May 31 23:23:40 DietPi Roon Server[53433]: Not responding
May 31 23:23:40 DietPi Roon Server[60659]: aac_fixed decoder found, checking libavcodec version…
May 31 23:23:40 DietPi Roon Server[60659]: has mp3float: 1, aac_fixed: 1
May 31 23:23:45 DietPi Roon Server[53433]: Running
Jun 01 03:19:19 DietPi systemd[1]: roonserver.service: A process of this unit has been killed by the OOM killer.
Jun 01 03:19:19 DietPi systemd[1]: roonserver.service: Failed with result ‘oom-kill’.
Jun 01 03:19:19 DietPi systemd[1]: roonserver.service: Consumed 8h 56min 2.549s CPU time.

It seems to just suddenly get itself in a knot and die. Mine has been playing for the last hour or so, and then suddenly the music stopped (despite showing as still playing on the remotes). Checking top tells me that the CPU and MEM usage are skyrocketing.


Does a restart of the service fix it? Not sure if this is the same as my past issue here.

Came here to report that there appears to be a memory leak, using Roon in docker on Unraid, works great with the exception of the creeping memory leak that eventually brings the whole box down. The workaround seems to be to restart the Roon docker server every day. I’ll likely have to move Roon Server to a different set up as it’s not viable via the docker I’m using. Hard to tell what’s going on, but grafana confirms that Roon basically eats away at the Ram till there’s none left, I have 32GB on that machine.

For the most part yes, although as I’ve noted one of the kills corrupted the database and needed a full removal and reinstall. I’ve been taking to rebooting the box rather than restarting the service, but either way I think my issue is different to yours. Roon seems to behave normally for a while, and then within an hour or so of listening something causes cpu and memory to spike and it just climbs and climbs until the OOMkiller kills it. Can get a little sketchy though, today my music died and it then took me 10 minutes to ssh into the box while it had no resources (but before it had killed Roon).

I don’t think that will help, mine is dying within a few hours of a full reboot (but was rock solid before this build).

That’s the behavior I see, although it takes longer, as I have 32GB of RAM, which Roon consumes, but it takes less than 24 hours. I’ve stopped the docker container whilst I rethink. I have other options but it’s annoying to not be able to leave something like this running all the time. I’m going to try on my Mac and see if the behavior persists. It’s a little frustrating, there are countless threads about this across a variety of OS / Machine combinations.

1 Like

I wish there was a way to manually roll back. (I haven’t got the old build installer lying around unless its cached somewhere I can’t find) :frowning:

1 Like

Came here to look for an issue I’ve been having as of late. Roon user for several years now, never seen this problem so bad until this latest version. I leave roon client (build 952) running on my Mac (Macbook Pro 14") and over the course of a few hours it becomes almost unresponsive. Buttons are slow / non responsive and search queries just sit there. Closing the app and launching again resolves it for a little time. Definitely seems like a memory leak. Roon is running on a dedicated roon core OS linux box elsewhere.

Just adding my own voice to the issue. I am a brand new Roon user, still within my trial period. I have experienced the same memory leak running both the steefdebruijn/docker-roonserver container and on an Ubuntu Server. My machine has an i5-2500 and 32GB DDR4 RAM for a library of ~35k tracks.

Edit: I’m not sure if this is related, but sometimes my CPU usage also spikes incredibly high even not when listening to any media (and scanning/analysis has already completed) until I close the Windows Roon program, which drops it back down to < 1%.

1 Like

Hi @connor ,

Do you have an update?

I’m sure the team is working hard on this issue, but I think it would be appreciated by your customers if there is a little bit more communication about this issue. Has the problem been found? Is there a fix in the works? What is the ETA?

Right now I’ve got this build for about a week and it crashes about every 15-25 minutes when playing music. That in itself is ‘rather unpleasant’, and the lack of communication isn’t improving the experience.



The problem is still very much alive and kicking. I am restarting my core daily now - since it becomes unusable. It does not react to anything anymore.

Yeah. Mine does the same where OOMKiller kicks in. When this happens, the database automatically gets corrupted and I need to do a clean reinstall to fix it.

Oh no! Same problem here too. My installation decided to join the party yesterday evening:

Seems like the CPU getting overexcited was the start of it:

This was despite installing 952 some days ago without drama previously:

Running the Roon app for Synology on a DS418Play.

I’m having similar issues on a Roon ROCK running 952. Over time all functionality slows down. After I reboot the NUC or restart the Roon Server Software, it runs OK for a while. Currently doing 1-2 reboots a day.

1 Like

Same problem. Running Roon Server Build 952 on dedicated Ubuntu 20.04.4 LTS. Running fine for more than a year until recent update. Problem is that once a day the RoonAppliance process likes to gobble up all the CPU and memory and becomes unresponsive.

Is it the kernel OOM killer?

I’ve enabled systemd-oomd which kills the process more gently than the kernel.

Hi @spockfish,

We recognize how corrosive these symptoms are for affected users. You’re absolutely correct that we can more precisely and frequently communicate what’s happening behind the curtain as we push to roll out a fix.

Here’s where we currently stand: the team has identified the issue, and we’re working to roll out a permanent solution in a high-priority ticket.

While I don’t have a firm timeline to resolution at this moment, what I can do is provide daily updates in this topic to keep you informed with whatever information is available to me until we have next steps to offer you.


Roon is using about 85% memory here with 4-10 threads pegged at 100% usage, constant skips and dropouts when playing music(which get worse and worse till it completely stops playback). System has a Ryzen 5900X and 32Gb of ram. Os is Fedora 36. Please fix this because this is unacceptable.
This is on a fresh boot after a couple of hours. Restarting the service has it shoot up to 40% mem after 20sec and pegging 2-4 threads. Have to restart the service and hope i can listen to an album or two before problems begin.

1 Like