Anonymitaet commented on a change in pull request #13791:
URL: https://github.com/apache/pulsar/pull/13791#discussion_r785958008



##########
File path: site2/docs/functions-worker.md
##########
@@ -127,6 +127,21 @@ If authentication is enabled for your broker cluster, you 
*should* configure the
 - `clientAuthenticationPlugin`
 - `clientAuthenticationParameters`
 
+#### Customizing Java Runtime Options
+
+If you want to pass additional arguments to the JVM command line to every 
process started by the worker

Review comment:
       ```suggestion
   If you want to pass additional arguments to the JVM command line to every 
process started by a function worker,
   ```
   
   do you mean this?

##########
File path: site2/docs/functions-worker.md
##########
@@ -127,6 +127,21 @@ If authentication is enabled for your broker cluster, you 
*should* configure the
 - `clientAuthenticationPlugin`
 - `clientAuthenticationParameters`
 
+#### Customizing Java Runtime Options

Review comment:
       ```suggestion
   #### Customize Java runtime options
   ```

##########
File path: site2/docs/functions-worker.md
##########
@@ -127,6 +127,21 @@ If authentication is enabled for your broker cluster, you 
*should* configure the
 - `clientAuthenticationPlugin`
 - `clientAuthenticationParameters`
 
+#### Customizing Java Runtime Options
+
+If you want to pass additional arguments to the JVM command line to every 
process started by the 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`
+
+Please note that this feature applies only to Process and Kubernetes runtimes.

Review comment:
       ```suggestion
   **Note**
   This feature applies only to Process and Kubernetes runtimes.
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to