Dtrace on OpenSolaris

I’ll talk a bit about …. Dtrace
That it?
A wonderful tool that has the OpenSolaris to monitor your entire system ..
How so?
DTrace is intended to monitor everything, when he said, is all the same, on your computer, what programs open (that’s already doing it or other OS software), network status, hardware, file behavior, attendance, monitor what’s Threads system are running, are in the queue, which will still be called (I want to see an OS or proprietary software to do this !!!), see what is happening in the kernel, you can see EVERYTHING in detail, as called processes, modules, functions,DWI!!
According to wikipedia “… The kernel of an operating system is understood as the core of it, or a literal translation, core. He represents the software layer closest to the hardware and is responsible for managing the resources of the computer system as a whole ….. “So if you can see what the kernel is doing through the Dtrace, you really can correct mistakes and so walk to an ideal operating system (Theoretically )!!!!
To get a better idea, the Dtrace group explains that “… DTrace is a framework created by Sun Microsystems for Solaris 10 that gives the system administrator a way understandable to monitor and track all internal operations of each process or Routine system, becoming a powerful tool for advanced diagnosis of problems or enhancements ….”
The cool thing is you monitor what they do, such as what processes you use when you start x software. What about this all you have on hand and see that performance, see problems or failures that can be repaired even by yourself.
In this link (Click Here) Sun you find a book about DTrace and a good detailed explanation of what he is and does!

To make a script to run dtrace you have to write in Language D. Yeah, that’s right, D. Language But that is not a big deal not, is quiet.
A small example from the terminal Opensolaris …
Open terminal and type

cat hello.d
#! / Usr / sbin / dtrace-s
BEGIN
(
trace (“Hello World \ n”);
)

Ready program is done in the / usr / sbin / dtrace-s command is to create the script
and to run the command type
dtrace-s hello.d

Here is the output!!

It is a simple example, but you can see that is not as difficult goes like only a matter of habit with the language.

So with this example and encouragement that Dtrace is the best tool for monitoring and optimization of the Solaris and OpenSolaris, just start playing!
I hope it helped and have any questions just email or post comments!

Here you can find a “How to” DTrace is a very good material for those just starting out and want to understand more about this powerful tool!
Click here to download!
And here the Potal BigAdim Sun has plenty of tips and materials!

Advertisements

About renatopuccini
Android Developer. Passion for what I do!

2 Responses to Dtrace on OpenSolaris

  1. Pingback: Dtrace on OpenSolaris (via Did you Know?) « Chicago Mac/PC Support

  2. Gleb says:

    Yeah! DTrace is probably the best tool to monitor your applications while running without any need to insert debugging code in. It’s great for developers as well as sysadmins.
    Unfortunately, not many people know ’bout enterprise OpenSolaris features, that’s why it is still underestimated. Hope this will change in the future when people learn how to use them, most of developers will switch to OpenSolaris.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: