From: Greg Burri <greg.burri@gmail.com>
Date: Thu, 22 Sep 2022 09:49:42 +0000 (+0200)
Subject: Memory measurement.
X-Git-Url: https://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=2c9020100073cd02199847263f7cdde44a8fe78a;p=minecraft_web.git

Memory measurement.
It seems that the memory has to be still divided by 3.
---

diff --git a/backend/src/minecraft_controller.rs b/backend/src/minecraft_controller.rs
index 690f3d9..23673e9 100644
--- a/backend/src/minecraft_controller.rs
+++ b/backend/src/minecraft_controller.rs
@@ -145,8 +145,7 @@ pub fn get_minecraft_executable_information(world_path: &str, backup_path: &str,
 
         Some(
             MinecraftExe {
-                // 'memory' was divided by 3 but it not necessary any more (the Java garbage collector ZGC reports three times more the real memory usage: https://stackoverflow.com/a/62934057/212675).
-                memory: process.memory(),
+                memory: process.memory(), // Because the Java garbage collector ZGC reports three times more the real memory usage: https://stackoverflow.com/a/62934057/212675
                 load_average_5min: system.load_average().five / system.cpus().len() as f64 * 100.,
                 uptime: std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_secs() - process.start_time(),
                 world_size,