How do I start my Java program with more than one java agent?

前端 未结 4 1132
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 02:50

I\'m aware of how to start a java progam with a java agent:

java -javaagent:myAgent.jar MyJavaProgram

But what if I want to add 2 or more java

4条回答
  •  庸人自扰
    2021-01-30 03:42

    How about two javaagent parameters?

    java -javaagent:agentA.jar -javaagent:agentB.jar MyJavaProgram
    

提交回复
热议问题