Commit fd8b9fe7 by Feanil Patel

Make the gocd jvm max memory configurable.

parent 59e98eeb
......@@ -98,3 +98,6 @@ GO_SERVER_ADMIN_USERS: ["admin"]
# key for go-agents to autoregister with the go-server
GO_SERVER_AUTO_REGISTER_KEY: "dev-only-override-this-key"
# The minimum amount of memory used by the go-server."
GO_SERVER_MAX_MEM: "1024m"
......@@ -161,7 +161,7 @@
lineinfile:
destfile: /etc/default/go-server
regexp: "^export GO_SERVER_SYSTEM_PROPERTIES=*"
line: "export GO_SERVER_SYSTEM_PROPERTIES='-Dgo.config.repo.gc.cron=\"0 0 2 ? * SAT\" -Dgo.config.repo.gc.periodic=\"Y\"'"
line: "export GO_SERVER_SYSTEM_PROPERTIES='-Xmx{{GO_SERVER_MAX_MEM}} -Dgo.config.repo.gc.cron=\"0 0 2 ? * SAT\" -Dgo.config.repo.gc.periodic=\"Y\"'"
tags:
- environment_variables
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment