Closed FelixMarxIBM closed 4 months ago
After creating a temp build with these attach-tools, the attachment works without any issues:
2024-07-02T06:39:30.350-04:00 | INFO | instana-executor-thread-2-3 | ExternalAttach | com.instana.agent - 1.1.727 | Executing: su testuser -c "/opt/java/semeru/jdk8u402-b06/bin/java -Xms16m -Xmx16m -Dcom.ibm.tools.attach.enable=no -Duser.dir=/ -cp /tmp/.instana/attach-tools-1.14.18.jar:/tmp/.instana/javaagent-loader-1.3.62.jar com.instana.agent.loader.AgentLoaderAttach agent=/tmp/.instana/javaagent-loader-1.3.62.jar verify=true pid=8061246 host=127.0.0.1 port=42699 boot=/com.instana.agent.artifact/com.instana/instrumentation-boot/1.1.29/jar shared=/com.instana.agent.artifact/com.instana/instrumentation-shared/1.0.141/jar inMemoryClassLoader=true agentSocket=true"
2024-07-02T06:39:32.300-04:00 | INFO | nstana-socket-client-thread--6-4 | tClientIdDecoder | com.instana.agent - 1.1.727 | 8061246:com.instana.agent.main.javaagentloader connection established
2024-07-02T06:39:32.333-04:00 | INFO | instana-executor-thread-2-3 | aagentLoaderImpl | com.instana.agent - 1.1.727 | Initial attach to JVM with PID 8061246 successful
Looks good. I'm currently on vacation but will merge once I'm on a machine again.
Fixes #1667
Why:
stat
is absent on AIXWhat:
istat
instead and pasre theOwner
of the outputExample output
The
istat
command does not offer an output to only get the Owner PID, therefore we have to use a Pattern matcher to get it.The Exception that is seen prior to this fix on AIX: