Hi i am not able to connect apache tomcat server9 as a application serverdynatrace-system-profile.jpg.
i followed the below steps.. please suggest me if i miss anything.
1.i created setenv.bat file and added "SET CATALINA_OPTS=-agentpath:"C:\Program Files\Dynatrace\Dynatrace 7 \agent\lib\dtagent.dll"=name=DT_Monitoring,server=localhost:9998" kept in apache tomcat9/bin floder.
2.i added "-agentpath:"C:\Program Files\Dynatrace\Dynatrace 7\agent\lib\dtagent.dll"=name=DT_Monitoring,server=localhost:9998" in java tab under apche tomcat server9 properties.when ever i added this tomcat server not starting. Even i set JRE_HOME under systsem variables.
3. i am able to see tomcat server in system profiles.But under Agents overview tomcat server9 not coming.
I've encounter several times before, that, for Java Agent the agent couldn't work if there is whitespace in the directory being installed, although I don't know why.
You MIGHT want to give this a try (install the java agent in directory where there isn't any whitespace), but I couldn't guarantee it will work. Just provide you one of the possibility here.
Hello @Sayed A.
There are three following things you will have to be taken care.
"SET CATALINA_OPTS=-agentpath:"C:\Program Files\Dynatrace\Dynatrace 7 \agent\lib\dtagent.dll"=name=DT_Monitoring,server=localhost:9998"
Also there should not be a single space in the agentpath as mentioned by @Chan Wai K. in his answer.
Share the agent and server/collector logs in case you have the same situation after followed the above steps.
Thank you for suggestions. Am facing same issue still.
1.i added name agent name same as system profile name.below the path i added in setenv.bat file
SET CATALINA_OPTS=-agentpath:"C:\Program Files\Dynatrace\Dynatrace7.0\agent\lib64\dtagent.dll"=name=Tomcat_Monitoring,server=localhost:9998
2.i am using dynatrace server,clinet and apache tomcat9 server all in same machine(localhost).
3.i placed lib64 in agent path
PFA server logs.
Hello @Sayed A.
Double check your configuration according to below documentation.
For Tomcat 7.x or later, it is recommend to configure environment variables in the
setenv.sh script located in
This file is not typically found in a default Tomcat-only installation and must be created manually, co-located with
bin). Be sure to place it in the right directory matching your installation type and OS.
Review the below link for more insight.