Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
06-20-2017 08:06 AM
I went through the setup instructions for Tomcat and added the relevant lines to the setenv.sh script, and (hoorah!) I got the following when restarting Tomcat;
Install Directory resolved to[/home/ubuntu/appagent] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver is running [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null] log4j:WARN No appenders could be found for logger (com.singularity.SelfServiceNameResolver). log4j:WARN Please initialize the log4j system properly. [Thread-0] Tue Jun 20 15:01:43 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver finished running [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Agent runtime directory set to [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Agent node directory set to [qa-003] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analy tics] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Running IBM Java Agent [No] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - #################################################################################### [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analy tics] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - All agent classes have been pre-loaded [Thread-0] Tue Jun 20 15:01:43 UTC 2017[DEBUG]: JavaAgent - Using Java Version [JAVA_18] for AppDynamics Java Agent Running obfuscated agent Started AppDynamics Java Agent Successfully. [Thread-0] Tue Jun 20 15:01:47 UTC 2017[INFO]: JavaAgent - Started AppDynamics Java Agent Successfully.
but "Waiting for Connection..." never actually ends, and I can't see anything else related in the Tomcat logs. Help?
06-21-2017 09:46 AM
Hi
We hope you have followed the suggestions as per docs link here
https://docs.appdynamics.com/display/PRO43/Apache+Tomcat+Startup+Settings
If yes, and still you face the problem, please send us details as listed here
1)Please let us know the exact problem you experience(Is application not starting or Is agent not reporting to controller or any other)
2)tomcat startup scripts wherever you have added java agent settings
3) Tomcat version
4) Zipped agent logs located under <agent-install-dir>/logs folder
Thanks
Rajesh
06-22-2017 03:25 AM
Hi Matt,
did you got chance to follow our agent SME suggestions, if yes, please share logs if this is still an issue?
06-22-2017 04:47 AM
Instructions followed, you'll be glad to hear.
1) the agent is reporting to the controller - the getting started stays at "Waiting for connection", and doesn't go any further.
2) CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/ubuntu/appagent/javaagent.jar"
3) Tomcat version is
8.0.32-1ubuntu1.4
4) there is no logs directory, so no logs to send - the only thing I can send is the catalina.out containing the app agent information, which I included in the original, but here it is again (there is nothing else in the logs associated):
Full Agent Registration Info Resolver using selfService [true] Full Agent Registration Info Resolver using selfService [true] Full Agent Registration Info Resolver using application name [null] Full Agent Registration Info Resolver using tier name [unknown] Full Agent Registration Info Resolver using node name [null] Install Directory resolved to[/home/ubuntu/appagent] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver is running [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null] log4j:WARN No appenders could be found for logger (com.singularity.SelfServiceNameResolver). log4j:WARN Please initialize the log4j system properly. [Thread-0] Thu Jun 22 11:00:57 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver finished running [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Agent runtime directory set to [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Agent node directory set to [qa-003] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analytics] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Running IBM Java Agent [No] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - #################################################################################### [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analytics] [Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - All agent classes have been pre-loaded [Thread-0] Thu Jun 22 11:00:57 UTC 2017[DEBUG]: JavaAgent - Using Java Version [JAVA_18] for AppDynamics Java Agent Running obfuscated agent Started AppDynamics Java Agent Successfully. [Thread-0] Thu Jun 22 11:01:01 UTC 2017[INFO]: JavaAgent - Started AppDynamics Java Agent Successfully.
06-22-2017 04:51 AM
Hi
Please pass application, tier and node name as it looks like they were not configured. Please pass them in controller-info.xml file located under <agent-install-dir>/conf folder
Log Snippet for reference
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null] l
Please refer
https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent
https://docs.appdynamics.com/display/PRO43/Java+Agent+Configuration+Properties
Thanks
Rajesh
06-22-2017 05:23 AM
Thanks for the reply! Can I suggest you add this to the getting started wizard as a tip? It might save you some extra questions in the forums :) I'll try it and get back to you.
@Rajesh.Putta wrote:
Hi
Please pass application, tier and node name as it looks like they were not configured. Please pass them in controller-info.xml file located under <agent-install-dir>/conf folder
Log Snippet for reference
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null] lPlease refer
https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent
https://docs.appdynamics.com/display/PRO43/Java+Agent+Configuration+Properties
Thanks
Rajesh
@Rajesh.Putta wrote:
Hi
Please pass application, tier and node name as it looks like they were not configured. Please pass them in controller-info.xml file located under <agent-install-dir>/conf folder
Log Snippet for reference
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null] [Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null] lPlease refer
https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent
https://docs.appdynamics.com/display/PRO43/Java+Agent+Configuration+Properties
Thanks
Rajesh
06-22-2017 06:08 AM
Hi Matt,
Thanks for the suggestions. We will refer your suggestions to docs get them update. Also we will wait for you to get back to us with your observations post those suggested changes.
Thanks
Rajesh
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form