Process Safety

2files
2figures
2min read
Sheet 31 of 47 · Server

Filesprocesses.json · config.json

Fileprocesses.jsonFileconfig.jsonEvery process the tool starts stops with it. Server, clients and commands run in a Windows job object, a cleanup on the next start catches what still got away, and a ghost scanner finds leftovers from earlier runs.

How it is guarded

GuardWhat it does
Job objectEvery process the tool starts runs in a Windows job object with kill-on-close, and the tool joins it too. If the tool dies, even from Task Manager, Windows ends the whole tree
Leftover cleanupThe tool records each process's PID and start time in processes.json, and cleans up on the next start. Both must match, so a recycled PID is never killed
Graceful stopClosing the window or GET /shutdown sends stop to the server, waits up to 60 seconds (serverStopTimeoutSeconds), then kills the tree. Ctrl+C or a console close only gets 8 seconds before the kill

Fileconfig.jsonThe job object can be turned on or off in config.json.

Processes: server, clients and commands, each with its RAM tree.
The Processes page listing the server, clients and commands the tool started, each with its RAM tree

Ghost scanner

The scanner lists every java and node process with RAM, uptime and status.

  • A process counts as a ghost only if this tool started it in an earlier session, or if it is a test server, client or bot script whose parent is gone.
  • Gradle daemons show as busy or idle. Only ones idle for more than 10 minutes can be stopped, after a confirmation.
  • IDEs, Maven, MCP servers and anything JetBrains started are never touched.

Server > Ghosts starts with one number and one key: Clean up stops every ghost, after a confirmation that lists them with their memory. Stop idle Gradle daemons stops only daemons idle for 10 minutes or more. Show all processes opens the full list with each command line, where Kill selected stops the picked rows.

Ghosts: leftovers of earlier sessions, found and stopped.
The Ghosts page reading 0 ghosts, nothing was left behind, with Nothing to clean up, Stop idle Gradle daemons and Show all 21 processes

After a crash

Fileprocesses.jsonFileconfig.jsonThe next start compares processes.json with what runs. When processes of the last session are still there, the window asks: Kill them or Leave running. survivorPolicy in config.json (Settings > Safety > Leftovers from a crash) answers for you: ask, kill or ignore. A --headless start stops them unless the policy is ignore.

Loading the index

Enter openUp Down moveEsc close