ghenry22 / subsonic-synology

Subsonic setup to run on Synology NAS
94 stars 18 forks source link

High memory usage even when idle #26

Closed scienex closed 5 years ago

scienex commented 5 years ago

Hi,

I've been using this package for some weeks now. It all works smooth and simple - so I'm really content in that department.

There is one problem though: the memory usage of the Subsonic package on my DS218+ is very high - up to almost 500 MB when running idle. That is: I'm not streaming or even just browsing any music. I'm running DSM 6.2.1.

capture

Is there something I can do to get the package's memory usage down to an acceptable level? Or will I just have to live with this?

ghenry22 commented 5 years ago

What is the total memory for your NAS? Subsonic picks a min and max memory setting based on the total memory of the system so this might need to be tweaked a bit for different models.

Making it too Low will make performance suffer on large libraries.

scienex commented 5 years ago

Thnx for your reply Ghenry22. The total memory is 2GB. Also, I have quite a large collection (70.000+ files). Anyway, if there's anything I could do myself, please let me know...

MonsieurPoutounours commented 5 years ago

@scienex You can tweak memory allocation for what you want, but be aware that setting it too low may cause performance issues.

Keep in mind you'll have to repeat this on each package upgrade, which will overwrite the file you modified. This is a bit technical, but i hope you'll achieve it.

scienex commented 5 years ago

@MonsieurPoutounours thank you for this explanation! the holidays are the perfect time to try some tweaking ;)

ghenry22 commented 5 years ago

@scienex I have added 2 new steps into the memory detection script so that it will allocate smaller steps for systems with 1gb and 2gb of memory available. This will be included in the next release.

Until then hopefully the guide from @MonsieurPoutounours helps out!

scienex commented 5 years ago

thnx @ghenry22!