Change heap size warning to 80% utilization
This commit is contained in:
		
							parent
							
								
									f90ecd168d
								
							
						
					
					
						commit
						76b2b2fa5f
					
				@ -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));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user