hechtus / squeezebox-googlemusic

Squeezebox (Logitech Media Server) Plugin for Google Play Music
103 stars 24 forks source link

Library Cache #87

Open brettjenkins opened 9 years ago

brettjenkins commented 9 years ago

Hi,

I'm a bit confused how the library cache works. Let me explain:

1) I boot up LMS, Google Play Music shows all my playlists and the tracks in them, pretty much instantly 2) This continues for X amount of time (hours? maybe?) 3) I try hours later, access a playlist and it takes a while to load the playlist tracks, on my phone on SqueezeCtrl it actually times out waiting for a response from the server, and LMS can be unresponsive for a few minutes

If I manually refresh the library, I get round this issue, so trying to be clever I created a scheduled task that ran the URL that would refresh the library (within Google Music plugin) every 10 minutes, unfortunately there seems to be a memory leak over time, as memory creeps on the LMS process from a starting point of 15% (on a Pi with 1gb of ram) to ~80%, causing everything to break as memory can't be allocated.

So how long is the cache held in memory? Why does it randomly lose it? Why does reloading the library seem to eat memory?

Thanks, otherwise great plugin as always!