From d39ba2e47324dbcb19f04bc33974c86a0b88a24c Mon Sep 17 00:00:00 2001 From: peterstone2017 <12449837+YunchuWang@users.noreply.github.com> Date: Fri, 18 Oct 2024 01:41:52 -0700 Subject: [PATCH] feat: support full jvm arg override --- worker.config.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/worker.config.json b/worker.config.json index 3bf2ec9f..6c3013fa 100644 --- a/worker.config.json +++ b/worker.config.json @@ -45,6 +45,15 @@ "description":{ "arguments": ["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -javaagent:\"{workerDirectoryPath}/agent/applicationinsights-agent.jar\" -jar", "%JAVA_OPTS%", "%AZURE_FUNCTIONS_MESH_JAVA_OPTS%"] } + }, + { + "profileName":"CustomDefined", + "conditions":[ + {"conditionType":"environment","conditionName":"OVERRIDE_JVM_ARG","conditionExpression":"(?i)true$"} + ], + "description":{ + "arguments": ["%JAVA_OPTS%", "%AZURE_FUNCTIONS_MESH_JAVA_OPTS%"] + } } ] } \ No newline at end of file