Search code examples
marathon

Change -xmx default value for apache marathon on debian


Hi I've installed Apache Marathon (latest version available on APT repo) on Debian 8.5 (Jessie). The configuration in /etc/marathon/conf/ works very well for that kind of parameters but how can I change the default -xmx512m parameter?

regards guenther


Solution

  • As per Marathon documentation Java options including -Xmxvalue is configured using JAVA_OPTS environment variable. You can set JAVA_OPTS for marathon by defining it in /etc/default/marathon like so JAVA_OPTS="-Xmx768m -Xms384m"