Setting Up Your Development Environment on OpenSolaris
DTrace
The OpenSolaris OS initial installation includes the DTrace (Dynamic Tracing) facility (providers and clients) and toolkit (SUNWDTraceToolkit). The DTraceToolkit is in /opt/DTT and includes many useful scripts. See /opt/DTT/Guide for information about the DTraceToolkit. Additional scripts are in /usr/demo/dtrace.
Note that you need to have dtrace_user and dtrace_proc privileges to use DTrace. For help assigning privileges, see Privileges in the DTrace Topics Guide on solarisinternals.com.
You might want to install additional packages related to DTrace such as the following:
| dtrace-gui-plugin | NetBeans DTrace GUI Plug-in |
| SUNWapch<version>-dtrace | DTrace plugin for Apache Web Server |
| SUNWxdt | xVM Hypervisor Dynamic Tracing (DTrace) Provider |
| SUNWcacaodtrace | Common Agent Container DTrace Module |
To download and install DTrace tools by using the OpenSolaris Package Manager:
- Select System > Administration > Package Manager from the desktop menu bar on your OpenSolaris system.
- To find all the DTrace packages, do one of the following steps:
- Select a Repository to search, select All Categories from the category menu, select the System sub-category, and select All Packages from the Show menu.
- Select a Repository to search, type dtrace in the Search field, and press the Enter key.
- Select All Repositories from the Search menu, type dtrace in the Search field, and press the Enter key.
- A check mark in the Status column of the package list means that package is already installed on your system. A green star in the Status column means an update is available for that package. If you want to install or update a package, select the checkbox to the left of the package name and then select the Install/Update button or the Package > Install/Update menu option at the top of the Package Manager window.
For more information about DTrace, see the following resources:
- How to Use the NetBeans DTrace GUI Plug-in
- How to Use the DLight Tool on a Sun Studio Project
- DTrace code and documentation
- Solaris Dynamic Tracing Guide
- DTrace Quick Start Guide: Observing Native and Web Applications in Production
- DTrace Community
- Observability Community
- Dynamic Tracing Framework for Mozilla
- Chime Visualization Tool for DTrace
- DTrace page of the Solaris Internals and Performance FAQ
- How to Add DTrace Probes to an Application
- DTrace and Web Stack

