owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD audio server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
2.07k stars 236 forks source link

Permanently running on 100% CPU (Centos 8 Stream) #1345

Closed th0u closed 2 years ago

th0u commented 2 years ago

Please try to provide the following:

start owntone and verify cpu load via top/htop

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
1833462 daapd     20   0  726160  37444  18932 S  99.7   0.5   4:36.19 /usr/sbin/owntone -f

Enabling debug log does not produce any additional log entries after owntone started and initialised and then sits at 100% load. htop shows 2 line alternating on top owntone -f owntone | websocket | -f

when configuring with these additional options --without-libwebsockets --disable-webinterface

then the load is normal.

I don't know if it helps... I ran perf record /usr/sbin/owntone -f and perf report generated this `+ 56.69% 2.12% websocket libc-2.28.so [.] __poll

if a can submit more info, please let me know.

TIA.

Porco-Rosso commented 2 years ago

I faced the same issue https://github.com/owntone/owntone-server/issues/1285, but ultimately could not figure it out. I just wiped my VM and re-installed and it worked.

ejurgensen commented 2 years ago

Yes, I think this is the same as #1285. Seems to be some issue with libwebsockets, so I don't think there is much I can do. Which version of libwebsockets is it?

th0u commented 2 years ago

thank you both for your information and pointing me to issue #1285. I was able to resolve my issue. It was due to an old manually added version of libwebsockets.so hanging around.

Thnx,