?
Solved

What does dbxtrace do?

Posted on 2009-04-14
7
Medium Priority
?
818 Views
Last Modified: 2013-12-11
./dbxtrace_aix.sh -a [PID] > dbxtrace.out. What does this do?
0
Comment
Question by:srikanthradix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 750 total points
ID: 24142753
It creates text dump from core file using debugger called "dbx"
Good for debugging.
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 750 total points
ID: 24142811
Hi again,

the purpose of the dbx command is to provide an environment to debug and run programs under the operating system.
You can examine object and core files, set breakpoints at selected statements or run the program one line at a time,
using symbolic variables and display them in their correct format.

There are shell scripts that call the dbx command and format the thread information from the core file. One of them is dbxtrace, whose AIX version is dbxtrace_aix.sh

The output of dbxtrace.sh provides information about each defined thread, with the following sections:  
Error condition
Description of each thread
Detail thread information
Stack trace of each thread.

HTH

wmp





0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24142996
... and particularly the -a flag with the <PID> parameter means attach to a running or hung process, whereas the -c flag with the <corefile> parameter means examine a core file.
0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 

Author Comment

by:srikanthradix
ID: 24143403
I have written a sample program
#!/bin/ksh
i=0
while true
do
echo "Value of i is $i"
i=`expr $i + 1`
sleep 100
done

and attached this process id to dbx
dbx -a pid

How do i debug now?
0
 

Author Comment

by:srikanthradix
ID: 24143449
I am sorry, i did not know that dbx is used only for c, c++ and java programs and generating text files from core dump. Ignore my previous comment.
0
 

Author Closing Comment

by:srikanthradix
ID: 31570158
What is nodeagent in WebSphere?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24149266

A node agent is used in the "distributed" version of WebSphere called "Network Deployment".
It is a server running on every host computer in the deployed network. It performs administrative functions, so it is e. g. responsible for all local name requests (JNDI) as well as managing running application servers - so if your application server is having problems, it will stop/terminate and restart it.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question