Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on
01-18-2018
11:12 AM
- edited on
06-24-2021
01:21 PM
by
Claudia.Landiva
This article contains instructions for passing startup parameters, such as proxy details, to Machine Agents in Linux, or in Windows.
./machine-agent -Dappdynamics.http.proxyHost=XXX -Dappdynamics.http.proxyPort=80
machineagent.jar
file, JVM arguments will be passed as:java -jar machineagent.jar -Dappdynamics.http.proxyHost=XXX -Dappdynamics.http.proxyPort=80
<Machine Agent -Dir>\bin
directory.VI
of filemachine-agent
.JAVA_OPTS="$JAVA_OPTS -Xmx256m"
You should see that the -Xmx JVM
argument is passed. After you pass the proxy settings, it will look like this:
JAVA_OPTS="$JAVA_OPTS -Xmx256m -Dappdynamics.http.proxyHost=XXX -Dappdynamics.http.proxyPort=80"
Machine-Agent
.
Windows users who wish to pass startup parameters (such as proxy details) to their Machine Agent should follow these steps:
<Machine Agent -Dir>\bin
directory.MachineAgentService.vmoptions
.<MachineAgent Home>/InstallService.vbs
file and add the following lines of code before vmOptionsFile.WriteLine:
vmOptionsFile.WriteLine("-Dappdynamics.http.proxyHost=XXX")
vmOptionsFile.WriteLine("-Dappdynamics.http.proxyPort=80")
Set vmOptionsFile = fsObject.OpenTextFile(scriptDir & "\bin\MachineAgentService.vmoptions", OVERWRITE, True)
vmOptionsFile.WriteLine("-Dappdynamics.http.proxyHost=internet_proxy2.via.novonet")
vmOptionsFile.WriteLine("-Dappdynamics.http.proxyPort=80")
NOTE: Do not create "MiniDump on crash". If the option is not supported by the JRE, the executable will ignore it.vmOptionsFile.WriteLine("-XX:-CreateMinidumpOnCrash")
Require your help on the following queries/issues:
Hi Pranabesh,
It is required to install Machine agent with the bundled JRE , then only we can able to pass the parameters to machine agent service.
If you would like to points to JRE located on your host , need to change the Java home parameter & path accordingly.
Thanks
Naren
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form