-
-
Notifications
You must be signed in to change notification settings - Fork 187
Description
Description
We are experiencing a critical anomaly where CPU usage grows exponentially over time despite no increase in client load or traffic.
The issue affects an Hocuspocus server running on AWS ECS Fargate, where CPU and memory remain stable for hours, then suddenly accelerate upward until the container becomes saturated.
The anomaly persists indefinitely and is only resolved by manually redeploying / restarting the container, which immediately resets CPU and memory back to their normal baseline.
This strongly suggests an internal infinite loop, runaway task, or repeated command cycle inside the server (potentially related to Yjs updates, PubSub, or markdown parsing), which is not triggered by real user actions.
No spikes in connected clients, document updates, or network traffic are observed that would explain the CPU increase.
Screenshot, video, or GIF
Environment?
- operating system: AWS Fargate (node image)
- Hocuspocus version: 3.4.1
- TipTap version: 3.11.0
Additional Context
The server uses TipTap v3 with Markdown Manager v3 to perform conversions between
Y.XmlFragment <-> markdown string with these extensions:
export const DefaultTipTapExtensions: Extensions = [
StarterKit,
Mathematics,
Table,
TableCell,
TableHeader,
TableRow
];
This parsing step might be involved, but the CPU growth happens even during periods of extremely low usage and when no active conversions are expected.
The problem appears unrelated to load and looks instead like an internal loop or uncontrolled background task that keeps consuming CPU until the container is restarted.