Customize Java runtime options

Customize Java runtime options - 图1note

This setting only applies to process runtime and Kubernetes runtime.

To pass additional arguments to the JVM command line for every process started by a function worker, you can configure the additionalJavaRuntimeArguments in the conf/functions_worker.yml file as follows.

  • Add JVM flags, like -XX:+ExitOnOutOfMemoryError
  • Pass custom system properties, like -Dlog4j2.formatMsgNoLookups
  1. additionalJavaRuntimeArguments: ['-XX:+ExitOnOutOfMemoryError','-Dfoo=bar']