AppD Archive

how to add java agent in my jvm.?

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I have a java  rest full application and i want to manitor memory leaks and service transactions with AppDynamics.Please give me any suggestion how to add java agent in jvm  and how to add this java application to appdynamic controler i read documention but i am not clear.

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

0 Karma

Arun_Dasetty
Super Champion

Hi,

We understood that you want to monitor agent on standaline application, if this is the case, please let us know if that following information helps:

- unzip AppServerAgent.zip 

- provide executable permissions to AppServerAgent directory and it sub folders f

- provide controller UI host name and port and application-name, tier-name and node-name details in <appserveragent_dir>/conf/controller-info.xml file

- start the jvm as follows:

cmd> java -javaagent:/mnt/AppServerAgent/javaagent.jar com.rest.app.TestApp 20

Where TestApp is the java class that initiates the standline jvm and that you would like to monitor, now define custom pojo rule if load discovere automatically , refer doc https://docs.appdynamics.com/display/PRO39/POJO+Entry+Points

if you are referring to standalone jar application, start jvm as follows:

shell> java -javaagent:"d:/AppServerAgent/javaagent.jar" -jar restApp.jar 40

Refer doc links: https://docs.appdynamics.com/display/PRO39/Install+the+Java+Agent

https://docs.appdynamics.com/display/PRO39/Quick+Install+for+the+Java+Agent

refer server specific agent configuration steps at doc link if you are monitoring an application server listed : https://docs.appdynamics.com/display/PRO39/Supported+Environments+and+Versions+for+Java#SupportedEnv...

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks for your reply. My application is not a stndalone application,its complete restful web application. Different services on run different systems now i want to monitor this application. please guide me. 

Tags (1)
0 Karma

Arun_Dasetty
Super Champion

Hi,

Can you please provide the details of the server(tomcat , weblogic etc) under which the restful web application have been deployed? We will point you to doc on how to configure agent based on your response

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I am using tomcat application server and i added javaagent in tomcat catalina.bat file its sucessfully deployed but its not any result in my Appdynamic contoller.

0 Karma

Arun_Dasetty
Super Champion

Hi ,

Please send the agent logs collected from UI when load is there on BTs on rest web app and also provide screenshot from controller UI with agent reporting in UI fine and no load shows up, collect logs once status changes in logs colleciton changes to "successful" and attach to this post

image.png

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I have downloaded logs zip file. what are the logs files are required to send or complete logs files zip please confirm me.

0 Karma

Arun_Dasetty
Super Champion

Hi,

We need all logs and also the provide the screenshots from UI and the class/method details on which load is made.

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...