Memory measurement.
authorGreg Burri <greg.burri@gmail.com>
Thu, 22 Sep 2022 09:49:42 +0000 (11:49 +0200)
committerGreg Burri <greg.burri@gmail.com>
Thu, 22 Sep 2022 09:49:42 +0000 (11:49 +0200)
It seems that the memory has to be still divided by 3.

backend/src/minecraft_controller.rs

index 690f3d9..23673e9 100644 (file)
@@ -145,8 +145,7 @@ pub fn get_minecraft_executable_information(world_path: &str, backup_path: &str,
 \r
         Some(\r
             MinecraftExe {\r
-                // '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).\r
-                memory: process.memory(),\r
+                memory: process.memory(), // Because the Java garbage collector ZGC reports three times more the real memory usage: https://stackoverflow.com/a/62934057/212675\r
                 load_average_5min: system.load_average().five / system.cpus().len() as f64 * 100.,\r
                 uptime: std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_secs() - process.start_time(),\r
                 world_size,\r