Skip to content
PRISM
Lag reports and leak watch

Lag reports and leak watch

Overview

When the server lags, Prism writes down why, while it happens.

Lag reports

A lag starts when the slowest region stays under 15 TPS (lag.tps) for 10 seconds (lag.seconds). Prism then writes a report: the slowest regions and what they hold, memory and processor at that moment, and a spark profile of the next 30 seconds (lag.profile) with its link. Reports go to the console, to logs/prism-lag/, to the dashboard and to Discord with a webhook; /prism lag lists the latest. One report per 15 minutes at most, so a long lag makes one report.

Leak watch

Every 10 minutes Prism counts each plugin's threads and listeners, and the memory left after garbage collection. When one keeps growing three checks in a row, it says so: what a leak looks like. /prism leaks shows the counts.

Health

/prism health and the dashboard's Overview give the TPS, the tick times of the median and the slowest region, memory, processor and disk. With metrics.enabled, the same figures are served to Prometheus at /metrics.