Skip to content

Commit

Permalink
Adding JVM args.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbpark committed Jun 7, 2012
1 parent 7e538fb commit 77f51be
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions azkaban/src/java/azkaban/jobs/builtin/JavaProcessJob.java
Expand Up @@ -35,7 +35,8 @@ public class JavaProcessJob extends ProcessJob {
public static final String MAX_MEMORY_SIZE = "Xmx"; public static final String MAX_MEMORY_SIZE = "Xmx";
public static final String MAIN_ARGS = "main.args"; public static final String MAIN_ARGS = "main.args";
public static final String JVM_PARAMS = "jvm.args"; public static final String JVM_PARAMS = "jvm.args";

public static final String GLOBAL_JVM_PARAMS = "global.jvm.args";

public static final String DEFAULT_INITIAL_MEMORY_SIZE = "64M"; public static final String DEFAULT_INITIAL_MEMORY_SIZE = "64M";
public static final String DEFAULT_MAX_MEMORY_SIZE = "256M"; public static final String DEFAULT_MAX_MEMORY_SIZE = "256M";


Expand Down Expand Up @@ -121,9 +122,15 @@ protected String getMainArguments() {
return getProps().getString(MAIN_ARGS, ""); return getProps().getString(MAIN_ARGS, "");
} }


protected String getJVMArguments() { protected String getJVMArguments() {
return getProps().getString(JVM_PARAMS, ""); String globalJVMArgs = getProps().getString(GLOBAL_JVM_PARAMS, null);
}
if (globalJVMArgs == null) {
return getProps().getString(JVM_PARAMS, "");
}

return globalJVMArgs + " " + getProps().getString(JVM_PARAMS, "");
}


protected String createArguments(List<String> arguments, String separator) { protected String createArguments(List<String> arguments, String separator) {
if (arguments != null && arguments.size() > 0) { if (arguments != null && arguments.size() > 0) {
Expand Down

0 comments on commit 77f51be

Please sign in to comment.