DynaTrace Error – Could not find agent library in absolute path

In DynaTrace we need to install the agent on the JVM what requires performance monitoring. Once the agent is installed you can start the process that you want to instrument dynamically as

spatel@xyz:~> java -agentpath:/home/spatel/dynatrace-3.5.0/agent/lib64/libdtagent.so=name=xyz,server=dynatraceserver InfiniteLoop

Sometime you may get this error,

spatel@xyz:~> java -agentpath:/home/spatel/dynatrace-3.5.0/agent/lib64/libdtagent.so=name=xyz,server=dynatraceserver InfiniteLoop
Error occurred during initialization of VM
Could not find agent library in absolute path: /home/spatel/dynatrace-3.5.0/agent/lib64/libdtagent.so

This error is little misleading, it somehow feels that the agent is not available at that location. But if you go and check the libdtagent.so is available.

The real issue here is the agent that installed in compatible with the JVM. In the above case the the JVM is 32 bit and dynatrace agent installed is 64 bit. So we install the dynatrace 32 bit agent and it resolves the issue.

spatel@xyz:~> java –agentpath:/home/spatel/dynatrace-3.5.0/agent/lib/libdtagent.so=name=xyz,server=dynatraceserver InfiniteLoop
2012-05-29 09:45:49 info [native] CPU0: cpu MHz: 2666.7610 (min/max MHz: 0.0000/ 0.0000) cpu has TSC: yes, ConstantTSC: yes
2012-05-29 09:45:49 info [native] CPU1: cpu MHz: 2666.7610 (min/max MHz: 0.0000/ 0.0000) cpu has TSC: yes, ConstantTSC: yes
2012-05-29 09:45:49 info [native] High-resolution hardware timer detected.
2012-05-29 09:45:49 info [native] ———————————————————————————
2012-05-29 09:45:49 info [native] dynaTrace Agent for Java (c) 2004-2010 dynaTrace software GmbH, http://www.dynatrace.com
2012-05-29 09:45:49 info [native] ———————————————————————————
2012-05-29 09:45:49 info [native] Version ………………… 3.5.0.2248 , build date Oct 27 2010
2012-05-29 09:45:49 info [native] Command line is java -agentpath:/home/spatel/dynatrace-3.5.0/agent/lib/libdt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s