swingmusic icon indicating copy to clipboard operation
swingmusic copied to clipboard

About memory usage

Open hausen1012 opened this issue 1 year ago • 2 comments

I really like Swingmusic because I think it's lightweight, but currently it seems to have a problem. When I don't play a song, it takes up over 100 MB of memory. When I play a song and frequently switch songs, it can take up over 400 MB. When I use Jellyfin, in conjunction with the fintunes app, no matter how I switch, it will not cause the memory usage to increase. Is this due to streaming?

hausen1012 avatar Feb 19 '24 08:02 hausen1012

I can't reproduce this. I have my installation running in a docker container. I have my installation running in a docker container. On idle, it takes about 200MB and it stays more or less the same when playing a song...

sortedcord avatar Feb 20 '24 23:02 sortedcord

Hello @hausen1012

I acknowledge this issue and I have tried to figure out why that's happening but couldn't get much. I noted that on most API calls, the memory increases by a few kilobytes/MBs, but never goes back down once the requests are completed. It's weird but I can't tell why. It's not caused by streaming (I left a fresh instance streaming for ~8hrs and the memory wasn't dramatic).

cwilvx avatar Feb 21 '24 14:02 cwilvx