AppD Archive

Object Instance Tracking

CommunityUser
Splunk Employee
Splunk Employee

Hi:

I seem to be stuck trying to get a simple object instrance tracking feature to show up in the dashboard. 

Environment:

JDK version  :  JDK1.7.0_71

Linux 2.6.32-220.el6.x86

Agent logs says:

[Thread-0] 05 Jan 2015 22:56:25,137 INFO InstanceCountingManager - ######### Initializing Instance Tracking ##############
[Thread-0] 05 Jan 2015 22:56:25,154 INFO JMapHistoInstanceCounter - Using JMap Histo Option: -all
[Thread-0] 05 Jan 2015 22:56:30,486 INFO InstanceCountingManager - Instance Tracking is [enabled]

I have a simple  standalone java class which in a loop  keeps adding to a ArrayList -- no matter how long I run it nothing shows up in the "Memory" subtab of the app dynamics UI .. 

When i try instance tracking i see this on the screen

There is no object instance data. This could be caused by the following reasons:

[1] This feature is only supported for Sun JVMs. It does not work for JRockit or IBM JVMs.

[2] tools.jar is not in the JVM classpath. You must add it to the classpath and restart the JVM.

I have added tools.jar to the classpath while starting this standalone java class.  Even added the tools.jat to the jre/lib/ext.  No luck with any of the approaches

I am using a 15 day trial.  

Could you please suggest what I might be doing wrong. 

Thanks

Sriram 

0 Karma

Arun_Dasetty
Super Champion

Hi,

Can you confirm whethere you have copied tools.jar from <jdk7_home>/lib/tools.jar to <jdk_home>/jre/lib/ext path and have opened new terminal or command prompt and restarted JVM if not please do the same,

If thre is any disconnect, please send the logs folder under <AppServerAgent_dir>/logs path to assist you further.

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
  • Standalone java app with agent worked without issues --  I had already tried the above already. 
  • Tomcat with agent was having problems --  the above solution did not work ,  but what worked was the following
    • We had to *remove* catalina.sh  setting of  java.io.tmp directory and then it worked.

Arun_Dasetty
Super Champion

Hi,

We understood that Object instance tracking on tomcat worked after changes to  java.io.tmp in catalina.sh , Can you please send the catalina.sh with and without changes and agent logs before and after restart which would help us to analyze how it affected from agent logs.

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Do we have any followup on this fix?

0 Karma

Arun_Dasetty
Super Champion

Hi,

Did the provided suggestion helped? if not please send the logs requested to assist you further.

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 ...