linuxserver / docker-airsonic

GNU General Public License v3.0
37 stars 8 forks source link

Limt memory usage of container #2

Closed patsaindon closed 6 years ago

patsaindon commented 7 years ago

I switched to airsonic after many years using Madsonic, a subsonic fork, wich revoved most of beta testers licences.

In his alpine docker file, he limits the memory usage of the container with ENV JVM_MEMORY=256.

I've been having issues with my host, used has a NAS for HTPC media files (server not accessible). When I stop the container, it fixes the issue.

sparklyballs commented 7 years ago

In his alpine docker file, he

who ?

patsaindon commented 7 years ago

Here is his docker file: https://github.com/MadMarty/alpine-madsonic/blob/master/Dockerfile

2017-09-20 7:31 GMT-04:00 sparklyballs notifications@github.com:

In his alpine docker file, he

who ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linuxserver/docker-airsonic/issues/2#issuecomment-330824248, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ51FiehIO-4xdbdhLJ0ObkNoBCqcv2Tks5skPeVgaJpZM4PduRM .

patsaindon commented 6 years ago

Fixed my issues adding this to my docker-compose.yml file:

 environment:
   - JAVA_OPTS=-Xmx256m -Xms256m

Now it will not consume all of the host memory and freeze the movies my kids are watching.

2017-09-20 7:35 GMT-04:00 Patrick Saindon pat.saindon@gmail.com:

Here is his docker file: https://github.com/MadMarty/alpine-madsonic/blob/master/Dockerfile

2017-09-20 7:31 GMT-04:00 sparklyballs notifications@github.com:

In his alpine docker file, he

who ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linuxserver/docker-airsonic/issues/2#issuecomment-330824248, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ51FiehIO-4xdbdhLJ0ObkNoBCqcv2Tks5skPeVgaJpZM4PduRM .

patsaindon commented 6 years ago

Airsonic works very well in replacement of Madsonic by the way.

j0nnymoe commented 6 years ago

@patsaindon good to hear. We just haven't got around to releasing this container yet. I'll make note to add the JAVA_OPTS variable to the readme.