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
05-30-2017 02:31 PM
I'm following the
https://docs.appdynamics.com/display/PRO43/Java+Agent
I'm using CENTOS
01.
<>/controller/#/location=GETTING_STARTED_JAVA&timeRange=last_15_minutes.BEFORE_NOW.-1.-1.15
02. JVM i select SUN/Rockit (Is this right?)
03. Configure - allready configured is SaaS
04. Download
05. Install Agent
05.a unzip
05.b Set the value of -javaagent to the path to the Java Agent JAR file.
06.
$TOMCAT_HOME/bin/catalina.sh
I make some mistake, but how can i find this error?
Regards
Solved! Go to Solution.
06-06-2017 05:18 PM
Hi I am having the same issue.
I downloaded the java agent from teh controller. copied to linux vm via winscp.
unzipped the installer.zip in the appd folder
i did all the above as the appd user.
Then as tomcat user, i created a setenv.sh file . added export CATALINA_OPTS=
"$CATALINA_OPTS -javaagent:/home/appdt/javaagent.jar"
and restared the tomcat(catalina.sh start and catalina.sh run)
I got an error :
Error opening zip file or JAR manifest missing : /home/appd/javaagent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file or JAR manifest missing : /home/appd/javaagent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
i went and as appd user
chmod 755 javaagent.jar
retstarted tomcat agin. No result.
No agent success logs
06-06-2017 05:31 PM
More than a few times, I've seen Unix files corrupted when copied from Windows to Linux via WinSCP.
If the copy is not explicitely "binary", Unix end-of-iines are converted to Windows end-of-lines and the file won't work.
I'm not saying that's definitely what happened in your case, but the error messages are consistent with that kind of file corruption.
Regards,
Brian Wheeldon
Brian Wheeldon, Solution Engineer, NYC
06-06-2017 06:05 PM
is there a solution to this? that is the only i can work on this. copy from a windows machine .
06-06-2017 06:12 PM
i guess that can be an issue. This is the only way i can copy the bits from a windows server to the linux VM.
Also I see that the javaagent.jar and log folders do not show todays date. even after i got the agent install success message after tomcat restart.
06-06-2017 06:36 PM
Brian Wheeldon, Solution Engineer, NYC
06-06-2017 07:32 PM
can i skip winscp all togther and use the linux command scp get and put ?
I am uninstalling right now. I will delete the setnev,sh file. delete the zip folder
and restrts the tomcat .
and what user do you recommend tp use while installing?
06-07-2017 03:09 AM
The best practice is to install the Java Agent as the same user that runs the app server you want to monitor.
Brian
Brian Wheeldon, Solution Engineer, NYC
06-27-2017 08:52 PM
I am confused here. Because my undertsanding was that if we isntall as root , we are not messing with changing permissions for any user. I work in a client env. there are regulations here, the application user( they have the sole rights to restart the JVMs/instances) and the server admins are dofferent team( they have root on app servers, hence they install the agent). Hence we always install as root. What teh advantages of installing as the same user like you suggested?
06-29-2017 06:32 AM
Hi Brain,
How can we verify if tomcat can write to agent logs directory?
Im running tomcat, agent, controller all on same host under my user still cant see agent on controller and logs arent been written.
Regards
Narita
06-29-2017 11:12 AM
You may install the agent as root, but it's not required or recommended.
It's necessary that the application server user can write the $AGENT_HOME/<version>/logs/ and $AGENT_HOME/<version>/conf/ directories. If you install the agent as root and don't make those directories writable by the app server user, then the agent startup will fail.
Doc reference: https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent
Brian Wheeldon, Solution Engineer, NYC
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form