We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2c529c commit a9de5c7Copy full SHA for a9de5c7
src/hotspot/os/bsd/os_bsd.cpp
@@ -2540,7 +2540,9 @@ void os::jfr_report_memory_info() {
2540
// Send the RSS JFR event
2541
EventResidentSetSize event;
2542
event.set_size(info.resident_size);
2543
- event.set_peak(info.resident_size_max);
+ // We've seen that resident_size_max sometimes trails resident_size with one page.
2544
+ // Make sure we always report size <= peak
2545
+ event.set_peak(MAX2(info.resident_size_max, info.resident_size));
2546
event.commit();
2547
} else {
2548
// Log a warning
0 commit comments