AppD Archive

Java AppDynamicLite Viewer doesn't connect the agent .....why?

CommunityUser
Splunk Employee
Splunk Employee

I'm trying to use the AppDynamics Lite server on linux12.4 and with Apache tomcat7 server and JVM HotSpot(TM) 1.7.x

I did all the instructions required to integerate the AppDynamics Lite with Tomcat7 and JVM ,but unfortunatly useless.

The AppDynamic viewer doesn't connect with the agent and I don't  know why?

I added the two attachments below to expose what appears in the viewer and the file name "catalina.sh" startup script which contains the specified where javaagent.jar exist.

thanks in advance.

Tags (4)
0 Karma
2 Solutions

Arun_Dasetty
Super Champion

Hi,

Let us know if we can have quick GotoMeeting screenshare session now Or let us know couple of timeslots and lsit the time and timezone you are in so that we will send the meeting details accordingly?

We suspect from the logs that tomcat is either running as a different user and lite agent on different path , can you check if moving liteviewer to location "/usr/share/tomcat7/AppDynamicsLite/" and restarting liteviwer and then starting tomcat makes any different here while you confirm your availability for meeting details, we assume that both the tomcat and liteagent are in same machines

also can you confirm whether you are starting tomcat as follows:
shell> catalina.sh run

Regards,

Arun

View solution in original post

CommunityUser
Splunk Employee
Splunk Employee

Actually, It works NOW! . Thanks Alot for your assistant .. it was a matter of Apache tomcat7.. it was not running properly as Tomcat7 and liteDynamics was not on the same user.  

View solution in original post

0 Karma

Arun_Dasetty
Super Champion

Hi,

We understood that both viewer (http://localhost:8990) and tomcat server are in same machine, let us know if any disconnect.

If this is the case, Can you please try the following:

step1: stop all java process

step2: start liteviwer java process

step3: start tomcat with lite agent (check whether you see logs under ..\AppServerAgentLite\appagent\logs path)

step4: do browser refresh in liteviewer and re-login the viewer UI and see if the "no agents connected" message still exists?

If the issue still persists, Can you send the catalina.sh and logs under ..\AppServerAgentLite\appagent\logs path and also liteviwer.log under liteviwer install directory to assist you better?

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks alot for the prompt reply, I've followed your instructions and the "No agent connected!" label still exist.

I uploaded the catalina.sh file and liteviewer.log file but I found no log files in the path ../javaagent/logs 

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Does agent has write permission to the the logs directory ? The user who is running the tomcat should have write permissions.

To confirm that you can go into 

/usr/share/tomcat7/AppDynamicsLite/appagent/ this directory and go to logs directory and try creating file , writing into it and delete it.
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

yes there was no permission for the user to do operations on the javaagent directory, but now I changed the owner to the running user.

then, I restarted the tomcat7 server again ,and restarted the liteviewer again. but still the issue exist "No Agent connected!" and still no log file for the agent.

the file below is the liteviewer log now.

0 Karma

Arun_Dasetty
Super Champion

Hi,

Let us know if we can have quick GotoMeeting screenshare session now Or let us know couple of timeslots and lsit the time and timezone you are in so that we will send the meeting details accordingly?

We suspect from the logs that tomcat is either running as a different user and lite agent on different path , can you check if moving liteviewer to location "/usr/share/tomcat7/AppDynamicsLite/" and restarting liteviwer and then starting tomcat makes any different here while you confirm your availability for meeting details, we assume that both the tomcat and liteagent are in same machines

also can you confirm whether you are starting tomcat as follows:
shell> catalina.sh run

Regards,

Arun

CommunityUser
Splunk Employee
Splunk Employee

Actually, It works NOW! . Thanks Alot for your assistant .. it was a matter of Apache tomcat7.. it was not running properly as Tomcat7 and liteDynamics was not on the same user.  

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...