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

前端 未结 4 1130
爱一瞬间的悲伤
爱一瞬间的悲伤 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:33

    There is a new project with the goal to support multiple Java agents. Currently it is limited to specific ones.

    Agent Bond is a super agent, which wraps and dispatches on several other agents. That way, you only have to install a single agent within your JVM with a single set of configuration data (which contains multiple separate parts).

    See https://github.com/fabric8io/agent-bond/blob/master/README.md for details

提交回复
热议问题