mirror of
https://github.com/mempool/mempool.git
synced 2025-10-09 21:52:44 +02:00
Change heap size warning to 80% utilization
This commit is contained in:
@@ -269,7 +269,7 @@ class Server {
|
||||
const now = Date.now();
|
||||
const stats = v8.getHeapStatistics();
|
||||
this.maxHeapSize = Math.max(stats.used_heap_size, this.maxHeapSize);
|
||||
const warnThreshold = 0.95 * stats.heap_size_limit;
|
||||
const warnThreshold = 0.8 * stats.heap_size_limit;
|
||||
|
||||
const byteUnits = getBytesUnit(Math.max(this.maxHeapSize, stats.heap_size_limit));
|
||||
|
||||
|
Reference in New Issue
Block a user