java - Systemd: Unknown lvalue '_JAVA_OPTIONS' in section 'Service' -
i'm running website in clojure. here http://www.luminusweb.net/docs/deployment.md says:
note default jvm aggressive memory usage. if you're reduce amount of memory used can add following line under [service] configuration:
[service] ...
_java_options="-xmx256m" execstart=/usr/bin/java -jar /var/myapp/myapp.jar
however, after adding service file, exception:
unknown lvalue '_java_options' in section 'service'
this not valid systemd.service(5) syntax. can specify environment variables using directive:
environment=_java_options='-xmx256m' execstart=/usr/bin/java -jar /var/myapp/myapp.jar
Comments
Post a Comment