Commit 3c298fb
committed
Add RSS memory limit to external watchdog thread
The Contabo node was OOM-killed at 11.3 GB RSS (12 GB VPS) despite
having rss_limit_mb=4000 in config — the existing RSS check only ran
inside the share processing loop and missed memory growth from mempool,
UTXO cache, and DOGE block storage.
The external watchdog thread now checks RSS every 10 seconds and
aborts cleanly before the kernel OOM killer sends uncatchable SIGKILL.
This produces a crash log and (with ulimit -c unlimited) a core dump.1 parent d3585bd commit 3c298fb
1 file changed
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6577 | 6577 | | |
6578 | 6578 | | |
6579 | 6579 | | |
6580 | | - | |
| 6580 | + | |
| 6581 | + | |
6581 | 6582 | | |
6582 | 6583 | | |
6583 | 6584 | | |
6584 | 6585 | | |
6585 | 6586 | | |
| 6587 | + | |
| 6588 | + | |
| 6589 | + | |
| 6590 | + | |
| 6591 | + | |
| 6592 | + | |
| 6593 | + | |
| 6594 | + | |
| 6595 | + | |
| 6596 | + | |
| 6597 | + | |
| 6598 | + | |
| 6599 | + | |
| 6600 | + | |
| 6601 | + | |
| 6602 | + | |
| 6603 | + | |
| 6604 | + | |
| 6605 | + | |
| 6606 | + | |
6586 | 6607 | | |
6587 | 6608 | | |
6588 | 6609 | | |
6589 | 6610 | | |
| 6611 | + | |
| 6612 | + | |
| 6613 | + | |
| 6614 | + | |
| 6615 | + | |
| 6616 | + | |
| 6617 | + | |
| 6618 | + | |
| 6619 | + | |
| 6620 | + | |
| 6621 | + | |
| 6622 | + | |
| 6623 | + | |
| 6624 | + | |
| 6625 | + | |
| 6626 | + | |
| 6627 | + | |
| 6628 | + | |
6590 | 6629 | | |
6591 | 6630 | | |
6592 | 6631 | | |
| |||
0 commit comments