• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Christian L. · Jul 14, 2015 at 12:59 PM ·

Tomcat cannot start with dynaTrace Agent: "da der Zielcomputer die Verbindung verweigerte"

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

 

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Christian L. · Jul 15, 2015 at 04:18 PM

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

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Reinhard W. · Jul 14, 2015 at 05:14 PM

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?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Christian L. · Jul 14, 2015 at 01:01 PM

besides, dynaTrace Collector and Server 6.1. are both started.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A