From ec2b240e6d071ec76acc1390e5622690c5388cc2 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Wed, 25 Mar 2020 19:53:10 +0100 Subject: [PATCH 1/2] [enh] Reduce RAM given to default systemd service so the service is less prone to be killed on low RAM servers It's still possible to overload the setting manually in the propertes file "/etc/default/$app" --- README.md | 2 ++ conf/systemd.service | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ef1b81..0890d5c 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,8 @@ How to configure this app: by an admin panel. #### Multi-users support Are LDAP and HTTP auth supported? **Yes** +* Memory RAM limit set to 256Mb because airsonic was often killed by lack of RAM (hello OOM killer) + * See #### Supported architectures diff --git a/conf/systemd.service b/conf/systemd.service index a2cca3b..333c7d9 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ AssertPathExists=__FINALPATH__ [Service] Type=simple -Environment="JAVA_OPTS=-Xmx700m" +Environment="JAVA_OPTS=-Xmx256m" Environment="JAVA_ARGS=" EnvironmentFile=-/etc/default/__APP__ ExecStart=/usr/bin/java \ From a3f726629ddfcb71f3c5f7cad779cb3647510d50 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Wed, 25 Mar 2020 20:02:32 +0100 Subject: [PATCH 2/2] bump package version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 1cf0d73..31202d3 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Stream and manage your music collection", "fr": "Streamez et gérez votre collection de musique" }, - "version": "10.5.0~ynh2", + "version": "10.5.0~ynh3", "url": "http://airsonic.github.io", "license": "GPL-3.0-or-later", "maintainer": {