Skip to content

Commit d173249

Browse files
author
Arto Kinnunen
committed
Adjust GC cleanup threshold and traces
1 parent 26166d1 commit d173249

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/Core/ns_monitor.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ typedef enum {
4242
NS_MONITOR_STATE_GC_CRITICAL
4343
} ns_monitor_state_e;
4444

45-
#define HEAP_HIGH_WATERWARK (0.80) /* Heap usage HIGH threshold */
46-
#define HEAP_CRITICAL_WATERMARK (0.90) /* Heap usage CRITICAL threshold */
45+
#define HEAP_HIGH_WATERWARK (0.95) /* Heap usage HIGH threshold */
46+
#define HEAP_CRITICAL_WATERMARK (0.99) /* Heap usage CRITICAL threshold */
4747

4848
#define NS_MAINTENANCE_TIMER_INTERVAL 10 // Maintenance interval
4949

@@ -144,7 +144,6 @@ int ns_monitor_init(void)
144144
ns_monitor_ptr->ns_monitor_heap_gc_state = NS_MONITOR_STATE_HEAP_GC_IDLE;
145145
ns_monitor_ptr->ns_maintenance_timer = 0;
146146
ns_monitor_ptr->prev_heap_alloc_fail_cnt = 0;
147-
tr_debug("Monitor init high:%lu, critical:%lu total:%lu", (unsigned long)ns_monitor_ptr->heap_high_watermark, (unsigned long)ns_monitor_ptr->heap_critical_watermark, (unsigned long)ns_monitor_ptr->mem_stats->heap_sector_size);
148147
return 0;
149148
}
150149

0 commit comments

Comments
 (0)