AppD Archive

Configuring application with appdynamics

CommunityUser
Splunk Employee
Splunk Employee

hello team,

I am new to APPDynamics and i am using to check the server reponse and other activities.... i downloaded the java agent and did changes as mentioned in catalina.bat file.

What changes needs to be done exactly in controller-info.xml file. I read that if you are giving autonaming as "TRUE", i need not change anything for the appliation name,

I am not sure how to proceed further for the controller download and setup. then how to configure the application which needs to be monitored.....

Could you please help me with these...

0 Karma

Arun_Dasetty
Super Champion

Hi , 

We request you to skip to add below entry for now in <agent_dir>/conf/controller-info.xml as this will generate node name which you might not want for now:

<auto-naming>true</auto-naming>

We request you to provide the details in following xml element in controller-info.xml file and save the changes and restart jvm with -javaagent entry point and check BT detection once load made under corresponding application name in controller UI , change values for contoller host, port and app, tier and node names as per your requirement:

<controller-host>yourControllerHostIPValue</controller-host>
<controller-port>8090</controller-port>
<controller-ssl-enabled>false</controller-ssl-enabled>
<application-name>bookDemo1</application-name>
<tier-name>eCommerce</tier-name>
<node-name>ecNode1</node-name>

And if you want to monitor another jvm under same tier and application in UI , we request you to point to another agent install directory and provide <node- name> value different say:
<node-name>ecNode2</node-name>

Regarding controller setup , refer doc links:

https://docs.appdynamics.com/display/PRO40/Install+the+Controller

and we understood you have referred doc https://docs.appdynamics.com/display/PRO40/Install+the+Java+Agent and https://docs.appdynamics.com/display/PRO40/Apache+Tomcat+Startup+Settings for agent config. Hope that information helps.

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
Hi,

Thanks for the response.... I am using Appdynamics for monitoring the
server response time of the running application. i am not able to download
controller.

Please help me out with this!!!

0 Karma

Arun_Dasetty
Super Champion

Hi,

You can refer following docs for steps to install controller and link to download controller artifact can be found at http://download.appdynamics.com/

https://docs.appdynamics.com/display/PRO40/Install+the+Controller , Hope that information helps.

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

Thanks Again....

There are two options available to monitor the application. One is to create application and other is to import application.

Since i already have my application up and running. I would like to import the same and monitor the requests and accesses made in that application.

When i click on Import Application, its asking for a XML file.  Is it that the controller-info.xml file, which i have to import or whch one!!

Also please clarify on the below things, i have highlighted my understanding, correct me if something is wrong.

<controller-host>yourControllerHostIPValue</controller-host>---- is the system IP where i have donwloaded the APPdynamics
<controller-port>8090</controller-port>
<controller-ssl-enabled>false</controller-ssl-enabled>
<application-name>bookDemo1</application-name>--- what should i provide here... any naming to be followed or is this the name for our conveneince
<tier-name>eCommerce</tier-name>--- what is the tier name
<node-name>ecNode1</node-name>-what is the node name

Please help me out !!!

Thanks in Advance!!

0 Karma

Arun_Dasetty
Super Champion

Hi,

Please find our response to your queries inline:

>>> When i click on Import Application, its asking for a XML file.  Is it that the controller-info.xml file, which i have to import or whch one!! ?

Answer: No export/import application option in UI is used to export and import only meta data that contains details of BT names discovered , tier and custom rules etc in exported application xml 

controller-info.xml file is not related to export and import feature, i would request you to go through the docs once:
https://docs.appdynamics.com/display/PRO40/Export+and+Import+Business+Application+Configurations

https://docs.appdynamics.com/display/PRO40/Install+the+Java+Agent

>>>> Also please clarify on the below things, i have highlighted my understanding, correct me if something is wrong.

<controller-host>yourControllerHostIPValue</controller-host>---- is the system IP where i have donwloaded the APPdynamics

Answer: Above element should point to ip/host name where controller.exe/sh is installed , say you have installed controller-4.0.exe at host INSChndrK007.com Or ip 192.678.1.80 and you should provide value as below:


<application-name>bookDemo1</application-name>--- what should i provide here... any naming to be followed or is this the name for our conveneince

Any valid text string name that would like to associated different agents/jvm under one application in controller UI, say eCommerceApp and the same applies to tier and node xml elements, it is just valid string that you want to name your jvm with agent to be associated with particular name in controller UI under application name provided above in <application-name> element


<tier-name>eCommerce</tier-name>--- what is the tier name
<node-name>ecNode1</node-name>-what is the node name

Let us know if that answers your queries.

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

I am using Saas, For this Controller installation is not mandatory... When i restart the JVM, i am getting the following error in the log file.

[Thread-0] 02 Feb 2015 16:09:02,492 ERROR JavaAgent - *******************
[Thread-0] 02 Feb 2015 16:09:02,492 ERROR JavaAgent - * Unable to determine Tier Name or Node Name. Java Agent disabled
[Thread-0] 02 Feb 2015 16:09:02,492 ERROR JavaAgent - *******************

0 Karma

Arun_Dasetty
Super Champion

Hi,

Regardless whether it is saas / OnPremise, you should provide values in <agent_dir>/conf/controller-info.xml file for tier and node-name xml elements and need to restart JVM, Hope that clarifies.

Please do provide details as suggested and restart jvm and that should help agent to register at controller UI

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
I have changed the controller - info. Xml file already as suggested.
I have mentioned my application name and then tier name n node name too
and I restarted jvm after changing and I got this error in the logs.

0 Karma

Arun_Dasetty
Super Champion

Hi,

Somehow i do not locate error you referred in your update, please attach logs and screenshot depicting the issue to assist you better.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

Please find the logs,controller-info.xml and also catalina.bat attached with post.

Please guide me in proceeding further

log file from logs


[Thread-0] 02 Feb 2015 16:09:02,492 ERROR JavaAgent - *******************
[Thread-0] 02 Feb 2015 16:09:02,492 ERROR JavaAgent - *  Unable to determine Tier Name or Node Name. Java Agent disabled
[Thread-0] 02 Feb 2015 16:09:02,492 ERROR JavaAgent - *******************
controller-info.xml

<?xml version="1.0" encoding="UTF-8"?>
<controller-info>

    <!-- This is the host name or the IP address of the AppDynamics Controller e.g. 192.168.1.22 or myhost or myhost.abc.com
    This is the same host that you use to access the AppDynamics browser based User interface.
    This can be overridden with the system property '-Dappdynamics.controller.hostName' -->
    <!--controller-host>mycompany202.saas.appdynamics.com</controller-host-->

    <controller-host>169.172.141.137</controller-host>

    <!-- This is the http(s) port of the AppDynamics Controller , If 'controller-ssl-enabled' below is set to true, you must
    specify the HTTPS port of the Controller, otherwise specify the HTTP port. Controller gets installed at port 8090 by default.
    If you set 'controller-ssl-enabled' to true, the Controller installs at port 8181.
    If you are using a saas controller, the ssl port is 443
    This is the same port that you use to access the AppDynamics browser based User interface.
    This can be overridden with the system property '-Dappdynamics.controller.port' -->
    <controller-port>8090</controller-port>

    <!-- This specifies if the AppDynamics agent should use SSL(HTTPS) to connect to the Controller. If you set this to true,
    the controller port property above should be set to the HTTPs port of the Controller.
    This can be overridden with the system property '-Dappdynamics.controller.ssl.enabled' -->
    <controller-ssl-enabled>false</controller-ssl-enabled>
    
    <!-- Specify the logical business application name that this jvm node belongs to.
    Note that this is not the deployment name(ear/war/jar) on the application server.
    examples for a business application name can be 'ACME Portal' if you are monitoring the portal application or 'ACME ECommerce' etc.
    If a business application of this name does not exist it will be created automatically.
    This can be overridden with the system property '-Dappdynamics.agent.applicationName' -->
    <application-name>MetricStream</application-name>

    <!-- Specify the logical business tier this node belongs to.
    examples for a business tier can be 'ACME Frontend' or 'ACME Backend Service' etc. If your JVM / AppServer start up script already
     has a system property that can be used as the tier name e.g.-Dserver.tier then you may refer
    to the same as ${server.tier} This can be overridden with the system property '-Dappdynamics.agent.tierName'
    You may also use expressions as ${server.tier}_${some.property}.MyTier to define the tier name.
    -->
    <tier-name>MetricStreamCB</tier-name>

    <!-- Specify a unique name for this jvm node. The name must be unique within the business application. e.g. weblogicinstance23 or
    hweb24. If your JVM / AppServer start up script already has a system property that can be used as a node name, e.g. -Dserver.name
    then you may refer to the same as ${server.name}. The value for server.name will be used as appdynamics node name
    The value specified in this xml can be overridden with the system property '-Dappdynamics.agent.nodeName'.
    You may also use expressions as ${server.name}_${host.name}.MyNode to define the node name.
    -->
    <node-name>MetricStreamCB</node-name>
    
    <!-- Refers to the runtime directory for all runtime files (logs, transaction configuration) for agent nodes using this agent
    installation. The property is optional, by default set to agent-installation-directory . If specified All Agent logs are written
     to agent-runtime-dir/logs/node-name and transaction configuration to agent-runtime-dir/conf/node-name directory
    This can be overridden with the system property '-Dappdynamics.agent.runtime.dir' -->
    <agent-runtime-dir></agent-runtime-dir>

    <!-- Set this flag to 'true' to enable features required for AppDynamics Orchestration.
    Currently this flag enables the agent to resolve the AppDynamics Controller host and port
    when the host machine where this agent resides is created through AppDynamics Orchestration.
    If the host machine where this agent resides is NOT created through Orchestration then LEAVE
    this flag set to 'false'. -->
    <enable-orchestration>false</enable-orchestration>

    <!-- If the AppDynamics Controller is running in multi-tenant mode or you are using the AppDynamics SaaS Controller
    you must specify the account name and account access key for this agent to authenticate with the controller.
    If you are running in single-tenant mode (the default) there is no need to configure these values. -->
    <account-name>mycompany202</account-name>
    <account-access-key>wwdpte04kc7v</account-access-key>

    <!-- Change to 'true' only under special circumstances where this agent has been moved to a new application and/or tier
    from the UI but you want to override that move by specifying a new application name and/or tier name in the agent configuration. -->
    <force-agent-registration>false</force-agent-registration>
    

<!--auto-naming>true</auto-naming></controller-info-->
catalina.bat

@echo off
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements.  See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem the License.  You may obtain a copy of the License at
rem
rem     http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.

if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Start/Stop Script for the CATALINA Server
rem
rem Environment Variable Prequisites
rem
rem   CATALINA_HOME   May point at your Catalina "build" directory.
rem
rem   CATALINA_BASE   (Optional) Base directory for resolving dynamic portions
rem                   of a Catalina installation.  If not present, resolves to
rem                   the same directory that CATALINA_HOME points to.
rem
rem   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
rem                   or "run" command is executed.
rem
rem   CATALINA_TMPDIR (Optional) Directory path location of temporary directory
rem                   the JVM should use (java.io.tmpdir).  Defaults to
rem                   %CATALINA_BASE%\temp.
rem
rem   JAVA_HOME       Must point at your Java Development Kit installation.
rem                   Required to run the with the "debug" argument.
rem
rem   JRE_HOME        Must point at your Java Runtime installation.
rem                   Defaults to JAVA_HOME if empty.
rem
rem   JAVA_OPTS       (Optional) Java runtime options used when the "start",
rem                   "stop", or "run" command is executed.
rem
rem   JSSE_HOME       (Optional) May point at your Java Secure Sockets Extension
rem                   (JSSE) installation, whose JAR files will be added to the
rem                   system class path used to start Tomcat.
rem
rem   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
rem                   command is executed. The default is "dt_shmem".
rem
rem   JPDA_ADDRESS    (Optional) Java runtime options used when the "jpda start"
rem                   command is executed. The default is "jdbconn".
rem
rem   JPDA_SUSPEND    (Optional) Java runtime options used when the "jpda start"
rem                   command is executed. Specifies whether JVM should suspend
rem                   execution immediately after startup. Default is "n".
rem
rem   JPDA_OPTS       (Optional) Java runtime options used when the "jpda start"
rem                   command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,
rem                   and JPDA_SUSPEND are ignored. Thus, all required jpda
rem                   options MUST be specified. The default is:
rem
rem                   -agentlib:jdwp=transport=%JPDA_TRANSPORT%,
rem                       address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
rem
rem   LOGGING_CONFIG  (Optional) Override Tomcat's logging config file
rem                   Example (all one line)
rem                   set LOGGING_CONFIG="-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties"
rem
rem   LOGGING_MANAGER (Optional) Override Tomcat's logging manager 
rem                   Example (all one line)
rem                   set LOGGING_CONFIG="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
rem
rem
rem
rem $Id: catalina.bat 750920 2009-03-06 14:43:19Z markt $
rem ---------------------------------------------------------------------------

set JRE_HOME=C:/MetricStream/SYSTEMi/Jre

rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%CURRENT_DIR%
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
cd ..
set CATALINA_HOME=%cd%
cd %CURRENT_DIR%
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome

rem Get standard environment variables
if "%CATALINA_BASE%" == "" goto gotSetenvHome
if exist "%CATALINA_BASE%\bin\setenv.bat" call "%CATALINA_BASE%\bin\setenv.bat"
goto gotSetenvBase
:gotSetenvHome
if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
:gotSetenvBase

rem Get standard Java environment variables
if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
echo This file is needed to run this program
goto end
:okSetclasspath
set BASEDIR=%CATALINA_HOME%
call "%CATALINA_HOME%\bin\setclasspath.bat" %1
if errorlevel 1 goto end

rem Add on extra jar files to CLASSPATH
if "%JSSE_HOME%" == "" goto noJsse
set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
:noJsse
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar

if not "%CATALINA_BASE%" == "" goto gotBase
set CATALINA_BASE=%CATALINA_HOME%
:gotBase

if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
set CATALINA_TMPDIR=%CATALINA_BASE%\temp
:gotTmpdir

if not "%LOGGING_CONFIG%" == "" goto noJuliConfig
set LOGGING_CONFIG=-Dnop
if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuliConfig
set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
:noJuliConfig
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%

if not "%LOGGING_MANAGER%" == "" goto noJuliManager
set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
:noJuliManager
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%

set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:"C:\AppServerAgent-ibm-4.0.0.0\javaagent.jar"			

rem ----- Execute The Requested Command ---------------------------------------

echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   %CATALINA_HOME%
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
if ""%1"" == ""debug"" goto use_jdk
echo Using JRE_HOME:        %JRE_HOME%
goto java_dir_displayed
:use_jdk
echo Using JAVA_HOME:       %JAVA_HOME%
:java_dir_displayed

set _EXECJAVA=%_RUNJAVA%
set MAINCLASS=org.apache.catalina.startup.Bootstrap
set ACTION=start
set SECURITY_POLICY_FILE=
set DEBUG_OPTS=
set JPDA=

if not ""%1"" == ""jpda"" goto noJpda
set JPDA=jpda
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
set JPDA_TRANSPORT=dt_socket
:gotJpdaTransport
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
set JPDA_ADDRESS=8000
:gotJpdaAddress
if not "%JPDA_SUSPEND%" == "" goto gotJpdaSuspend
set JPDA_SUSPEND=n
:gotJpdaSuspend
if not "%JPDA_OPTS%" == "" goto gotJpdaOpts
set JPDA_OPTS=-agentlib:jdwp=transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
:gotJpdaOpts
shift
:noJpda

if ""%1"" == ""debug"" goto doDebug
if ""%1"" == ""run"" goto doRun
if ""%1"" == ""start"" goto doStart
if ""%1"" == ""stop"" goto doStop
if ""%1"" == ""version"" goto doVersion

echo Usage:  catalina ( commands ... )
echo commands:
echo   debug             Start Catalina in a debugger
echo   debug -security   Debug Catalina with a security manager
echo   jpda start        Start Catalina under JPDA debugger
echo   run               Start Catalina in the current window
echo   run -security     Start in the current window with security manager
echo   start             Start Catalina in a separate window
echo   start -security   Start in a separate window with security manager
echo   stop              Stop Catalina
echo   version           What version of tomcat are you running?
goto end

:doDebug
shift
set _EXECJAVA=%_RUNJDB%
set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\java"
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
goto execCmd

:doRun
shift
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
goto execCmd

:doStart
shift
if not "%OS%" == "Windows_NT" goto noTitle
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
goto gotTitle
:noTitle
set _EXECJAVA=start %_RUNJAVA%
:gotTitle
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
goto execCmd

:doStop
shift
set ACTION=stop
set CATALINA_OPTS=
goto execCmd

:doVersion
%_EXECJAVA% -classpath "%CATALINA_HOME%\lib\catalina.jar" org.apache.catalina.util.ServerInfo
goto end


:execCmd
rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs

rem Execute Java with the applicable properties
if not "%JPDA%" == "" goto doJpda
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doSecurity
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doJpda
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %JPDA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doSecurityJpda
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %JPDA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end

:end

REgards,

Chandrakala

0 Karma

Arun_Dasetty
Super Champion

Hi,

We assume the you have provided controller-info.xml in which node name "MetricStreamCB" is updated from path C:\AppServerAgent-ibm-4.0.0.0\ver4.0.0.0\conf\controller-info.xml , let us know if any disconnect, if this is case, please change the -javaagent entry line below as suggested :

Before update:

set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:"C:\AppServerAgent-ibm-4.0.0.0\javaagent.jar"        

After update:
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"C:\AppServerAgent-ibm-4.0.0.0\javaagent.jar"           

And now make sure you have not set CATALINA_OPTS environment vairable as system level, if set unset for time being and try to start tomcat using script "cataliana.bat run" from <tomcat_dir>/bin path and see how it goes after jvm restart

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

I have done the changes as suggested by you. but still i am getting the same error. Could you please help me in resolving he same

Attached are the log files for your reference!!!!

0 Karma

Arun_Dasetty
Super Champion

Hi,

We still see the change suggested is not updated in catalina.bat file, please update the entry as below:

set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:"C:\AppServerAgent-ibm-4.0.0.0\javaagent.jar"

set JAVA_OPTS=%JAVA_OPTS% -javaagent:"C:\AppServerAgent-ibm-4.0.0.0\javaagent.jar"

and also send the out put of "catalina.bat run" command if issue persits after saving changes to catalina.bat file

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

I have done the changes as suggested, but still i am receving the same error. I have attached catalina.bat run file and the catalina.bat file FYR.

Please help me to resolve this

0 Karma

Arun_Dasetty
Super Champion

Hi,

In my earlier update i meant to remove the below line, we see you have not remove the below line , please remove the following line and see how it goes after restart:

set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:"C:\AppServerAgent-ibm-4.0.0.0\javaagent.jar"

And leave the following line as it is in catalina.bat file:

set JAVA_OPTS=%JAVA_OPTS% -javaagent:"C:\AppServerAgent-ibm-4.0.0.0\javaagent.jar"

If issue persits, please send the info.log and run.log as i could not see agent related stacktrace in tomcat log provided earlier

cmd> type C:\AppServerAgent-ibm-4.0.0.0\ver4.0.0.0\conf\controller-info.xml > info.log
cmd> catalina.bat run > run.log

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi ARun,

I have done the suggested changes and i am herewith attaching the run.log and info.log as requested. 

Please help me to proceed further.

Regards,

Chandrakala

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

In the controller-info.xml, the controller tag was commented, hence i was receving the error, now i have fixed the same and the java agent is started successfully.

Could you please tell how should i import my application on to it

Regards,'

Chandrakala

0 Karma

Arun_Dasetty
Super Champion

Hi Chandrakala,

If you see the attached controller-info.xml and my comments that is what i am trying to say actually the xml tag not ended, did you mean you did different changes than suggested, would like to know what you did different than we suggested to fix the agent registration issue so that it will help for record for reference, 

If you refer the change in file provided this is what we changed:

<!--auto-naming>true</auto-naming>-->
</controller-info>

which is earlier like below:

<!--auto-naming>true</auto-naming></controller-info>-->


Regarding the latest query , refer doc https://docs.appdynamics.com/display/PRO40/Export+and+Import+Business+Application+Configurations Hope this is what you are looking for 

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
Hi Arun,

Thanks for all the help. Now java agent is started successfully. But I am
not getting any output on the GUI.

Is their anything else I need to do to get the details in the controller.

Actually I have installed the agent in my local machine. So I have given
the ip address of machine only in controller Xml file also.

Regards,
Chandrakala

0 Karma

Arun_Dasetty
Super Champion

Hi Chandrakala,

You should point to your saas host name, i confirm it should not be your agent machine ip, please find the attached xml file and see how it goes after restart, xml elements updated:

<controller-host>mycompany202.saas.appdynamics.com</controller-host>
<controller-ssl-enabled>true</controller-ssl-enabled>

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...