mirror of
https://github.com/YunoHost-Apps/airsonic_ynh.git
synced 2024-09-03 18:06:14 +02:00
[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"
This commit is contained in:
parent
72d530415c
commit
ec2b240e6d
2 changed files with 3 additions and 1 deletions
|
@ -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 <https://www.reddit.com/r/airsonic/comments/doscco/jvm_memory_issues/>
|
||||
|
||||
#### Supported architectures
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue