How To Inspect
How To Inspect
How To Inspect
How-to guide
XPI Inspector version: 4.5
1. Deploy XPI Inspector web application on the SAP System by downloading the
xpi_inspector_ear.ear file from SAP Note: 1514898.
If you download the ear file from the web version of the note then the downloaded file will receive
wrong “zip” file extension. In that case change the extension of the file from “zip” to “ear” right after the
download and before the deployment. The name of the deployed web application is: “XPI Inspector App”
2. Open the start page of the application by using the following url address:
http(s)://<host>:<port>/xpi_inspector
Only a user with role “administrator” is allowed to use the application. By default it is password
protected with no check for SAP Logon Ticket.
Always look for a tooltips or help button to get more information about a given feature on the fly.
You can check what version of the application is already deployed on your system by using menu “About”. It is highly
recommend always using the latest version indicated in the title of this document and available for download from SAP Note:
1514898. SAP will keep this information updated on each new version released. Use the e-mail address from the menu “About”
if you need additional support or use CSS component “BC-XI-CON-AFW”.
XPI Inspector keeps all generated files in SAP System’s global directory of the Central Java Instance under the folder named:
“xpi_inspector”. All files are stored encrypted on the file system and can be read only if the result file is downloaded from XPI
Inspector application deployed on that system. It is highly recommend always keep this directory clean and delete all obsolete
results by using menu “History”.
For security reason (in order to avoid writing a lot of information in the default trace file) XPI Inspector by default disables
writing the traces in the default trace file during the time it is started. You can switch this off (thus traces will be written in
the default trace as well) by using menu “Options” from the start page. The only way to see the traces during this time is to
use the ZIP file generated by the tool during given inspection. This zip file is stored encrypted on the file system and the only
way to see its content is if you download it by the XPI Inspector deployed on this system.
Usage
Using XPI Inspector application you will be able to collect a lot of information about your
system that will help you to learn about problems in the past, to analyze new and detect such
at an early stage.
To perform an inspection do the following simple steps:
1. Select so called “example”. Each example corresponds to a given area of problems.
Some examples require additional parameters to be specified.
Some examples or additional options are XI related only and will not be visible if your system does not have
usage type: PI.
Available Examples:
Id Name Problem Area XI Additional
related Params
1 CPA Cache XI CPA Cache X -
11 Authentication, SSL & PP Login, WSS, SSL, XI Principal Propagation optional
18 RWB TREX, Alerting, XML DAS, Runtime Workbench X
19 Mapping Runtime XI Mapping Runtime debug tracing X
30 XI Adapter XI Adapter Type debug tracing X X
40 XI Message XI Message Processing debug tracing X X
50 XI Channel XI Channel(s) and their message processing X X
51 Performance Problem Thread Dumps, JVM Profiling, Memory Usage X
52 Authorization & Session Denied access to the system due to insufficient
Management authorization rights
60 JEE Service JEE Service(s) debug tracing X
70 JEE Application JEE Application(s) debug tracing X
80 Default Trace View traces written in the default trace file from the X
past.
100 Custom Custom defined set of log locations and log X
categories for debugging.
2. Select one or more additional options (check boxes) depending on your needs:
Additional Options:
Option Name Usage XI
Related
Collect traces from Messaging Debugging XI Messaging System and check its state X
System
Collect traces from XI Module Debugging XI Modules X
Processor
Collect traces from HTTP HTTP requests/responses
Provider
Collect Open SQL statements Track Database access
Collect JCO traces Debugging RFC calls
Check SAP System State XI Statistics, Enqueue locks, GC History, Heap Memory, Threads, Alerts, …
3. Start the inspection by clicking button “Start”. If the problem is reproducible then
initiate its occurrence again by reproducing the failed scenario. Once the problem
occurred click button “Stop”. If the problem is not reproducible then simply click button
“Stop”.
For some examples XPI Inspector will stop automatically once the information is gathered. However
you can still interrupt this behavior by using button “Stop”. XPI Inspector will automatically stop for the
following examples when the corresponding condition is met:
80 (Default Trace) – when all traces from the selected time interval are read.
51 (Performance Problem) - only if the number of thread dumps is greater than 0 and all thread dumps are
triggered.
4. In the result page click the link next to the information icon on top of the page to
download the result as zipped content. Save the file on the file system and attach it to
the OSS Message. Send the message to SAP for further analyzing.
The generated zip file has absolutely the same content as visible in the result page. XPI Inspector does
not do any modifications on the system and does not collect any security sensitive information like
passwords, private certificates or payloads except the information containing in the default traces and
written by a given software component there.
6. You can configure the tool to start the inspection when specific condition is met. You
can do this by using menu “Options” from the start page:
The XPI Inspector can collect maximum 400 000 traces. In the result page they are
displayed like set of pages with maximum 20 000 traces per page.
The tool will stop automatically if the inspection is started but not stopped for more
than 24 hours.
Information to get Example to use Additional option to use
SAP System Info and deployed SCs * -
Deployed SDAs * SAP System State
Messaging System Health Check, including: * SAP System State,
- XI Held Messages with status (EOIO Message Processing) Messaging System
- All Running Background Jobs
- Audit Logs Statistics
- Messages in DB with status and size
- Messages in Message Store
- Scheduled Messages
- Messaging System’s queues and their threads
SAP Java Cluster Messages * SAP System State
Enqueue Locks * SAP System State
JVM Parameters per Java Instance * -
Alerts from Monitoring per Java Instance * SAP System State
ABAP Work Processes status * SAP System State
ABAP System Logs * SAP System State
ICM Traces & ICM Logs per Java Instance * HTTP Provider
Default Traces per server node * -
Messaging System Logs (XI Logs) per server node * -
HTTP Traces per server node * HTTP Provider
JCO Traces per server node * JCo by Trace Level
Open SQL Traces per server node * Open SQL
Java Threads status & stack per server node * SAP System State
Used Heap Memory per server node * SAP System State
Java GC History per server node * SAP System State
Performance Traces (SAP VM Profiling) per server node 51 -
Memory Allocation Traces (SAP VM profiling) per server 51 -
Full Thread Dumps with viewer per server node 51 -
XI Channel configuration, logs and traces 50 -
XI Message details, audit logs and processing steps with 40 -
traces
XI CPA Cache content and traces 1 -
Authentication stack, HTTPS calls, Principal Propagation, 11 -
SSL Handshake
XI Archiving, XI Alerting, RWB, XML DAS Service 18 -
SAP J2EE Service properties and debug tracing 60 -
SAP J2EE Application properties and debug tracing 70 -
Reading default traces from the past 80 -
Define your own set of log locations and/or log categories 100 -
Registered Security Providers 11 -
Is XI Message Overview Activated? 18 -
Samples by Examples
2. Check SSL Server’s certificate and its ssl handshake with j2ee client:
During this check XPI Inspector performs dummy https call to the specified ssl server and executes ssl
handshake.