PtoolsDemo

P-Tools Demo (2 Minutes)

Description

This demo showcases some of the p-tools which are less known and can be very handy.

OpenSolaris Versions Supported

2008.05 or newer.

Points to Hit

  • P-tools can help you analyze what's going on with the processes on your system.
  • prstat is similar to top on Linux and the Windows Task Manager on Windows

Demo Prep

Start OpenOffice (if not already running)

Gotchas

None known.

Demo

  • Show that OpenOffice is running
  • prstat Make note of the PID for OpenOffice. Point out the stats that are available, including the # of LWP. Note that top is also available (show it if you like).
  • pfiles <pid> shows the files that OpenOffice has open, and in which mode, etc. If your have a presentation open, it should be listed last.
  • pstack <pid> shows stack traces for all OpenOffice threads. The number of traces should match the number of LWPs from prstat/top
  • pwdx <pid> shows the current working directory for OpenOffice.
  • man pfiles shows all the p-file commands: pldd, pcred, pflags, etc.

Demo Cleanup

None.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact