Can I use other properties in the agent profile as Java arguments with the -D option?

Document ID : KB000068856
Last Modified Date : 06/02/2019
Show Technical Document Details
Introduction:
In some instances it may be needed or optimal to leverage properties in the agent profile as a Java argument with the -D option.
Question:

Can I configure other properties in the agent profile as Java arguments with the -D option? 

 

 

Environment:
All APM Agents
Answer:
 The standard agent documentation specifies a few things that can be passed from the command line to force specific values. For example, to specify an agent name using Java system property, on the Java command line, supply the desired name using this property: -Dcom.wily.introscope.agent.agentName=. 

 Most other agent profile properties can be passed on the Java command line as well but are not documented and likely have not been officially tested. An example of  a property that is listed in the agent profile but not documented to be used on the Java command line is introscope.agent.customProcessName.  To use the property on the Java command line, you would use: -Dintroscope.agent.customProcessName=.
Additional Information:

Not all properties are tested to be used this way and some may not work. Always test first and use at your own risk!