Skip to content

Commit

Permalink
update java agent syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Gu <cgu@linkedin.com>
  • Loading branch information
UWFrankGu committed Dec 15, 2021
1 parent b68dcfe commit e28d046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tony-core/src/main/java/com/linkedin/tony/TonySession.java
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private String appendDefaultJVMArgs(String jvmArgs) {
jvmArgs += " -Dlog4j2.formatMsgNoLookups=true";
String tonyTaskExecutorJavaAgent = tonyConf.get(TonyConfigurationKeys.TASK_EXECUTOR_JAVA_AGENT, "");
if (!tonyTaskExecutorJavaAgent.isEmpty()) {
jvmArgs += " -javaagent=" + tonyTaskExecutorJavaAgent;
jvmArgs += " -javaagent:" + tonyTaskExecutorJavaAgent;
}
return jvmArgs;
}
Expand Down

0 comments on commit e28d046

Please sign in to comment.