Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Start Agent and WebLogic Using an Ant Script

Question

I am trying to start the java agent in WebLogic  environment that deploys and starts the Weblogic domains via an ANT script.
 
I am struggling to find where in the ant target to place the agent.

Has anyone tried to do instrumentation via an ant script? Any hints?

I added something like this:
<jvmarg value=-javaagent:/u01/apps/appdynamics/appagent/javaagent.jar”/>

to one of the deployment and run ant targets. However, the javaagent argument doesn’t seem to find its way to the jvm.

Answer

Pass it as an "arg" rather than a JVM arg since it is not a -D arg.

Version history
Revision #:
1 of 1
Last update:
‎05-14-2015 11:25 AM
Updated by:
 
Contributors
Tags (2)
0 Kudos