Unable to attach yourkit with AIX server

Questions about YourKit Java Profiler
Post Reply
abhishek
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Unable to attach yourkit with AIX server

Post by abhishek »

Using AIX server.downloaded and copied the yourkit bundle for 2013 releasehaving java 7 ,64 bit on the server.
Firstly, not able to discover any running jvm.
Secondly,upon giving sh yjp.sh -attach 5308666 command following error recieved.
sh yjp.sh -attach 5308666
Attaching to process 5308666 using default options
com.yourkit.runtime.PresentableException: Cannot attach profiler agent to JVM as to a 32-bit process:

com.sun.tools.attach.AgentLoadException: ATTACH_ERR AgentLoadException /usr/yourkit/yjp-2013-build-13086/bin/aix-ppc-32/libyjpagent.so:

Cannot attach profiler agent to JVM as to a 64-bit process:

Cannot attach profiler agent to JVM: AgentInitializationException, return value=0
at com.yourkit.f.u.p.a(a:131)
at com.yourkit.f.u.c.a(a:27)
at com.yourkit.Main1.for(a:14)
at com.yourkit.Main1.entry(a:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.yourkit.Main$1.run(a:14)

please ,help in this matter.
Thanks in advance,
Abhishek
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to attach yourkit with AIX server

Post by Anton Katilin »

The attach mode does not work with IBM Java.

Please start the application with the profiler agent instead:
http://www.yourkit.com/docs/java/help/r ... ofiler.jsp
abhishek
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Unable to attach yourkit with AIX server

Post by abhishek »

I need to connect it remotely using the remote connection option in yourkit?Need to specify the server url and port?will it identify the JVM running on the server?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to attach yourkit with AIX server

Post by Anton Katilin »

I need to connect it remotely using the remote connection option in yourkit?
Yes.
But first you must start the profiled application with the agent, as described in the help topic I provided a link to.
Need to specify the server url
Yes.
and port?
No. Unless you use a non default PROFILER AGENT port (not the same as the usual HTTP port.)
will it identify the JVM running on the server?
Yes, but see my first statement: the application must be running at that host with the agent.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to attach yourkit with AIX server

Post by Anton Katilin »

P.S. This help topic is likely what you need:
http://www.yourkit.com/docs/java/help/p ... remote.jsp
abhishek
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Unable to attach yourkit with AIX server

Post by abhishek »

my application server is hosted on AIX box.need to connect using remote windows machine.This is the command needed to run <directory with unpacked content>/bin/yjp.sh -integrate on the host machine?After successful integration remote connection from profiler Ui needed?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to attach yourkit with AIX server

Post by Anton Katilin »

Please read the documentation. This will save you a lot of time.
This is the command needed to run <directory with unpacked content>/bin/yjp.sh -integrate on the host machine?
Yes.
After successful integration remote connection from profiler Ui needed?
Yes.
abhishek
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Unable to attach yourkit with AIX server

Post by abhishek »

While doing remote connection,getting message"there is no application running at url with profiler agent configured" or profiler agent is incompatible with current version of profiler.

I am using profiler 2013 build 13076 and profiler agent downloaded is of build 13086 installed on AIX server. As,i was not able to find profiler
agent download link for AIX os corresponding to build 13076 on your website.Kindly suggest a solution for this.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to attach yourkit with AIX server

Post by Anton Katilin »

Please update the profiler client to the latest build. What's the problem with it?

Older builds should not be used because they lack all latest bug fixes and improvements.
abhishek
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Unable to attach yourkit with AIX server

Post by abhishek »

Hi Anton,
Update is not possible as using trial version.Could you tell version mismatch is not the problem here?.same bundle is there for AIX for both the build 13076 and 13086?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to attach yourkit with AIX server

Post by Anton Katilin »

Update is not possible as using trial version
I don't understand your point. How using trial version hinders update to a maintenance release?
Could you tell version mismatch is not the problem here?
There were no incompatible changes between builds 13076 and 13086.

Anyway, consider this for troubleshooting:
http://www.yourkit.com/docs/kb/remote.jsp
abhishek
Posts: 59
Joined: Tue May 13, 2014 7:37 am

Re: Unable to attach yourkit with AIX server

Post by abhishek »

Actually company policies are restricting any update
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Unable to attach yourkit with AIX server

Post by Anton Katilin »

It's up to you not to update, but note we may not provide support until you do.
Post Reply