start system monitor earlier in validator so we get memory stats at startup (#21372)

This commit is contained in:
Jeff Washington (jwash) 2021-11-22 14:37:17 -06:00 committed by GitHub
parent c4d68063c7
commit 87831e7f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -425,6 +425,11 @@ impl Validator {
accounts_update_notifier.is_some()
);
let system_monitor_service = Some(SystemMonitorService::new(
Arc::clone(&exit),
!config.no_os_network_stats_reporting,
));
let (
genesis_config,
bank_forks,
@ -466,10 +471,6 @@ impl Validator {
abort();
});
}
let system_monitor_service = Some(SystemMonitorService::new(
Arc::clone(&exit),
!config.no_os_network_stats_reporting,
));
let leader_schedule_cache = Arc::new(leader_schedule_cache);
let bank = bank_forks.working_bank();