You can use additional configurations to auto-attach Java Agent to a specific Java service instead of the default one.

Before You Begin

You must have Smart Agent command line utility installed. See Smart Agent Command Line Utility.

Configure Auto-Attach Using Smart Agent CLI

You can overwrite the default ld_preload.json to auto-attach Java Agent to a specific service. For more information about auto-attach feature, see Auto-Attach Agents to Applications.

Use the configure command on Smart Agent CLI to overwrite the configuration.

For using Smart Agent CLI, see Smart Agent Command Line Utility.

Example Configure Command

appd configure smartagent --attach-configure-file { path_to_ld_preload_json } 
CODE

This copies the ld_preload.json from control node to managed node.