Skip to content

Diagnose a Slow Engine with the MCP

The diagnose_slow_engine prompt asks a model to find out why a QIE engine is slow as a whole, rather than one channel. In Claude Code, with the server added under the name qie, it runs as /qie:diagnose_slow_engine. Other clients start a prompt in their own way, where they support prompts. Codex does not support prompts, so ask it for the same work in your own words (see Connecting Codex).

Arguments

Argument Required Holds
symptom No What is slow, and since when, such as "every channel since the upgrade on Tuesday".

What the model is asked to do

  1. Read the server's resources twice, a minute apart: memory, CPU, garbage collection and the thread pools. Garbage collection time that grows quickly between the two, or a thread pool with work queued, points at the engine itself (see MCP Server Resource and Environment Tools).
  2. Read which channels hold the processor threads, and the status of each zone to find channels with messages waiting in their queues (see MCP Thread Tools).
  3. Read the statements running on the QIE database, what blocks them, and whether the longest-running ones read whole tables (see MCP Database Activity Tool).
  4. Read the environment, to see whether something changed recently: a QIE, Java or operating system upgrade, a new library, or a restart.
  5. For a channel that stands out, read its statistics, its threads and its daily volume.
  6. Report the most likely cause, the evidence for it, and what it would do about it.

The server resources, environment and database activity tools are for administrators. When one is refused, the model says so and works from the rest.

The model does not start, stop or restart any channel, and changes nothing, until you say so.