I installed my Dynatrace Trail instance and I'm trying to monitor my first Tomcat 7 on one of Windows 2012 remote machines.
I created monitoring configuration and installed agent manually.
I tried to inject dtagent.dll through Tomcat Propertoes GUI (calling Tomcat7w).
In Java tab under Java Options I pasted:
but my dtwsagent.ini stayed unchanged.
I changed ini file manually adding:
# The name of the web server agent (used for agent mapping on the dynaTrace Server).
# The address of the dynaTrace Collector this agent should connect to.
# The address is of the form host:port, e.g. exampleserver:9998
After that agent got connected to the server but in Dynatrace Monitoring GUI but there was Dashboard message:
No Agent connected. Ensure that the environment is configured correctly and remember .....
I agent list all agents/agent is in connected status.
Also installed dthost agent on same remote machine and i got normal performance results.
I think that problem is maybe in my dtagent.dll injection syntax.
Also found on community that I have to use setenv.bat but I want tu use Tomcat7w for setting agentpath parameters.
Any ideas or suggestions.
Solved! Go to Solution.
Hi after changing syntax I'm getting error in tomcat7-stderr.log
2016-02-26 14:00:17 Commons Daemon procrun stderr initialized
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Unrecognized option: -agentpath=C:\dynaTraceAgent6.3\agent\lib\dtagent.dll=Name=Tomcat7_Monitoring,Server=dynatrace.vipnet.corp:9998
and Tomcat Windows service won't start.
When I added:
I'm getting this error in Tomcat7-stdout.log:
2016-02-26 14:04:26 Commons Daemon procrun stdout initialized
Error occurred during initialization of VM
Could not find agent library C:\dynaTraceAgent6.3\agent\lib\dtagent.dll in absolute path, with error: Can't load IA 32-bit .dll on a AMD 64-bit platform