owntone-server
owntone-server copied to clipboard
OwnTone getting stuck when trying to open a large library with Apple Music
Platform:
- OwnTone 28.10 on Ubuntu 22.04 (4 CPU cores, 8 GB RAM)
- macOS 15.0 / Apple Music 1.5.0.174
Steps to reproduce:
- Have a large library (> 100k tracks).
- Open Apple Music on macOS.
- Select the OwnTone library in the sidebar.
It will take a while to load, but will eventually show the full library.
However, this is where it gets stuck:
- Most album artworks don’t load.
- Playback doesn’t work (sits at “Connecting…” forever).
At the same time on the server:
- The OwnTone processes max out all 4 CPU cores.
- The log output stopped.
- The Web interface isn’t reachable anymore.
Note that I added the following override to the OwnTone unit file:
[Service]
OOMScoreAdjust=-1000
Without this, the OwnTone process was killed when trying to open the OwnTone library in Apple Music:
owntone.service: A process of this unit has been killed by the OOM killer.
Is there anything I can tweak on my system? Or is this something that needs to be optimized in OwnTone?
Thanks!