Provision and Deploy APM Java Agent on Peoplesoft
Download the APM Java Agent
For instructions, refer to Download the APM Java Agent Software.
Provision the APM Java Agent
For detailed information and instructions, refer to Provision the APM Java Agent.
When running the
java command to provision the agent with the mandatory
arguments, review the below example as a
reference:java -jar ./apm-java-agent-installer-<version>.jar provision-agent -service-name=<Name of the Service> -destination=<Destination_Directory> -private-data-key=<Private data key generated during APM domain creation> -data-upload-endpoint=<dataUploadEndpoint URL generated during APM domain creation>-
service-nameis the service being monitored.For example:
-service-name=PSFT_PIA -
destinationis the destination directory in which the APM Java agent will be provisioned. -
private-data-keyis the agent installation private data key used by the APM Java agent, which is generated when the APM domain is created. -
data-upload-endpointis the dataUploadEndpoint URL, which is generated when the APM domain is created.
Deploy the APM Java Agent
- Navigate to the PIA Domain Administration menu.
- From the shell prompt, start the
psadminutility with the following command:psadmin - Select 3 for Web (PIA) Server.
- Select 1 to administer a domain.
- Select the PIA domain where to install the APM Agent.
- Edit the configuration files:
- View the list of configuration files to edit by executing command 5.
- Select 1 to edit the
setEnvfile. ThesetEnvfile will open in aVieditor. - Search for the corresponding
JAVA_OPTIONS_<Operating System>variable and add the following option:JAVA_OPTIONS_<Operating System>="${JAVA_OPTIONS_<Operating System} -javaagent:${DOMAIN_HOME}/oracle-apm-agent/bootstrap/ApmAgent.jar"Where
<Operating System>is the operating system that Peoplesoft PIA runs on.
- Save the changes made to the
setEnvfile and exit theVieditor to see the list of configuration files. - Type q to exit this menu, and see the PIA Administration menu.
- Reboot the PIA domain:
- Navigate to the PIA Domain Administration menu. Refer to step 1.
- Select 2 to shut down the domain.
- Select 3 to get the status of the domain to check if it is still running.
- Select 1 to boot this domain to complete the restart of the PIA domain.