Hi,
I added the dynTrace Agent JVM-Param to my tomcat-startup-script.
I get the following error message and the startup just stops:
2015-07-13 18:03:44 [000000a8] info [native] Loading collector peer list from C:/Program Files/dynaTrace/dynaTrace 6.1.0/agent/conf/collectorlist.Tomcat_Monitoring
2015-07-13 18:03:44 [000000a8] info [native] dynaTrace Bootstrap Agent 6.1.0.7868
2015-07-13 18:03:44 [000000a8] info [native] Using C:/Program Files/dynaTrace/dynaTrace 6.1.0 as Agent storage
2015-07-13 18:03:44 [000000a8] info [native] Log file at C:/Program Files/dynaTrace/dynaTrace 6.1.0/log/dt_Tomcat_Monitoring_bootstrap_24756.0.log
2015-07-13 18:03:44 [000000a8] info [native] Trying to connect to Server/Collector for up to 20 seconds
2015-07-13 18:03:45 [000000a8] info [native] Error connecting: connect()/apr_socket_connect(), 730061, Connection refused
2015-07-13 18:04:05 [000000a8] info [native] ... last message repeated 13 times ...
2015-07-13 18:04:05 [000000a8] severe [native] Unable to connect to Server/Collector. Last error was: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. (730061)
2015-07-13 18:04:05 [000000a8] warning [native] Unable to register with Server/Collector c0817:9998
2015-07-13 18:04:05 [000000a8] info [native] Loading Agent C:/Program Files/dynaTrace/dynaTrace 6.1.0/agent/lib64/dtagentcore.dll
2015-07-13 18:04:05 [0000018c] info [native] Loading collector peer list from C:/Program Files/dynaTrace/dynaTrace 6.1.0/agent/conf/collectorlist.Tomcat_Monitoring
2015-07-13 18:04:05 [0000018c] info [native] AMD CPU detected.
2015-07-13 18:04:05 [0000018c] info [native] ProcNum=0 MaxMhz=3200 CurrentMhz=800 MhzLimit=3200 MaxIdleState=1 CurrentIdleState=1 hasInvariantTSC=true
2015-07-13 18:04:05 [0000018c] info [native] ProcNum=1 MaxMhz=3200 CurrentMhz=800 MhzLimit=3200 MaxIdleState=1 CurrentIdleState=1 hasInvariantTSC=true
2015-07-13 18:04:05 [0000018c] info [native] ProcNum=2 MaxMhz=3200 CurrentMhz=800 MhzLimit=3200 MaxIdleState=1 CurrentIdleState=1 hasInvariantTSC=true
2015-07-13 18:04:05 [0000018c] info [native] ProcNum=3 MaxMhz=3200 CurrentMhz=800 MhzLimit=3200 MaxIdleState=1 CurrentIdleState=1 hasInvariantTSC=true
2015-07-13 18:04:06 [0000018c] info [native] High-resolution hardware timer detected.
2015-07-13 18:04:06 [0000018c] info [native] ------------------------------------------------------------------------------------------------
2015-07-13 18:04:06 [0000018c] info [native] dynaTrace Agent for Java Copyright (C) 2004-2014 Compuware Corporation, http://www.compuware.com
2015-07-13 18:04:06 [0000018c] info [native] ------------------------------------------------------------------------------------------------
2015-07-13 18:04:06 [0000018c] info [native] Version ..................... 6.1.0.7868, build date Nov 14 2014 09:41:48, svn rev. UNKNOWN
2015-07-13 18:04:06 [0000018c] info [native] Command line is "C:\Program Files\Java\jdk1.7.0_55\bin\javaw.exe" -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:57992 "-Dcatalina.home=C:\Program Files\Java\tomcat\apache-tomcat-7.0.27" "-Djava.endorsed.dirs=C:\Program Files\Java\tomcat\apache-tomcat-7.0.27\endorsed" "-Dcatalina.base=C:\Program Files\Java\tomcat\apache-tomcat-7.0.27" "-Djava.io.tmpdir=C:\Program Files\Java\tomcat\apache-tomcat-7.0.27\temp" "-agentpath:C:\Program Files\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll=name=Tomcat_Monitoring,server=c0817:9998" -XX:+UseMembar -XX:-UseSplitVerifier -XX:PrintFLSStatistics=1 -Dcom.sun.management.jmxremote -Duser.country=US -Duser.language=en -Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true -XX:MaxPermSize=512m -Xmx4000m -Xms512m -Dfile.encoding=Cp1252 -classpath "C:\Program Files\Java\tomcat\apache-tomcat-7.0.27\bin\bootstrap.jar;C:\Program Files\Java\tomcat\apache-tomcat-7.0.27\bin\tomcat-juli.jar;C:\Program Files\Java\jdk1.7.0_55\lib\tools.jar" org.apache.catalina.startup.Bootstrap -config "C:\Program Files\Java\tomcat\apache-tomcat-7.0.27\conf\server.xml" stop
2015-07-13 18:04:06 [0000018c] info [native] Build platform .............. Windows x86 64-bit
2015-07-13 18:04:06 [0000018c] info [native] Platform .................... Windows 7 Service Pack 1 6.1.7601 x64
2015-07-13 18:04:06 [0000018c] info [native] OS edition .................. Standard
2015-07-13 18:04:06 [0000018c] info [native] OS productId ................ Unknown
2015-07-13 18:04:06 [0000018c] info [native] Hyper-V friendly name ....... Unknown
2015-07-13 18:04:06 [0000018c] info [native] Bootstrap version ........... 6.1.0.7868
2015-07-13 18:04:06 [0000018c] info [native] Log level console ........... info
2015-07-13 18:04:06 [0000018c] info [native] Log level file .............. info
2015-07-13 18:04:06 [0000018c] info [native] Log file .................... C:/Program Files/dynaTrace/dynaTrace 6.1.0/log/dt_Tomcat_Monitoring_24756.0.log
2015-07-13 18:04:06 [0000018c] info [native] Agent host .................. C0817
2015-07-13 18:04:06 [0000018c] info [native] Agent library ............... C:/Program Files/dynaTrace/dynaTrace 6.1.0/agent/lib64/dtagentcore.dll
2015-07-13 18:04:06 [0000018c] info [native] Options string .............. name=Tomcat_Monitoring,server=c0817:9998
2015-07-13 18:04:06 [0000018c] info [native] Agent name .................. Tomcat_Monitoring
2015-07-13 18:04:06 [0000018c] info [native] Server/Collector ............ c0817:9998
2015-07-13 18:04:06 [0000018c] info [native] Interface type .............. JVMTI
2015-07-13 18:04:06 [0000018c] info [native] Process ID .................. 24756
2015-07-13 18:04:06 [0000018c] info [native] JVM name .................... Java HotSpot(TM) 64-Bit Server VM 24.55-b03
2015-07-13 18:04:06 [0000018c] info [native] JVM vendor .................. Oracle Corporation
2015-07-13 18:04:06 [0000018c] info [native] JVM info .................... mixed mode, sharing
2015-07-13 18:04:07 [0000018c] info [native] Could not retrieve LoadBalancing configuration from c0817:9998 (730061): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.
2015-07-13 18:04:07 [0000018c] info [native] Trying to connect to Server/Collector for up to 0 seconds
2015-07-13 18:04:08 [0000018c] severe [native] Exception while connecting to collector, info:<connect()/apr_socket_connect(), 730061, Connection refused>
2015-07-13 18:04:08 [0000018c] warning [native] Unable to register with Server/Collector c0817:9998, CONTINUING WITHOUT INSTRUMENTATION.
2015-07-13 18:04:08 [0000018c] warning [native] Capability can_suspend not available, this is often due to another agent running (e.g. jdwp). Suspending threads might be unreliable.
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
Any idea? It does not seem to be a firewall issue because there is no message whatsoever about that.
Regards
Christian
Answer by Christian L. ·
Hi Reinhard,
you were right. I checked the "start tomcat not in debug mode" checkbox in eclipse tomcat menu and the JVM-Param disappeared. I now could go on.
Thank you very much!
Regards
Christian
Answer by Reinhard W. ·
I think your JDWP agent interferes with the dynatrace agent. Can you try removing -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:57992 " from your startup arguments.
Did you check if the collector hostname is resolveable also?
JANUARY 15, 3:00 PM GMT / 10:00 AM ET