public Optional<String> getWorkerOpts() {
    String autosizingWorkerHeapMb = get(JobConfig.JOB_AUTOSIZING_WORKER_MAX_HEAP_MB);
    String workerOpts = get(ShellCommandConfig.WORKER_JVM_OPTS);
    return Optional.ofNullable(getFinalJvmOptions(workerOpts, autosizingWorkerHeapMb));
  }
Returns the worker opts for the application if available.
samza-core/src/main/java/org/apache/samza/config/ShellCommandConfig.java