On this page:
The topics in this section describe how to maintain the AppDynamics Java Agent and how to tune its configuration for your requirements. These include, for example, how to upgrade the agent to a new version and how configure SSL for the agent.
Not all properties are available as environment variables, system properties, or XML elements for the controller-config.xml. Property references include only the available configuration methods.
Choose an Effective Configuration Strategy
- Use versioned agent properties and versioned configuration files before using global agent properties and global configuration files. This minimizes any impact of configuration format changes in future agent releases.
- The agent only reads versioned agent properties and versioned configuration files from one versioned directory. During upgrades, manually migrate configurations from directories for previous versions. See Upgrade the Java Agent.
- The Agent Download Wizard automatically configures the agent using a versioned configuration file. The configuration in controller-info.xml statically defines the agent identity.
- For dynamic or elastic environments that require flexible agent identity, use an approach that provides for the dynamic node identification.
For example, pass node identify or other agent configuration settings dynamically using environment variables or system properties.
- For shared binaries among multiple JVM instances, AppDynamics recommends you use a combination of configuration files and startup properties to configure the app agent. In this case, you configure properties common to all JVMs in the controller-info.xml file. Then specify the properties unique to each JVM using environment variables or system properties. See Instrument Multiple JVMs on a Single Machine for example configurations.
- For some properties, you can use system properties already defined in the startup script as the Java Agent property values. For more information, see Use System Properties for Java Agent Settings.
The following samples show you how to use the three primary configuration mechanisms to configure the agent: system properties, agent properties, and configuration file properties.
System Properties Sample Configuration
The following command demonstrates a startup script that includes system properties to start and configure the Java Agent . The application is "ACMEOnline", the tier is "Inventory", and the node is "Inventory1". SampleApplication is the application file.
System property values are case-sensitive.
The Java Agent doesn't include an agent.properties file by default. The file is a list of key-value pairs of system properties. For example:
- The JVM treats properties from the agent.properties file the same as system properties. Values in agent.properties do not override any properties passed explicitly in the JVM startup script.
- You can also include system properties not specific to AppDynamics in the agent.properties file. Values from agent.properties do not override values passed in the JVM startup script.
- Do not include
-Dswitch for keys in the agent.properties file.
controller-info.xml Sample File
The controller-info.xml file resides in <agent_home>/<version_number>/conf. Comments in the file from the agent distribution describe the settings. They have been removed in the following example for brevity.