FreeKB - How to enable Cross Component Tracing (XCT) in WebSphere
How to enable Cross Component Tracing (XCT) in WebSphere

Home > Search > How-to


If you are not familiar with Cross Component Trace (XTC), check out our getting started article.

 


Using the web console

  1. In the WebSphere admin 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 and select one of the three bullets.
  5. Select OK.
  6. 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 2276d in the box below so that we can be sure you are a human.




Comments