Attaching to a process to collect log records

To attach to a process means that a monitor is created to contain the results observed by an associated agent.  You can attach to a process that is collecting log records in the same way that you would attach to any other process.

Whenever you launch or attach to a Java process, a logical representation of the Java process is created in the Profiling Monitor view. This representation, the process object, is identified both by name and an ID number (PID) that appears in the view along with the associated agents.

To either launch or attach either a local or a remote Java process, follow these steps:

  1. From the Profiling and Logging Perspective, Java Perspective, Server Perspective, or Debug Perspective, select Profile:

     cursor pointing to drop down selector on Profile icon

    Select either Launch or Attach, then select Java Process if the process is local or Remote Process if it is remote.
  2. If you selected Remote Process, the Hosts page opens. 
  3. If you selected Attach, then the Agent window appears, displaying detached (and hence available) agents that are running and collecting data. 
  4. If you selected Launch, then the Class window opens.
  5. Specify the project and monitor in which to store data from this profiling session. You could also specify an external file.  Click Next. The Profiling Filters page opens.
  6. To select what should and should not be profiled, Select a filter set.  Click Next.  The Profiling Options page opens..
  7. Select the checkboxes to specify whether profiling should Analyze the application heap and whether it should Analyze the application execution time.   Click Next.
  8. Specify whether profiling should stop after some number of method invocations or some amount of time.  Click Finish. The profiling begins:
  9. To analyze data from the profiling session, you can open other Profiling and Logging views. When you first open a view, it is empty.  To populate it, click Refresh Views  A button with stylized icon .

 

Related concepts
Overview of the Log Analyzer
 

Related tasks
Working with log files



 
 

>