lagdoctor
README.md
# lagdoctor
[](LICENSE) [](#) [](#mcp-mode)
Instant zero-dependency lag & crash log profiler for **Minecraft (Paper, Purpur, Folia, Spark)**, **FiveM FXServer**, **Rust**, **Palworld**, and **Project Zomboid**. Separates culprit plugins/mods from oversold VPS `%st` CPU steal, JVM GC pauses, and slow `fsync` storage.

## Quickstart (Zero Install)
```bash
# Profile latest.log (tails the last 10 MB safely without OOM)
npx lagdoctor logs/latest.log
# Output copy-paste Markdown summary for Discord / Reddit / GitHub
npx lagdoctor logs/latest.log --share
# Calculate container-safe Java 21 Generational ZGC flags leaving 25% OS headroom
npx lagdoctor --flags --ram 8
```
## Features
- **Multi-Engine Detection**: Automatically classifies Minecraft (`Paper`/`Purpur`/`Folia`/`Spark`), FiveM (`FXServer`/`txAdmin`), Rust, Palworld, Project Zomboid, ARK, Valheim, and CS2 logs.
- **Culprit Isolation**: Extracts misbehaving plugins, event handlers, `[script:...]` FXServer resources, and non-vanilla Java packages alongside blame attribution (`host-infrastructure` vs `jvm-runtime` vs `plugin-or-mod`).
- **Security Checks**: Catches `${jndi:...}` exploit probes and exposed RCON (`25575`) / txAdmin (`40120`) `0.0.0.0` bindings.
## MCP Mode
```json
{ "mcpServers": { "lagdoctor": { "command": "npx", "args": ["lagdoctor@1.1.0", "--mcp"] } } }
```
Also available zero-signup in your browser at [serversareup.com/tools/game-log-analyzer](https://serversareup.com/tools/game-log-analyzer). Moving a starter or active 5+ player game community off an oversold host? Apply on [serversareup.com/free-game-servers](https://serversareup.com/free-game-servers).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues