How To
Summary
IBM App Connect Enterprise (ACE) provides a trace facility for capturing runtime behavior.
Use this process to capture a "service level" trace of a particular Integration Node for the purpose of providing to IBM Support for analysis.
Steps
The REST API is the primary method of communicating with an Integration Node.
This method of enabling trace requires the Rest Administration port to be active for the Integration Node.
- Clear trace (recommended):
curl -X POST http://{hostname}:{port}/apiv2/reset-service-trace
- Start trace:
curl -X POST http://{hostname}:{port}/apiv2/start-service-trace
- Recreate the runtime behavior.
- Stop trace:
curl -X POST http://{hostname}:{port}/apiv2/stop-service-trace
This method of enabling trace uses the same mqsi* commands as previous versions of IBM Integration Bus (IIB).
- Start trace:
mqsichangetrace <Int.Node> -b -t -l debug -r -c 200000
- Recreate the runtime behavior.
- Stop trace:
mqsichangetrace <Int.Node> -b -t -l none
This method of enabling trace requires the Integration Node to be restarted.
- Open the node.conf.yaml file
This file is in {work path}/components/{Int.Node}/ - Locate the lines for trace settings:
#agentTrace: none # choose 1 of : none|debug|diagnostic #agentTraceSize: 1G # Set the service trace size
- Enable the trace by uncommenting and updating the lines:
agentTrace: debug # choose 1 of : none|debug|diagnostic agentTraceSize: 1G # Set the service trace size
- Restart the Int.Node.
- Recreate the runtime behavior.
- Disable the trace by recommenting or updating the 'trace' line to show 'none':
agentTrace: none # choose 1 of : none|debug|diagnostic agentTraceSize: 1G # Set the service trace size
- Restart the Int.Node.
Additional Information
Output location
Traces are written to the Integration Server's workdir or the multi-user workpath:
- <workdir>/config/common/log
- /var/mqsi/common/log
Performance Impact
A "service level" trace logs the internal function calls within Int.Node processing and therefore can have an impact to performance.
Take care when enabling trace in production and other high throughput environments.
Maximum file size
ACE component traces have a maximum file size.
When the maximum file size is reached, the tracing mechanism will begin to overwrite the oldest trace data.
When the maximum file size is reached, the tracing mechanism will begin to overwrite the oldest trace data.
The '-c' flag on the mqsichangetrace command, or the traceSize in the node.conf.yaml file, overrides the maximum size for the trace, in KB.
Capturing startup events
The mqsichangetrace command can be run with the Int.Node stopped.
Updating the node.conf.yaml file requires the Int.Node to be restarted.
Enabling trace in either of these ways will trace startup activities.
Updating the node.conf.yaml file requires the Int.Node to be restarted.
Enabling trace in either of these ways will trace startup activities.
Related Information
Document Location
Worldwide
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSDR5J","label":"IBM App Connect Enterprise"},"Component":"Trace","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Product Synonym
ACE
Was this topic helpful?
Document Information
Modified date:
24 October 2023
UID
ibm10964666