You have a MOCA trace and a problem to explain. This guide takes one trace from upload to a root cause, using a made-up example: a wave that would not release. Every name in the screenshots (DEMO1, DEMO-WAVE-0042, the DEMO... commands) is sample data, not a real warehouse.

Before you upload

Turn tracing on for the session or command you are troubleshooting, reproduce the problem once, then turn it off. A short trace of one failed attempt is much easier to read than hours of unrelated activity.

Traces can contain SQL, command arguments, user IDs and host names. Upload only files you are authorized to share. WMSDiag redacts values that look like passwords and tokens while it parses, but that is not a reason to upload a file you should not share. The Privacy Notice explains how files are handled.

Step 1: Upload the file

Open the Trace Interpreter, choose New analysis and pick your platform and file. You usually do not need to pick the format: WMSDiag detects it from the file's content, including gzipped files.

The New analysis panel with platform, file type and upload options

  • Keep my file after analysis for re-runs keeps the upload for a limited time that depends on your plan. The panel shows the limit for your plan, and the pricing page lists all of them. Untick it to have the file deleted as soon as the analysis finishes.
  • Force the type above is for the rare case where detection picks the wrong format.

Then choose Analyze.

Step 2: Read the headline findings

The cards at the top list what the analysis found, with the primary finding first and how confident WMSDiag is in it.

Three findings with SQL lock timeout status -54, followed by error, warning and line counts

In the example, three commands returned status -54, a SQL lock timeout. Three cards does not mean three separate problems. The next steps show that these commands call one another, so one failure was passed up the chain.

Step 3: Check what needs attention, and the bottleneck

On the Investigation view, Requires attention lists the failures. Primary bottleneck shows a significant time cost the parser picked out.

The Requires attention list and a 6.80 second SQL operation marked as the primary bottleneck

Read these as two separate questions. Here a query took 6.80 seconds, 18.2% of the trace. It is worth tuning, but it is not why the wave failed. The failure is the lock timeout. The bottleneck box is not always the longest wait either: the tree in the next step shows a much longer one.

Step 4: Follow the execution tree

The Execution tree shows which command called which, how long each one took, and the SQL that ran inside it, in order.

The execution tree: release demo wave calls allocate demo inventory, which calls reserve demo location, where an update fails

Follow the red entries to the deepest one:

  1. release demo wave failed after 37.27 seconds.
  2. Inside it, allocate demo inventory failed.
  3. Inside that, reserve demo location failed.
  4. Inside that, an update on demo_inventory returned -54.

reserve demo location took 30.04 of those seconds. In this example, that is the update waiting for a lock it never got.

Select any command to see the arguments it received. That is often the quickest way to find the exact location, wave or order to check in the database. Raw Trace shows the original lines when you want to verify the evidence yourself.

Step 5: Decide what to do next

The trace tells you what was waiting. It does not necessarily tell you who held the lock, because the other session may not appear in this trace. To find it, capture a support bundle while the problem is happening. See Finding the root blocker in a support bundle.

Treat the findings as a starting point and verify them before changing a live system.

If the result looks wrong

If WMSDiag read the file as the wrong format, use the Re-analyse as links above the result, if your plan includes re-runs and the file is still being kept. Otherwise, upload it again with Force the type above ticked.