help with serviceability agent?

A. Sundararajan Sundararajan.A at Sun.COM
Thu Aug 14 22:15:28 PDT 2008


Hi Keith,

You may want to use the scripts in agent/make directory (hsdbproc.sh for 
example). These scripts use the correct SA "back end" to attach to the 
process. The libproc based back-end is shipped with JDK (on Solaris, 
Linux). The older "dbx" back end is obsolete.

Hope this helps,
-Sundar

Keith McGuigan wrote:
> Hello,
>
> I was wondering if someone could help me figure out how to run 
> serviceability agent.  I've never run it before, so expect naive 
> questions/issues.
>
> So I build the a VM from the openjdk hotspot-rt baseline and placed it 
> into a jdk7 JDK.  I build the SA from the same repo by cd'ing into the 
> agent/make directory and running gnumake (this is on solaris-sparc, by 
> the way).  I then fire off a test process (java2d demo), and in the 
> agent/build/classes directory, I run 'java sun.jvm.hotspot.HSDB'.
>
> The window comes up fine, but when I try to attach to a JVM process, I 
> get the following error:
>
> "Error connecting to dbx process"
>
> dbx is in my path (I tried both SS11 and SS12), and I tried passing 
> -Dsun.jvm.hotspot.runtime.VM.disableVersionCheck but no luck.  I don't 
> see any log file hanging around that will help me debug this.
>
> So... any suggestions on what I'm doing wrong or what I can do to help 
> myself figure this out?
>
> -- 
> - Keith




More information about the serviceability-dev mailing list