Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Solutions for tracing UNIX applications

Martin Brown (mc@mcslp.com), Professional writer, Freelance
Martin Brown has been a professional writer for over eight years. He is the author of numerous books and articles across a range of topics. His expertise spans myriad development languages and platforms -- Perl, Python, Java, JavaScript, Basic, Pascal, Modula-2, C, C++, Rebol, Gawk, Shellscript, Windows, Solaris, Linux, BeOS, Mac OS/X and more -- as well as Web programming, systems management and integration. Martin is a regular contributor to ServerWatch.com, LinuxToday.com and IBM developerWorks, and a regular blogger at Computerworld, The Apple Blog and other sites, as well as a Subject Matter Expert (SME) for Microsoft. He can be contacted through his Web site at http://www.mcslp.com.

Summary:  If you are developing a UNIX® application, then you can trace and debug the running application and extract the information you need from it. But what if you want to know what is going on inside a UNIX application and you don't have access to the source code?This tutorial looks at some systems that enable you to trace the execution of applications and work out what they are doing without having to make any modifications to the source code, and even without having to stop and restart the application.

Date:  31 Mar 2009
Level:  Intermediate PDF:  A4 and Letter (66 KB | 24 pages)Get Adobe® Reader®

Activity:  44162 views
Comments:  

Summary

Conclusion

Tracing, and the need to trace your application, can come from many different areas. As a developer, tracing an application can be a quicker alternative than resorting to a full debugger when you are trying to diagnose a problem. Tools like DTrace can be even more intrusive and retrieve some very specific, and extensive, information about your application.

For administrators, tracing provides the only method for locating and finding the information that you need to diagnose problems. Without access to the source code, tracing is often your only means of determining what an application is doing. This tutorial showed that with tracing alone, you can find and diagnose problems with just a few commands.

6 of 9 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=AIX and UNIX
ArticleID=379556
TutorialTitle=Solutions for tracing UNIX applications
publish-date=03312009
author1-email=mc@mcslp.com
author1-email-cc=mmccrary@us.ibm.com