As part of the App Visibility agent for Java installation process, you must add the agent JVM options to the Java command line of your application server.
The procedure to update the JVM options is different for each application server type, and this topic provides examples for some of the leading types of application servers. If you have more than one JVM process using the same agent installation, assign meaningful names to distinguish each instance.
This topic includes the following sections:
The App Visibility agent for Java requires up to 256 MB of JVM heap memory. When the agent runs in the same JVM memory space as the monitored applications, BMC recommends adding 256 MB to the Max heapsize Java options flag -Xmx.
For full details about both the -javaagent
and Xmx
options, refer to the Java options documentation for your application server type.
<AgentInstallationDirectory>
with the location where the agent is installed. The default folder is the one from which the installation script is run, for example:Windows<AgentInstallationDirectory>
\ADOPsInstall\adops-agent.jar
Where <AgentInstallationDirectory>
is the C:\bmc\appvis_agent directory
<AgentInstallationDirectory>
/ADOPsInstall/adops-agent.jar
<AgentInstallationDirectory>
is the /usr/bmc/appvis_agent directoryIf you have a single App Visibility agent installation directory that is used by multiple JVM processes, you can assign meaningful names to distinguish each instance. Otherwise, the same application server name (defined during installation) might be displayed multiple times.
Use one of the following command-line arguments for each JVM process:
-Dcom.bmc.adops.agent.instance.global.name=<globallyUniqueName>
<globallyUniqueName>
value must be unique among all App Visibility agents in the system.-Dcom.bmc.adops.agent.instance.local.name=
<locallyUniqueName>
<locallyUniqueName>
value must be unique for each application server instance on the computer that uses the agent. The <locallyUniqueName>
value is appended to the application server display name defined during agent installation (or the agent host name, if you did not define a name during installation).Note
The values for <globallyUniqueName>
and <locallyUniqueName>
can include only alphanumeric Latin characters, spaces, underscore characters (_), and hyphens (-).
You should configure WebSphere JVM options from the admin console; configuration should not be done from the start script.
Add the following lines:
Windows
-javaagent:<AgentInstallationDirectory>\ADOPsInstall\adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<locallyUniqueName>
Linux
-javaagent:<AgentInstallationDirectory>/ADOPsInstall/adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<locallyUniqueName>
Locate the JAVA_OPTIONS
environment variable and add the following lines:
Windows
set JAVA_OPTIONS=%JAVA_OPTIONS% -javaagent:<AgentInstallationDirectory>\ADOPsInstall\adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<locallyUniqueName>
Linux
JAVA_OPTIONS="${JAVA_OPTIONS} -javaagent:<AgentInstallationDirectory>/ADOPsInstall/adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<LocalUniqueID>"
Add the following lines:
Windows
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:<AgentInstallationDirectory>\ADOPsInstall\adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<locallyUniqueName>
Linux
CATALINA_OPTS="-javaagent:<AgentInstallationDirectory>/ADOPsInstall/adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<locallyUniqueName>"
Add the following lines:
Windows
set JAVA_OPTS=%JAVA_OPTS% -javaagent:<AgentInstallationDirectory>\ADOPsInstall\adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<locallyUniqueName>
Linux
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -javaagent:<AgentInstallationDirectory>/ADOPsInstall/adops-agent.jar -Dcom.bmc.adops.agent.instance.local.name=<locallyUniqueName>"
Verifying the installation of App Visibility agent for Java
Installing an App Visibility agent for Java
Granting Java 2 permissions to the App Visibility agent