[Docs] add documentation for additionalJavaRuntimeArguments (PR #13282) (#13791)

* [Docs] add documentation for additionalJavaRuntimeArguments (PR #13282)

* Apply suggestions from Yu's code review

Co-authored-by: Anonymitaet <50226895+Anonymitaet@users.noreply.github.com>

Co-authored-by: Anonymitaet <50226895+Anonymitaet@users.noreply.github.com>
diff --git a/site2/docs/functions-worker.md b/site2/docs/functions-worker.md
index 0594416..e0d8dca 100644
--- a/site2/docs/functions-worker.md
+++ b/site2/docs/functions-worker.md
@@ -127,6 +127,22 @@
 - `clientAuthenticationPlugin`
 - `clientAuthenticationParameters`
 
+#### Customize Java runtime options
+
+If you want to pass additional arguments to the JVM command line to every process started by a function worker,
+you can configure the `additionalJavaRuntimeArguments` parameter.
+
+```
+additionalJavaRuntimeArguments: ['-XX:+ExitOnOutOfMemoryError','-Dfoo=bar']
+```
+
+This is very useful in case you want to:
+- add JMV flags, like `-XX:+ExitOnOutOfMemoryError`
+- pass custom system properties, like `-Dlog4j2.formatMsgNoLookups`
+
+**Note**
+This feature applies only to Process and Kubernetes runtimes.
+
 #### Security settings
 
 If you want to enable security on functions workers, you *should*: