Electron memory-leak monitor: continuous memory profiling в production

## Что это Сегодня Electron memory leaks ловятся reactive («приложение крашится после 8 часов»). Vision: continuous memory profiler в production с автоматическим reporting. Что входит: - Background-задача каждые 5 мин: process.memoryUsage() snapshot + WebContents totals - Threshold-alerts: «heap вырос > 1.5x baseline за 1ч» → automatic crash-dump - Per-feature memory budget: Rox Design embed ≤ 250MB, sessions store ≤ 100MB - Memory leak detector: heapsnapshot diff раз в день в dev-mode - Opt-in production-telemetry для аномалий (anonymized) - Cleanup orchestrator coverage: extending на все long-lived listeners - UI: dev-tools panel «memory dashboard» в settings/diagnostics ## Зачем «ROX медленный после долгой сессии» — типичный complaint, который сейчас diagnosable только manually. Continuous monitor catches это до того, как пользователь напишет ticket. Long-term: budget enforcement через CI (regression если PR ходит heap baseline). ## Источники вдохновения - [exelban/stats](https://github.com/exelban/stats) - [OneUptime/oneuptime](https://github.com/OneUptime/oneuptime) - [pixlcore/xyops](https://github.com/pixlcore/xyops) ## 🔗 Linear - [PZD-361](https://linear.app/kuhjie/issue/PZD-361) — backing ticket

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
♾️

Bugs, Fixes, Improvements

Date

About 19 hours ago

Author

agi

Subscribe to post

Get notified by email when there are changes.