How to enable Cross Component Tracing (XCT) in WebSphere

Home > Search > How-to
  by

Some requests may go through numerous application servers. For example, application server "a" may need to get data from application server "b". Enabling Cross Component Tracing (XCT) allows you to correlate requests between multiple application servers. 


Using the web console

  1. In the left panel of the WebSphere web console, expand Troubleshooting and select Logs and Trace.
  2. Select the component that you want to enable Cross Component Tracing (XCT) on, such as an application server, node, or deployment manager.
  3. Select Change log detail levels.
  4. Check Enable log and trace correlation.
  5. Check Include request IDs in log and trace records, Include request IDs in log and trace records and correlation log records or Include request IDs in log and trace records, create correlation log records, and capture data snapshots.
  6. Select OK.
  7. Select Save.

In this example, Include request IDs in log and trace records, create correlation log records, and capture data snapshots is enabled.

 


Using the command line

Connect to the wsadmin utility using the Jacl language. Create a variable named xctBean to query the cross component trace MBean.

set xctBean [$AdminControl queryNames *:*,type=XCTMBean]

 

The getLevel command will display the current 

wsadmin> $AdminControl invoke $xctBean getLevel

 

Cross Component Tracing can be disabled using the setLevel disable option.

wsadmin> $AdminControl invoke $xctBean setLevel disable

 

Cross Component Tracing can be enabled using the setLevel enable option.

wsadmin> $AdminControl invoke $xctBean setLevel enable

 

Cross Component Tracing can be enabled with the data snapshot option.

wsadmin> $AdminControl invoke $xctBean setLevel {"enable with data snapshot"}

 

Cross Component Tracing can also be set to level READY. When set to READY, the server responds to cross component trace call from other servers

wsadmin> $AdminControl invoke $xctBean setLevel READY

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments