Hi all,
can you guide me how to integarte ,I saw documentaion :
I have used apache-tomcat-6.0.18.exe for set up.
I am not seeing tomcat-install-dir>\bin\catalina.bat file.
please suggest me in which file I hvee to put follwoing code ....
"%1"=="stop" goto skip_agent
set JAVA_OPTS=%JAVA_OPTS% -
javaagent:"agent_install_dir\javaagent.jar":skip_agent
waiting for youy reply
Regards
Praveen Kumar
////////////////////////////////// Doc related tomcat //////////////////////////////////////
1.Open the -tomcat-install-dir>\bin\catalina.bat file.
2.Add the following lines of code to the beginning of your server's start script (add them to the top of the file after the comments). The agent has to start before the server starts. Follow the links below to see examples that show where to put the code in start scripts for Tomcat 5.x/6.x.
Note: Since you only want the argument to be active during a start, add code to differentiate between a start and stop operation (ie. the skip_agent code included below).
if "%1"=="stop" goto skip_agent
set JAVA_OPTS=%JAVA_OPTS% -
javaagent:"agent_install_dir\javaagent.jar":skip_agent
Comments
Did you change the default install directory for your tomcat install? For the windows version of tomcat, the default location for catalina.bat is: %CATALINA_HOME%\bin\catalina.bat (the bin directory of the location where you installed tomcat).
Let me know if you still can't find the file. Try searching for it too.
Can you tell me more about your environment?
Jason
Thanks,
I am using windows version apache-tomcat-6.0.18.exe for set up.
In My bin directory the file is not available : %CATALINA_HOME%\bin\catalina.bat
I have downloaded from following path
@ tomcat server :
http://tomcat.apache.org/download-60.cgi
* Core:
o zip (pgp, md5)
o tar.gz (pgp, md5)
o 32-bit Windows zip (pgp, md5)
o 64-bit Windows zip (pgp, md5)
o 64-bit Itanium Windows zip (pgp, md5)
////
This version I used for installation :
o 32-bit/64-bit Windows Service Installer (pgp, md5)
////
In My Tomcat Bin Directory :I am getting following file :
bootstrap.jar
tomcat6
tomcat6w
tomcat-juli.jar
waiting for
Regards,
Praveen
Can you see if you can find the file "startup.bat"? That should be in that /bin path and should be the start script you are looking for.
After you start Tomcat and if you installed Tomcat as a service on Windows, navigate to Control Panel >Administrative Tools > Services to verify that the service's status is "Started"
Let me know if that helps.
- Go to All Programs->Apache Tomcat 6.0->Configure Tomcat
- Click on Java tab
- Under Java Options section, add "-javaagent:path-to-appdynamics-lite-jar"
- Restart Tomcat service
We've updated our documentation to include these instructions. Please take a look and let us know if we can help with anything else.
http://litedocs.appdynamics.com/default.htm?tomcat_as_a_windows_service_.htm
http://www.koiloth-ramath.com/Grumpy/readBlog.htm?blogId=16
http://litedocs.appdynamics.com/display/ADLite/Apache+Tomcat
Thanks,
Ruchita
OS : Ubuntu
Appsever : tomcat 6.0
my entry in catalina.sh file is
if ["$1" ="start" -o" $1" ="run"]; then
export JAVA_OPTS="$JAVA_OPTS \-javaagent:/home/rohit/software/ApacheTomcat/apache-tomcat-6.0.32/AppServerAgentLite/javaagent.jar"
fi
but this is not working !
please advise.
regards,
rohit
Can you confirm if user who is runnning java process has read , write permission to home/rohit/software/ApacheTomcat/apache-tomcat-6.0.32/AppServerAgentLite/logs directory ?
Do you see anything in the logs directory ?
Regards,
Arpit PAtel