The Source for Java Technology Collaboration
Webmaster Alert: Posting to Jive Forums is currently not working. Estimated time for fix is unknown.

Home » java.net Forums » JDK » Java SE Snapshots: Project Feedback

Thread: Dtrace and mustang

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Jul 18, 2005 11:40 AM by: kellyohair
alanstange

Posts: 5
Dtrace and mustang
Posted: Jul 6, 2005 7:42 AM
  Click to reply to this thread Reply

Hello,

can someone post a simple example of using Dtrace and Mustang (with build 39 or later)? I'm trying to get this to work using the provider syntax from some Javaone 05 notes and I'm missing something.

Is there some command line options which enables the Dtrace providers?

Thanks!

ingenthr

Posts: 1
Re: Dtrace and mustang
Posted: Jul 6, 2005 5:24 PM   in response to: alanstange
  Click to reply to this thread Reply

Have you seen this? http://blogs.sun.com/roller/page/ahl?entry=dtrace_presentation_at_javaone

delabassee

Posts: 3
Re: Dtrace and mustang
Posted: Jul 18, 2005 6:08 AM   in response to: alanstange
  Click to reply to this thread Reply

> can someone post a simple example of using Dtrace and
> Mustang (with build 39 or later)? I'm trying to get
> this to work using the provider syntax from some
> Javaone 05 notes and I'm missing something.
> Is there some command line options which enables the
> Dtrace providers?

On which Sol10 architecture are you ?
Solaris 8 is still the Mustang build platform. That's why you can see Dtrace probes in Mustang sources; but the probes aren't actually in the build. You have 2 options, build Hotspot on Solaris 10 by yourself or use the Sol10/AMD64 build (by default built on Sol10)

Then, when your JVM is running, just do a dtrace -l | grep hotspot You should see the hotspot and hotspot_jni providers.

--David

kellyohair

Posts: 150
Re: Dtrace and mustang
Posted: Jul 18, 2005 11:40 AM   in response to: alanstange
  Click to reply to this thread Reply

First off, to use DTrace you need to be logged in as root, or you need dtrace permissions (specified in /etc/user_attr file, which only root can modify). The /etc/user_attr line looks something like:
username::::defaultpriv=basic,dtrace_kernel,dtrace_proc,dtrace_user

Second, the post by delabasse is correct, right now you need to use the Solaris AMD64 build (use java -d64).

The dtrace compiler that takes the probe list and creates the necessary additions to the shared library to have the probes is currently only available on Solaris 10, and by default we build SPARC and X86 on Solaris 8. We are currently working out the issues of being able to create the probes on a Solaris 8 machine, which means we need some kind of DTrace compiler for Solaris 8. Keep in mind that using DTrace is still and will always be a Solaris 10 only feature, we are only talking about the DTrace compiler part of DTrace.

Hopefully we can have this resolved in the next few months and everyone with Solaris 10, SPARC, X86, and AMD64 can use the official Mustang DTrace probes.

Keep in mind that the agent based DTrace probes will still work with Mustang builds now:
https://solaris10-dtrace-vm-agents.dev.java.net/
But these agent based probes will have a slightly higher overhead than the ones built into Mustang.




 XML java.net RSS