AppD Archive

Issue in Installing the Application Server Agent.

CommunityUser
Splunk Employee
Splunk Employee

Hello All,

I am facing an issue in Installing the Application Server Agent.

Can any some one let me know, how to add the javaagent.jar to my startup script.

I am using tomcat 6 on WIN7.

I have added the below line in CATALINA.BAT(line 160 - 161), as mentioned in the video tuturial.

if [ "$1" = "start" -o "$1" = "run" ]; goto
export JAVA_OPTS="$JAVA_OPTS -javaagent:C:\ANEES\Tomcat\webapps\Bookstore\tier1\appagent\javaagent.jar"

When I startup my server and logon into appdynamic lightviewer, it displays AGENT NOT INSTALLED.

I have attached my CATALINA.BAT.

Please let me know, where I am missing.

0 Karma
2 Solutions

Arun_Dasetty
Super Champion

Hi,

Thanks for the tomcat startup script catalina.bat, we understood that you are using window 7 OS and tomcat server.

We observe that AD lite agent entry you have used is not correct and also export command is for linux hence the AD lite agent is not starting, Please find the correct syntax for configuring lite agent on tomcat:

Please update catalina.bat as follows before comment string "rem ----- Execute The Requested Command -":

Syntax for windows:

if "%1"=="stop" goto skip_agent
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"Drive:\agent_install_dir\javaagent.jar"
:skip_agent

Example:
==============================  
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"C:\ANEES\Tomcat\webapps\Bookstore\tier1\appagent\javaagent.jar"

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

====================================================
refer doc for more info: http://litedocs.appdynamics.com/display/ADLite/Apache+Tomcat

In the tomcat console you should see agent started successfully as follows:
===========

Running obfuscated agent
Registered app server agent with Node ID[1] Component ID[1] Application ID [1]
Started AppDynamics Java Agent Successfully.
Mar 29, 2013 1:16:25 PM org.apache.catalina.core.AprLifecycleListener init

======================================

Once agent registered generate load on tomcat ,make few  business transactions, refresh the liteview UI and check "No agents connected " is not showing now.

Please let us know how it goes

Thanks,

Arun

View solution in original post

0 Karma

Arun_Dasetty
Super Champion

Hi,

Glad to hear that you are able to monitor JVM Stats and business transactions details.


We had tried HSQL db in local annd confirm that HSQL DB  (In-Process and Server Mode) is not supported by agent and will not be discovered as an JDBC backend in Lite viewer UI.

In reference to your query to monitor supported databases you do not need to install any special agent. If it is supported database driver it will discovered as per JDBC exit call.

Please refer doc for the supported JDBC backends/drivers : http://litedocs.appdynamics.com/display/ADLite/Supported+Applications+and+Frameworks+for+Java#Suppor...

Thanks,

Arun

View solution in original post

0 Karma

Arun_Dasetty
Super Champion

Hi,

Thanks for the tomcat startup script catalina.bat, we understood that you are using window 7 OS and tomcat server.

We observe that AD lite agent entry you have used is not correct and also export command is for linux hence the AD lite agent is not starting, Please find the correct syntax for configuring lite agent on tomcat:

Please update catalina.bat as follows before comment string "rem ----- Execute The Requested Command -":

Syntax for windows:

if "%1"=="stop" goto skip_agent
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"Drive:\agent_install_dir\javaagent.jar"
:skip_agent

Example:
==============================  
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"C:\ANEES\Tomcat\webapps\Bookstore\tier1\appagent\javaagent.jar"

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

====================================================
refer doc for more info: http://litedocs.appdynamics.com/display/ADLite/Apache+Tomcat

In the tomcat console you should see agent started successfully as follows:
===========

Running obfuscated agent
Registered app server agent with Node ID[1] Component ID[1] Application ID [1]
Started AppDynamics Java Agent Successfully.
Mar 29, 2013 1:16:25 PM org.apache.catalina.core.AprLifecycleListener init

======================================

Once agent registered generate load on tomcat ,make few  business transactions, refresh the liteview UI and check "No agents connected " is not showing now.

Please let us know how it goes

Thanks,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thank you, Kumar. It is working fine now.

I am able to see the my JVM stats and as well as the business transactions details.

I have hsql as my db. 

Is there any special agent, which I need to install to monitor the same.

thank you once again.

- Anees

0 Karma

Arun_Dasetty
Super Champion

Hi,

Glad to hear that you are able to monitor JVM Stats and business transactions details.


We had tried HSQL db in local annd confirm that HSQL DB  (In-Process and Server Mode) is not supported by agent and will not be discovered as an JDBC backend in Lite viewer UI.

In reference to your query to monitor supported databases you do not need to install any special agent. If it is supported database driver it will discovered as per JDBC exit call.

Please refer doc for the supported JDBC backends/drivers : http://litedocs.appdynamics.com/display/ADLite/Supported+Applications+and+Frameworks+for+Java#Suppor...

Thanks,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Arun,

THis is regarding the email aler confgiguration. i have selected "MAIL SERVER CONFIGURATION" for gmail and also provided "AUTHENTICATION CREDENTIALS".

I am trying to send the test mail, but I am receiving any. Am I missing something here.

Please check the snapshot.

Thanks

Anees.

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...