We are trying to set up Dynatrace On Agent on a 64 bit Solaris Sparc architecture
We downloaded the agent with the following:
wget -O Dynatrace-OneAgent-Solaris-sparc-1.153.307.zip
We plan to run the agent for multiple tomcats and are taking the approach of setting the required environmental variables for each tomcat startup script. We are setting the variables according to the instructions here:
The paths look correct and the permissions on the file are rwxr-xr-x (so it should be readable by all). We are attempting this config on one of the tomcats and we get the following error:
ld.so.1: tty: fatal: /opt/dynatrace/oneagent/agent/lib/liboneagentproc.so: wrong ELF data format: ELFDATA2LSB
Can you shed any light on what we might have done wrong and/or how to fix?
This is possibly caused by using the wrong bit size library.
The error shows that it's trying to load the 32bit .so file, which means that process is using the LD_PRELOAD Env Var. Can you force it to only see the LD_PRELOAD_64 Env Var?
We are using Dynatrace's own instructions located here:
It says to set these:
Are you saying to remove the lines:
I tried removing these lines. It gives the error about the 64 bit lib
ld.so.1: java: fatal: /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: wrong ELF data format: ELFDATA2LSB
verifying our platform:
~$ isainfo -kv
64-bit sparcv9 kernel modules
Ron, I'm more thinking that the bit issue is with the process you're trying to monitor, not the OS bit size. What do you get when you type "Java -version", be sure to run the java that you use for the application to be monitored.
Ron, Sorry I couldn't be more help. I'm still thinking this is a bitness issue, but what you're doing looks correct. I suggest you reach out to Dynatrace support and have someone look into this further.