What am I missing? [Download dvm.zip from https://solaris10-dtrace-vm-agents.dev.java.net/] [root at load0 /]$ mkdir /opt/dvm;cd /opt/dvm root at load0 dvm]$ unzip /home/jbuckley/dvm.zip [jbuckley at load0 ~]$ more /etc/release Solaris Nevada snv_45 SPARC Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 31 July 2006 [jbuckley at load0 ~]$ uname -a SunOS load0 5.11 snv_45 sun4v sparc SUNW,Sun-Fire-T1000 [jbuckley at load0 ~]$ which java /usr/bin/java [jbuckley at load0 ~]$ java -version java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode) Default config works... [jbuckley at load0 ~]$ export LD_LIBRARY_PATH_64=/opt/dvm/build/sparcv9/lib [jbuckley at load0 ~]$ java -version java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode) Still works... [jbuckley at load0 ~]$ export LD_LIBRARY_PATH_32=/opt/dvm/build/sparc/lib [jbuckley at load0 ~]$ java -version java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode) Still works... [jbuckley at load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundjvmti:all [jbuckley at load0 ~]$ java -version Picked up JAVA_TOOL_OPTIONS: -Xrundjvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: djvmti What am I missing? Where are the dvm and/or djvm[tp]i agent libraries? [jbuckley at load0 ~]$ Thanks, Joel. Joel.Buckley at Sun.COM JIST Development Lead 303-272-5556, x75556 "Luck is a Planned Event." ----- Original Message ----- From: Adam Leventhal <ahl at eng.sun.com> Date: Tuesday, October 10, 2006 6:31 pm Subject: Re: [dtrace-discuss] Using dTrace on Java Apps To: Russ Petruzzelli <Russ.Petruzzelli at Sun.COM> Cc: dtrace-discuss at opensolaris.org> Hey Russ, > > You might want to take a look at my presentation from one of the > last two > JavaOne conferences: > > > http://blogs.sun.com/roller/page/ahl?entry=dtrace_presentation_at_javaone http://blogs.sun.com/ahl/entry/javaone_dtrace_session_2006 > > Adam > > On Tue, Oct 10, 2006 at 03:46:39PM -0700, Russ Petruzzelli wrote: > > Is it possible to use DTrace to zero in on the performance of > Java apps > > running in our webserver? > > Specifically, the webserver kernel process, webservd, is running > a jvm, > > and in that jvm run the deployed web applications. Servlets, > jsps, etc. > > I would like to zero in on the performance of the java class > methods. My > > current tool, LoadRunner, can return data on the main servlet, > but it > > stops there. I would like to have data on the routines/class > methods > > that the servlet calls. (Much like the net beans profiler.) > > > > On the other hand, info on the kernel system calls is too detailed. > > Can DTrace trace back a particular problem prone system call to > the java > > class causing the problem? (The java class is buried in the jvm > which > > is embedded in the unix process....) > > > > Thanks, > > Russ > > _______________________________________________ > > dtrace-discuss mailing list > > dtrace-discuss at opensolaris.org > > -- > Adam Leventhal, Solaris Kernel Development > http://blogs.sun.com/ahl_______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >Joel.Buckley at Sun.COM JIST Development Lead 303-272-5556, x75556 "Luck is a Planned Event." -------------- next part -------------- A non-text attachment was scrubbed... Name: Joel.Buckley.vcf Type: text/x-vcard Size: 331 bytes Desc: Card for Joel Buckley <Joel.Buckley at Sun.COM> URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20061011/208a6aac/attachment.vcf>
Hi Joel,> [jbuckley at load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundjvmti:all > [jbuckley at load0 ~]$ java -version > Picked up JAVA_TOOL_OPTIONS: -Xrundjvmti:all > Error occurred during initialization of VM > Could not find agent library on the library path or in the local directory: djvmti > > What am I missing?I think it should be ''-Xrundvmti:all'' rather than ''-Xrundjvmti:all'' -- the very first version of the DVM provider might have used that name, but not subsequent ones. Adam On Wed, Oct 11, 2006 at 03:08:54PM -0600, Joel Buckley wrote:> What am I missing? > > [Download dvm.zip from https://solaris10-dtrace-vm-agents.dev.java.net/] > [root at load0 /]$ mkdir /opt/dvm;cd /opt/dvm > root at load0 dvm]$ unzip /home/jbuckley/dvm.zip > > [jbuckley at load0 ~]$ more /etc/release > Solaris Nevada snv_45 SPARC > Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. > Use is subject to license terms. > Assembled 31 July 2006 > [jbuckley at load0 ~]$ uname -a > SunOS load0 5.11 snv_45 sun4v sparc SUNW,Sun-Fire-T1000 > [jbuckley at load0 ~]$ which java > /usr/bin/java > [jbuckley at load0 ~]$ java -version > java version "1.5.0_07" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) > Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode) > > Default config works... > > [jbuckley at load0 ~]$ export LD_LIBRARY_PATH_64=/opt/dvm/build/sparcv9/lib > [jbuckley at load0 ~]$ java -version > java version "1.5.0_07" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) > Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode) > > Still works... > > [jbuckley at load0 ~]$ export LD_LIBRARY_PATH_32=/opt/dvm/build/sparc/lib > [jbuckley at load0 ~]$ java -version > java version "1.5.0_07" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) > Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode) > > Still works... > > [jbuckley at load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundjvmti:all > [jbuckley at load0 ~]$ java -version > Picked up JAVA_TOOL_OPTIONS: -Xrundjvmti:all > Error occurred during initialization of VM > Could not find agent library on the library path or in the local directory: djvmti > > What am I missing? > Where are the dvm and/or djvm[tp]i agent libraries? > > [jbuckley at load0 ~]$ > > > Thanks, > Joel. > > > Joel.Buckley at Sun.COM > JIST Development Lead > 303-272-5556, x75556 > "Luck is a Planned Event." > > ----- Original Message ----- > From: Adam Leventhal <ahl at eng.sun.com> > Date: Tuesday, October 10, 2006 6:31 pm > Subject: Re: [dtrace-discuss] Using dTrace on Java Apps > To: Russ Petruzzelli <Russ.Petruzzelli at Sun.COM> > Cc: dtrace-discuss at opensolaris.org > > > Hey Russ, > > > > You might want to take a look at my presentation from one of the > > last two > > JavaOne conferences: > > > > > > http://blogs.sun.com/roller/page/ahl?entry=dtrace_presentation_at_javaone http://blogs.sun.com/ahl/entry/javaone_dtrace_session_2006 > > > > Adam > > > > On Tue, Oct 10, 2006 at 03:46:39PM -0700, Russ Petruzzelli wrote: > > > Is it possible to use DTrace to zero in on the performance of > > Java apps > > > running in our webserver? > > > Specifically, the webserver kernel process, webservd, is running > > a jvm, > > > and in that jvm run the deployed web applications. Servlets, > > jsps, etc. > > > I would like to zero in on the performance of the java class > > methods. My > > > current tool, LoadRunner, can return data on the main servlet, > > but it > > > stops there. I would like to have data on the routines/class > > methods > > > that the servlet calls. (Much like the net beans profiler.) > > > > > > On the other hand, info on the kernel system calls is too detailed. > > > Can DTrace trace back a particular problem prone system call to > > the java > > > class causing the problem? (The java class is buried in the jvm > > which > > > is embedded in the unix process....) > > > > > > Thanks, > > > Russ > > > _______________________________________________ > > > dtrace-discuss mailing list > > > dtrace-discuss at opensolaris.org > > > > -- > > Adam Leventhal, Solaris Kernel Development > > http://blogs.sun.com/ahl_______________________________________________ > > dtrace-discuss mailing list > > dtrace-discuss at opensolaris.org > > > > > Joel.Buckley at Sun.COM > JIST Development Lead > 303-272-5556, x75556 > "Luck is a Planned Event."Content-Description: Card for Joel Buckley <Joel.Buckley at Sun.COM>> begin:vcard > n:Buckley;Joel > fn:Joel W. Buckley > tel;fax:303-272-4194 > tel;home:720-226-9370 > tel;work:303-272-5556 > url:sse.sfbay/interop/jist > org:Storage Group;System Test > adr:;;500 Eldorado Blvd., BRM05, Room3196;Broomfield;Colorado;80021-3400;USA > version:2.1 > email;internet:Joel.Buckley at Sun.COM > title:JIST Development Lead > end:vcard> _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
> > [jbuckley at load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundjvmti:all > > [jbuckley at load0 ~]$ java -version > > Picked up JAVA_TOOL_OPTIONS: -Xrundjvmti:all > > Error occurred during initialization of VM > > Could not find agent library on the library path or in the local > directory: djvmti > > > > What am I missing? > > I think it should be ''-Xrundvmti:all'' rather than ''-Xrundjvmti:all'' > -- the > very first version of the DVM provider might have used that name, > but not > subsequent ones. > > Adam[jbuckley at load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundvmti:all [jbuckley at load0 ~]$ /usr/jdk/jdk1.5.0_07/bin/java -version Picked up JAVA_TOOL_OPTIONS: -Xrundvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: dvmti [jbuckley at load0 ~]$ /usr/jdk/jdk1.6.0/bin/java -version Picked up JAVA_TOOL_OPTIONS: -Xrundvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: dvmti Still no go. -------------- next part -------------- A non-text attachment was scrubbed... Name: Joel.Buckley.vcf Type: text/x-vcard Size: 331 bytes Desc: Card for Joel Buckley <Joel.Buckley at Sun.COM> URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20061012/f6de47ff/attachment.vcf>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Have you seen this page? <a class="moz-txt-link-freetext" href="https://solaris10-dtrace-vm-agents.dev.java.net/">https://solaris10-dtrace-vm-agents.dev.java.net/</a><br> re: The dvmti agent will utilize BCI (Byte Code Instrumentation) where needed and will need a jar file called dvmti.jar, that should be located in the same directory as the shared library libdvmti.so. <br> <br> Russ<br> <br> Joel Buckley wrote: <blockquote cite="midf804e31443cd.452df964@sun.com" type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">[jbuckley@load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundjvmti:all [jbuckley@load0 ~]$ java -version Picked up JAVA_TOOL_OPTIONS: -Xrundjvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local </pre> </blockquote> <pre wrap="">directory: djvmti </pre> <blockquote type="cite"> <pre wrap="">What am I missing? </pre> </blockquote> <pre wrap="">I think it should be ''-Xrundvmti:all'' rather than ''-Xrundjvmti:all'' -- the very first version of the DVM provider might have used that name, but not subsequent ones. Adam </pre> </blockquote> <pre wrap=""><!----> [jbuckley@load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundvmti:all [jbuckley@load0 ~]$ /usr/jdk/jdk1.5.0_07/bin/java -version Picked up JAVA_TOOL_OPTIONS: -Xrundvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: dvmti [jbuckley@load0 ~]$ /usr/jdk/jdk1.6.0/bin/java -version Picked up JAVA_TOOL_OPTIONS: -Xrundvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: dvmti Still no go. </pre> <pre wrap="">_______________________________________________ dtrace-discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:dtrace-discuss@opensolaris.org">dtrace-discuss@opensolaris.org</a> </pre> </blockquote> </body> </html>
Joel Buckley
2006-Oct-12 17:50 UTC
[dtrace-discuss] Where is dvmti Agent? (not djvmti as documented...)
All, Could the current name of the Java DTrace Agent be updated in the online documentation? This is REALLY hard to find at present. Thanks to Alan & Jarod, the fix is found: export LD_LIBRARY_PATH_64=/opt/dvm/build/sparcv9/lib export LD_LIBRARY_PATH_32=/opt/dvm/build/sparc/lib export JAVA_TOOL_OPTIONS=-Xrundvmti:all Then it works: /usr/jdk/jdk1.5.0_07/bin/java -version OR truss -fa -t open -v open /usr/jdk/jdk1.5.0_07/bin/java -version Thanks, Joel. Joel.Buckley at Sun.COM JIST Development Lead 303-272-5556, x75556 "Luck is a Planned Event." -------------- next part -------------- A non-text attachment was scrubbed... Name: Joel.Buckley.vcf Type: text/x-vcard Size: 331 bytes Desc: Card for Joel Buckley <Joel.Buckley at Sun.COM> URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20061012/2af55072/attachment.vcf>
Russ, Yes I have. That is were I downloaded the dvm.zip file from. However, several other references refer to the provider as "djvm[tp]i". The references I used were: https://solaris10-dtrace-vm-agents.dev.java.net/ http://blogs.sun.com/ahl/entry/dtrace_presentation_at_javaone http://blogs.sun.com/ahl/entry/javaone_dtrace_session_2006 http://blogs.sun.com/ahl/entry/dtracing_java http://blogs.sun.com/ahl/entry/open_sourcing_the_javaone_keynote http://blogs.sun.com/bmc/date/20050418#your_java_fell_into_my It would be helpful to change all the references listed above to reference "dvm[tp]i" instead of "djvm[tp]i" would be helpful. And/or updating "https://solaris10-dtrace-vm-agents.dev.java.net/" with updated examples from the above references. That way, only the "https://solaris10-dtrace-vm-agents.dev.java.net/" site needs to be referenced. Thanks for listening, Joel. Joel.Buckley at Sun.COM JIST Development Lead 303-272-5556, x75556 "Luck is a Planned Event." ----- Original Message ----- From: Russ Petruzzelli <Russ.Petruzzelli at Sun.COM> Date: Thursday, October 12, 2006 12:21 pm Subject: Re: [dtrace-discuss] Where is djvmti Agent? To: Joel Buckley <Joel.Buckley at Sun.COM> Cc: dtrace-discuss at opensolaris.org <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <span><p> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <td bgcolor="#ffffff" text="#000000"><p> Have you seen this page? <a class="moz-txt-link-freetext" href="https://solaris10-dtrace-vm-agents.dev.java.net/" target="1">https://solaris10-dtrace-vm-agents.dev.java.net/</a><br> re: The dvmti agent will utilize BCI (Byte Code Instrumentation) where needed and will need a jar file called dvmti.jar, that should be located in the same directory as the shared library libdvmti.so. <br> <br> Russ<br> <br> Joel Buckley wrote: <blockquote cite="midf804e31443cd.452df964 at sun.com" type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">[jbuckley at load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundjvmti:all [jbuckley at load0 ~]$ java -version Picked up JAVA_TOOL_OPTIONS: -Xrundjvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local </pre> </blockquote> <pre wrap="">directory: djvmti </pre> <blockquote type="cite"> <pre wrap="">What am I missing? </pre> </blockquote> <pre wrap="">I think it should be ''-Xrundvmti:all'' rather than ''-Xrundjvmti:all'' -- the very first version of the DVM provider might have used that name, but not subsequent ones. Adam </pre> </blockquote> <pre wrap=""><!----> [jbuckley at load0 ~]$ export JAVA_TOOL_OPTIONS=-Xrundvmti:all [jbuckley at load0 ~]$ /usr/jdk/jdk1.5.0_07/bin/java -version Picked up JAVA_TOOL_OPTIONS: -Xrundvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: dvmti [jbuckley at load0 ~]$ /usr/jdk/jdk1.6.0/bin/java -version Picked up JAVA_TOOL_OPTIONS: -Xrundvmti:all Error occurred during initialization of VM Could not find agent library on the library path or in the local directory: dvmti Still no go. </pre> <pre wrap="">_______________________________________________ dtrace-discuss mailing list <A href="javascript:main.compose(''new'',''t=dtrace-discuss at opensolaris.org'')">dtrace-discuss at opensolaris.org</a> </pre> </blockquote> </td> </span> -------------- next part -------------- A non-text attachment was scrubbed... Name: Joel.Buckley.vcf Type: text/x-vcard Size: 331 bytes Desc: Card for Joel Buckley <Joel.Buckley at Sun.COM> URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20061012/a5788362/attachment.vcf>