Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Linux Tipps & HardeningSecurity: Mehrere Probleme in qt6-qtmultimedia (Fedora)(22.09.2026 um 07:29 Uhr)
Sichere ProgrammierungThe Linux process that even SIGKILL can't kill(22.09.2026 um 07:28 Uhr)
Sichere ProgrammierungNever Use a Display Name for Authorization: Secure Anonymous Editing(22.09.2026 um 07:28 Uhr)
Sichere ProgrammierungBefore You Watch Traffic, Define the Events Behind User Behavior(22.09.2026 um 07:35 Uhr)
Sichere ProgrammierungOAuth scopes are not your app's authorization model(22.09.2026 um 07:36 Uhr)
Sichere ProgrammierungWhy I stopped trusting model recall and built retrieval instead(22.09.2026 um 07:36 Uhr)
Linux Tipps & HardeningSecurity: Mehrere Probleme in qt6-qtmultimedia (Fedora)(22.09.2026 um 07:29 Uhr)
Sichere ProgrammierungThe Linux process that even SIGKILL can't kill(22.09.2026 um 07:28 Uhr)
Sichere ProgrammierungNever Use a Display Name for Authorization: Secure Anonymous Editing(22.09.2026 um 07:28 Uhr)
Sichere ProgrammierungBefore You Watch Traffic, Define the Events Behind User Behavior(22.09.2026 um 07:35 Uhr)
Sichere ProgrammierungOAuth scopes are not your app's authorization model(22.09.2026 um 07:36 Uhr)
Sichere ProgrammierungWhy I stopped trusting model recall and built retrieval instead(22.09.2026 um 07:36 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Why I Stopped Using PM2 and Built My Own Bun Process Manager

I loved PM2. Then I switched to Bun. Let me tell you a quick story. Six months ago, I migrated a handful of microservices from Node to Bun. The speed improvements were everything the benchmarks promised. Cold starts dropped dramatically.…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

I loved PM2. Then I switched to Bun.



Let me tell you a quick story. Six months ago, I migrated a handful of microservices from Node to Bun. The speed improvements were everything the benchmarks promised. Cold starts dropped dramatically. Memory usage shrank. I was thrilled.



Then I noticed something. My process manager, PM2, the tool I'd relied on for years, was now the slowest part of my stack. It was the thing consuming the most memory in some cases. The irony of running a Node-based supervisor over hyper-optimized Bun processes started to eat at me.



So I did what any reasonable developer does. I spent my weekends building a replacement.






The Breaking Point



The final straw wasn't one big thing. It was a cascade of small frustrations. PM2 would occasionally misreport memory usage for Bun processes. The TypeScript integration required extra flags and workarounds.



I had to maintain a separate ecosystem.json that felt increasingly disconnected from the rest of my Bun-native tooling. Every time I ran pm2 start, there was a visible delay as the Node-based daemon spun up, only to then launch a Bun process.



I started keeping a list of these friction points. After a few weeks, the list was long enough to justify a project.






What I Built



BM2 is a process manager that does one thing: manage long-running Bun processes without any Node dependency.



No daemon running on a separate runtime. No compatibility layers. Just Bun managing Bun.



The CLI is deliberately familiar:



npm i -g bm2

bm2 start server.ts --name api

bm2 restart api

bm2 logs api --lines 100

bm2 list



Under the hood, everything uses Bun's native APIs. Subprocess spawning uses Bun.spawn. File operations use Bun.write and Bun.file.



The internal state management uses Bun's built-in SQLite. No fs polyfills. No child_process from Node. Pure Bun.






The Results



After migrating my services from PM2 to BM2, here's what I noticed.

The process manager itself starts almost instantly.



There's no daemon boot delay. The memory overhead of the manager dropped significantly because it's not running a full Node runtime alongside Bun.



TypeScript files just work — no flags, no config, no transpilation. And the whole thing feels coherent in a way that's hard to describe. My entire stack is one runtime now, top to bottom.






Should You Switch?



If you're running Node services, PM2 is still excellent. Seriously. It's mature, battle-tested, and feature-rich.



But if you've committed to Bun, consider whether your toolchain has actually caught up with that decision. Your runtime is Bun. Your package manager is Bun. Your test runner is Bun. Why is your process manager still Node?



That's the question that led me to build BM2. Maybe it's the question you've been ignoring too.



Links

Repository: https://github.com/bun-bm2/bm2



Package: https://www.npmjs.com/package/bm2

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Why I Stopped Using PM2 and Built My Own Bun Process Manager

Thematisch verwandte Begriffe: Stopped, Using, Built, Process · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61647 | NotebookLM MCP is an MCP server and HTTP service for interacting with Go…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick