cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace agent cannot start from tomcat side

zli16
Newcomer

Hi there,

I'm pretty new to dynatrace, and I would like to use it to monitor my tomcat application.

I have an web server application installed dynatrace agent, another machine installed with dynatrace server and collector.

So, I was following the steps to create application in server side, got the instruction that I need to add the agent path in the agent machine, I did the following:

1. On agent machine, open cmd line to type:

java -agentpath:"C:\Program Files (x86)\ThingWorxFoundation\tomcat\apache-tomcat-9.0.30\dtLib\64\dtagent.dll"=name=Tomcat_Monitoring,server=10.224.104.198:9988

2. The agent failed to connect to server.

Log information:

020-05-26 05:06:32.810 UTC [00000c74] info [native] Cannot get ProcessGroupIdResult from InProcStore.

2020-05-26 05:06:32.810 UTC [00000c74] info [native] hostId calculated based on hostname DAETWXSERVER

2020-05-26 05:06:32.825 UTC [00000c74] info [native] Cannot get ProcessGroupIdResult from InProcStore.

2020-05-26 05:06:32.825 UTC [00000c74] info [native] hostId calculated based on hostname DAETWXSERVER

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Loading agent runtime configuration from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/runtimeConfiguration_v2

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Runtime configuration revision 9197401818712390362 loaded.

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Loading agent UEM configuration from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/uemConfiguration

2020-05-26 05:06:32.841 UTC [00000c74] info [native] UEM configuration revision 3590303280346006519 loaded.

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Loading agent toplevel domain configuration from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/toplevelDomainConfig

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Toplevel domain configuration version 52213565 loaded.

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Loading agent Mobile RUM configuration from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/mobileRUMConfiguration

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Mobile RUM configuration revision 484102475162796184 loaded.

2020-05-26 05:06:32.841 UTC [00000c74] info [native] Loading JS agent from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/jsagent-7000200001697.zip

2020-05-26 05:06:32.857 UTC [00000c74] info [native] JS agent version 7000200001697 loaded.

2020-05-26 05:06:32.857 UTC [00000c74] info [native] Loading agent Uem Volatile Settings from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/uemVolatileSettings

2020-05-26 05:06:32.857 UTC [00000c74] info [native] No on-disk cache of agent Uem Volatile Settings found: File/Path='C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/uemVolatileSettings' : The system cannot find the file specified.

2020-05-26 05:06:32.857 UTC [00000c74] info [native] Setting integer property 'correlation.maxNodesPerPath' to 100000

2020-05-26 05:06:32.857 UTC [00000c74] info [native] Setting integer property 'sensor.stringTruncationLimit.webrequest' to 32768

2020-05-26 05:06:32.857 UTC [00000c74] info [native] Setting boolean property 'fullMemoryDumpUseOnDiskBuffer' to false

2020-05-26 05:06:32.857 UTC [00000c74] info [native] Setting boolean property 'subpathsender.preemptMethods' to true

2020-05-26 05:06:32.857 UTC [00000c74] info [native] Setting boolean property 'subpathsender.preemptStrings' to true

2020-05-26 05:06:32.872 UTC [00000c74] info [native] Loading ruleset from C:/ProgramData/dynatrace/appmon/agent/bin/1.151.349.20181004-133141/any/java/ruleset

2020-05-26 05:06:32.872 UTC [00000c74] info [native] Loading customRuleset from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/customRuleset

2020-05-26 05:06:32.872 UTC [00000c74] info [native] Loading cluster runtime info from C:/ProgramData/dynatrace/appmon/agent/conf/runtime/Tomcat_Monitoring_java_S-1-5-21-1287805661-4276682228-3087066944-500_1/clusterRuntimeInfo

2020-05-26 05:06:32.872 UTC [00000c74] info [native] Cluster runtime info updated to revision 2350712746 (servers=[-1362945459]; collectors={}; dump supporting collectors={}; clusterId=0xaec31a4d)

2020-05-26 05:06:32.904 UTC [00000c74] info [native] Intel CPU 0x06 0x4f detected.

2020-05-26 05:06:32.904 UTC [00000c74] info [native] ProcNum=0 MaxMhz=2394 CurrentMhz=2394 MhzLimit=2394 MaxIdleState=2 CurrentIdleState=2 hasInvariantTSC=true

2020-05-26 05:06:32.904 UTC [00000c74] info [native] ProcNum=1 MaxMhz=2394 CurrentMhz=2394 MhzLimit=2394 MaxIdleState=2 CurrentIdleState=2 hasInvariantTSC=true

2020-05-26 05:06:32.904 UTC [00000c74] info [native] ProcNum=2 MaxMhz=2394 CurrentMhz=2394 MhzLimit=2394 MaxIdleState=2 CurrentIdleState=2 hasInvariantTSC=true

2020-05-26 05:06:32.904 UTC [00000c74] info [native] ProcNum=3 MaxMhz=2394 CurrentMhz=2394 MhzLimit=2394 MaxIdleState=2 CurrentIdleState=1 hasInvariantTSC=true

2020-05-26 05:06:33.216 UTC [00000c74] info [native] High-resolution hardware timer detected.

2020-05-26 05:06:33.216 UTC [00000c74] info [native] -----------------------------------------------------------------------------

2020-05-26 05:06:33.216 UTC [00000c74] info [native] Dynatrace Agent for Java Copyright (C) 2004-2018 Dynatrace. www.dynatrace.com

2020-05-26 05:06:33.216 UTC [00000c74] info [native] -----------------------------------------------------------------------------

2020-05-26 05:06:33.216 UTC [00000c74] info [native] Version ..................... 1.151.342.20181003-135315, svn rev. 809945

2020-05-26 05:06:33.216 UTC [00000c74] info [native] Command line is java -agentpath:"C:\Program Files (x86)\ThingWorxFoundation\tomcat\apache-tomcat-9.0.30\dtLib\64\dtagent.dll"=name=Tomcat_Monitoring,server=10.224.104.198:9988

2020-05-26 05:06:33.216 UTC [00000c74] info [native] Build platform .............. Windows x86 64-bit

2020-05-26 05:06:33.216 UTC [00000c74] info [native] Platform .................... Windows Server 2016 Standard 10.0.14393 x64

2020-05-26 05:06:33.216 UTC [00000c74] info [native] OS edition .................. ServerStandard

2020-05-26 05:06:33.216 UTC [00000c74] info [native] OS productId ................ 00377-60000-00000-AA145

2020-05-26 05:06:33.216 UTC [00000c74] info [native] Hyper-V friendly name ....... Unknown

2020-05-26 05:06:33.216 UTC [00000c74] info [native] System startup time ......... 2020-05-26 02:49:36 UTC

2020-05-26 05:06:33.216 UTC [00000c74] info [native] Local timezone .............. UTC+0800

2020-05-26 05:06:33.216 UTC [00000c74] info [native] User name ................... DAETWXSERVER\Administrator

2020-05-26 05:06:33.232 UTC [00000c74] info [native] Bootstrap version ........... 7.2.0.1697

2020-05-26 05:06:33.232 UTC [00000c74] info [native] Log level console ........... info

2020-05-26 05:06:33.232 UTC [00000c74] info [native] Log level file .............. info

2020-05-26 05:06:33.232 UTC [00000c74] info [native] Log file .................... C:/ProgramData/dynatrace/appmon/log/java/dtagent_Tomcat_Monitoring_5652.0.log

2020-05-26 05:06:33.232 UTC [00000c74] info [native] APR version ................. 1.5.2

2020-05-26 05:06:33.232 UTC [00000c74] info [native] cURL version ................ libcurl/7.59.0 OpenSSL/1.0.2o zlib/1.2.8

2020-05-26 05:06:33.232 UTC [00000c74] info [native] OpenSSL version ............. OpenSSL 1.0.2o 27 Mar 2018

2020-05-26 05:06:33.232 UTC [00000c74] info [native] zlib version ................ 1.2.8

2020-05-26 05:06:33.232 UTC [00000c74] info [native] Installer version ........... 0.0.0.20000101-000000

2020-05-26 05:06:33.232 UTC [00000c74] info [native] Environment .................

2020-05-26 05:06:33.279 UTC [00000c74] info [native] Agent library ............... C:/ProgramData/dynatrace/appmon/agent/bin/1.151.349.20181004-133141/windows-x86-64/oneagentjava.dll (md5: 023625af2b34adec951d161618b66176)

2020-05-26 05:06:33.279 UTC [00000c74] info [native] Storage path ................ C:/ProgramData/dynatrace/appmon

2020-05-26 05:06:33.279 UTC [00000c74] info [native] Tenant UUID ................. 1

2020-05-26 05:06:33.279 UTC [00000c74] info [native] Tenant ID ................... 0x06cab5bb

2020-05-26 05:06:33.279 UTC [00000c74] info [native] Agent ID .................... 0x02c8fd8a

2020-05-26 05:06:33.279 UTC [00000c74] info [native] Process group ID ............ 0x6b5cb2026b68ee72

2020-05-26 05:06:33.294 UTC [00000c74] info [native] PGID item ............... EXE_NAME: "java.exe"

2020-05-26 05:06:33.294 UTC [00000c74] info [native] OSI ID ...................... 0xa8ecac5481163506

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Node ID ..................... 0x0452524b31adab2b

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Node ID item ............ EXE_PATH: "C:/Program Files (x86)/Common Files/Oracle/Java/javapath/java.exe"

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Node ID item ............ COMMAND_LINE_ARGS: "java -agentpath:C:\Program\ Files\ (x86)\ThingWorxFoundation\tomcat\apache-tomcat-9.0.30\dtLib\64\dtagent.dll=name=Tomcat_Monitoring,server=10.224.104.198:9988"

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Process group instance ID ... 0xc7e24c1ddbd3705f

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Container ID ................

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Agent host .................. DAETWXSERVER

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Injection mode .............. manually injected

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Standalone .................. yes

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Log file aging .............. enabled

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Agent name .................. Tomcat_Monitoring

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Server/Collector ............ https://10.224.104.198:8043/communication;http://10.224.104.198:8042/communication;https://win2016hse03:8043/communication;http://win2016hse03:8042/communication;https://10.224.104.198:8041/communication;http://10.224.104.198:8040/communication

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Proxy .......................

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Dispatcher buffersize ....... 25165824

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Backup queue size ........... 10485760

2020-05-26 05:06:33.294 UTC [00000c74] info [native] Async message queue size .... 10485760

2020-05-26 05:06:33.310 UTC [00000c74] info [native] Dispatcher taskinterval ..... 10s

2020-05-26 05:06:33.310 UTC [00000c74] info [native] Switching URLs every ........ 30m 0s

2020-05-26 05:06:33.310 UTC [00000c74] info [native] Cached string length Min .... 8

2020-05-26 05:06:33.310 UTC [00000c74] info [native] Max .... 250

2020-05-26 05:06:33.310 UTC [00000c74] info [native] Using ConcurrentCachedStrings for String Caching

2020-05-26 05:06:34.388 UTC [00000c74] info [native] Successfully sent initial cluster time request (23ms)

2020-05-26 05:06:34.388 UTC [00000c74] info [native] Logging in cluster time from now on

2020-05-26 05:06:33.492 UTC [00000c74] info [native] Local time is 2020-05-26 05:06:34.388 UTC, Cluster time is 2020-05-26 05:06:33.479 UTC (+909ms)

2020-05-26 05:06:33.602 UTC [00000c74] info [native] Successfully sent initial setup request (109ms)

2020-05-26 05:06:33.608 UTC [00000c74] info [native] Updating runtime configuration from revision 9197401818712390362 to 1251053441137206812

2020-05-26 05:06:33.614 UTC [00000c74] info [native] Updating UEM configuration from revision 3590303280346006519 to 6232590967096968163

2020-05-26 05:06:33.620 UTC [00000c74] info [native] Updating Mobile RUM configuration from revision 484102475162796184 to 6856040222727005513

2020-05-26 05:06:33.620 UTC [00000c74] info [native] Updating SubPathStorageLocation from revision 0 to 2304296763552805579

2020-05-26 05:06:33.621 UTC [00000c74] info [native] Updating custom ruleset from revision 2903032204406285193 to 6075414633613533835 (3 sensors)

2020-05-26 05:06:33.638 UTC [00000c74] info [native] Dispatcher started - using https://10.224.104.198:8043/communication

2020-05-26 05:06:33.642 UTC [00000c74] info [native] Started HostnameResolver (c-ares): refresh period: 30m 0s

2020-05-26 05:06:33.643 UTC [00000c74] info [native] Path limit (absolute) ....... 10000

2020-05-26 05:06:33.644 UTC [00000c74] info [native] Path dropping ............... true

2020-05-26 05:06:33.645 UTC [00000c74] info [native] Long paths (max/timeout) .... 100 / 1h 30m 0s

2020-05-26 05:06:33.645 UTC [00000c74] info [native] Exceeded long paths timeout . 10m 0s

2020-05-26 05:06:33.646 UTC [00000c74] info [native] Attachment limit (absolute) . 200000

2020-05-26 05:06:33.647 UTC [00000c74] info [native] Node limit (current/absolute) 100000 / 100000

2020-05-26 05:06:33.648 UTC [00000c74] info [native] Node stacklimit (per path) .. 500

2020-05-26 05:06:33.650 UTC [00000c74] info [native] Node aggregation ............ true

2020-05-26 05:06:33.652 UTC [00000c74] info [native] Max aggregations per sequence 128

2020-05-26 05:06:33.653 UTC [00000c74] info [native] Capture CPU times ........... true

2020-05-26 05:06:33.654 UTC [00000c74] info [native] Hostname resolution ......... true

2020-05-26 05:06:33.655 UTC [00000c74] info [native] SQL Normalization (size) .... true / 4096

2020-05-26 05:06:33.656 UTC [00000c74] info [native] Ignoring ports ............. false

2020-05-26 05:06:33.656 UTC [00000c74] info [native] Node processing tasks ....... SQLNormalizing Aggregating LowContributors LinkAggregation AttachmentContent

2020-05-26 05:06:33.657 UTC [00000c74] info [native] Registered AggregationRule JDBC

2020-05-26 05:06:33.658 UTC [00000c74] info [native] Registered AggregationRule CQL

2020-05-26 05:06:33.659 UTC [00000c74] info [native] Registered AggregationRule JAVA-MONGODB

2020-05-26 05:06:33.659 UTC [00000c74] info [native] Registered AggregationRule EXTCALL

2020-05-26 05:06:33.660 UTC [00000c74] info [native] Registered AggregationRule CUSTOMSERVICE

2020-05-26 05:06:33.661 UTC [00000c74] info [native] Registered AggregationRule LOGGING , Ignore first 3 Nodes

2020-05-26 05:06:33.662 UTC [00000c74] info [native] Registered AggregationRule EXCEPTION , Ignore first 3 Nodes

2020-05-26 05:06:33.668 UTC [00000c74] info [native] ProcessType ................. UNKNOWN

2020-05-26 05:06:33.775 UTC [00000c74] info [native] Adding C:/ProgramData/dynatrace/appmon/agent/bin/1.151.349.20181004-133141/any/java/oneagentjava.jar to bootstrap classloader searchpath.

2020-05-26 05:06:33.775 UTC [00000c74] info [native] Adding C:/ProgramData/dynatrace/appmon/agent/bin/1.151.349.20181004-133141/any/java/oneagentjava.rmi.jar to bootstrap classloader searchpath.

2020-05-26 05:06:33.776 UTC [00000c74] info [native] Adding C:/ProgramData/dynatrace/appmon/agent/bin/1.151.349.20181004-133141/any/java/oneagentjava.sql.jar to bootstrap classloader searchpath.

2020-05-26 05:06:33.779 UTC [00000c74] info [native] Enabled instrumentation of Java bytecode (hot sensor placement via retransform)

2020-05-26 05:06:33.779 UTC [00000c74] info [native] Java sampling is using JVMTI.

2020-05-26 05:06:33.783 UTC [00000c74] info [native] Preempting method metadata enabled

2020-05-26 05:06:33.784 UTC [00000c74] info [native] Preempting strings enabled

2020-05-26 05:06:33.785 UTC [00000c74] info [native] AutoSensor: enabled=Y, overheadPercentage=3

2020-05-26 05:06:33.786 UTC [00000c74] info [native] AmbientSampling: enabled=N, thread monitoring=N

2020-05-26 05:06:33.787 UTC [00000c74] info [native] Process ID .................. 5652

2020-05-26 05:06:33.787 UTC [00000c74] info [native] JVM name .................... Java HotSpot(TM) 64-Bit Server VM 25.202-b08

2020-05-26 05:06:33.788 UTC [00000c74] info [native] JVM vendor .................. Oracle Corporation

2020-05-26 05:06:33.791 UTC [00000c74] info [native] JVM info .................... mixed mode, sharing

2020-05-26 05:06:33.791 UTC [00000c74] info [native] Enabled sensors ............. agentcore, cql, ctg, exception, httpclient, imssoapgatewaysensortagging, jboss-esb, jdbc, logger, amqp, amqpreceiveentrypoint, jms, jmsreceiveentrypoint, mqseries, mqseriesreceiveentrypoint, tibco, metrics, mule, netty, mongo, rmi, rmitagging, servlet, threading, uem, webservice

2020-05-26 05:06:33.946 UTC [00000c74] info [java ] [agent ] Java Agent Version .......... 1.151.349.20181004-133141

2020-05-26 05:06:33.946 UTC [00000c74] info [java ] [agent ] Java Runtime Version ........ 1.8.0_202-b08

2020-05-26 05:06:33.992 UTC [00000c74] info [java ] [agent ] Sensor configuration:

2020-05-26 05:06:33.992 UTC [00000c74] info [java ] [agent ] Capturing: exception, logger, threading, servlet, uem, webservice, httpclient, jdbc, rmi, rmitagging, metrics, mongo, netty, ctg, jms, amqp, mqseries, receiveentrypoint_amqp, receiveentrypoint_jms, receiveentrypoint_mqseries, custommethod, tibco, cql, imssoapgatewaytagging, jbossesb, mule

2020-05-26 05:06:33.993 UTC [00000c74] info [java ] [agent ] Entry points: servlet, webservice, netty, custommethod

2020-05-26 05:06:33.999 UTC [00000c74] info [java ] [agent ] Updating runtime configuration for 41 sensors

2020-05-26 05:06:34.000 UTC [00000c74] info [java ] [agent ] ClassLoader.dynatrace_initialized set true

2020-05-26 05:06:34.009 UTC [00000c74] info [java ] [agent ] Detected Java version : Java Oracle HotSpot 1.8.0_202

2020-05-26 05:06:34.014 UTC [00000c74] info [java ] [uem ] new JS agent versions retrieved: 7000200001697. Clearing cache.

2020-05-26 05:06:34.071 UTC [00000c74] info [native] Initiating shutdown sequence for Java agent

2020-05-26 05:06:34.098 UTC [000019d8] info [native] Trying to flush async messages

2020-05-26 05:06:34.160 UTC [00000c74] info [native] Successfully sent shutdown message (39ms)

2020-05-26 05:06:34.160 UTC [00000c74] info [native] Trying to flush async messages

2020-05-26 05:06:34.162 UTC [00000c74] info [native] Shutdown successful processType(DEFAULT)



the agent was shutdown and I don't know why. It seems there is an "Cannot get processGroupId" error, I seriously don't know what does it mean.

1 REPLY 1

Joe_Hoffman
Dynatrace Leader
Dynatrace Leader

The -agentpath parameter needs to be added to your existing java command line that starts Tomcat. Typing 'java -agentpath..." by itself wont do anything other than start and immediately stop the agent.

Here's some doc that might help: https://www.dynatrace.com/support/doc/appmon/installation/application-integration/apache-tomcat/?_ga...