Attaching to a PE Job
To take full advantage of TotalView’s poe-specific automation, you need to attach to poe itself, and let TotalView automatically acquire the poe processes on all of its nodes. In this way, TotalView acquires the processes you want to debug.
Attaching from a Node Running poe
To attach TotalView to poe from the node running poe:
1. Start TotalView in the directory of the debug target.
If you can’t start TotalView in the debug target directory, you can start TotalView by editing the tvdsvr command line before attaching to poe.
For details, see “Setting the Single-Process Server Launch Command” in the Classic UI documentation.
2. In the File > Attach to a Program, then
find the poe process list, and attach to it by diving into it. When necessary, TotalView launches tvdsvrs. TotalView also updates the Root Window and opens a Process Window for the poe process.
3. Locate the process you want to debug by selecting it in the Processes and Threads view which should display it in the Source pane. If your source code files are not displayed, use File > Preferences > Search Path command to add directories to your search path.
Attaching from a Node Not Running poe
The procedure for attaching TotalView to poe from a node that is not running poe is essentially the same as the procedure for attaching from a node that is running poe. Since you did not run TotalView from the node running poe (the startup node), you won’t be able to see poe in the Process and Threads view, and you won’t be able to start it by diving into it.
To place poe in this list:
1. Connect TotalView to the startup node.
For details, see “Setting the Single-Process Server Launch Command” in the Classic UI documentation.
2. Select the File > Attach to a Program.
3. Look for the process named poe and continue as if attaching from a node that is running poe.
dattach-r hostname poe poe-pid