Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Optional heap and permgen args for java VM #1

Merged
merged 2 commits into from Apr 8, 2013
Jump to file or symbol
Failed to load files and symbols.
+11 −3
Split
View
@@ -13,4 +13,6 @@
$accesslogfile = "${nginx::config::logdir}/jenkins.access.log"
$errorlogfile = "${nginx::config::logdir}/jenkins.error.log"
$port = 18080
+ $max_heap_size = $jenkins_max_heap_size
+ $max_perm_size = $jenkins_max_perm_size
}
@@ -16,13 +16,19 @@
<key>EnvironmentVariables</key>
<dict>
- <key>JENKINS_HOME</key>
- <string><%= scope.lookupvar "jenkins::config::datadir" %></string>
+ <key>JENKINS_HOME</key>
+ <string><%= scope.lookupvar "jenkins::config::datadir" %></string>
</dict>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
+ <%- if scope.lookupvar "jenkins::config::max_heap_size" -%>
+ <string>-Xmx<%= scope.lookupvar "jenkins::config::max_heap_size" %></string>
+ <%- end -%>
+ <%- if scope.lookupvar "jenkins::config::max_perm_size" -%>
+ <string>-XX:MaxPermSize=<%= scope.lookupvar "jenkins::config::max_perm_size" %></string>
+ <%- end -%>
<string>-jar</string>
<string><%= scope.lookupvar "jenkins::config::warfile" %></string>
<string>--httpListenAddress=127.0.0.1</string>
@@ -45,4 +51,4 @@
<key>StandardOutPath</key>
<string><%= scope.lookupvar "jenkins::config::consolefile" %></string>
</dict>
-</plist>
+</plist>