Skip to content

[macOS] Possible Memory Leak #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Proton0 opened this issue Apr 17, 2025 · 1 comment
Open

[macOS] Possible Memory Leak #603

Proton0 opened this issue Apr 17, 2025 · 1 comment

Comments

@Proton0
Copy link

Proton0 commented Apr 17, 2025

Describe the bug

When I first launch the game, performance is excellent with high FPS. However, over time, the game begins to stutter progressively, eventually dropping to around 30 FPS and sometimes even down to 25 FPS in my case.

I'm running the game on a MacBook with 8GB of RAM, and I've allocated 4GB of memory to the game. I suspect the frequent stuttering (approximately every 3 seconds) may be related to the garbage collector. While monitoring the F3 debug screen, I noticed that memory usage increases by around 100MB every second, followed by a brief stutter, after which memory usage drops significantly (back to ~30%).

Additionally, when launching the game, there's a graphical artifact during the fade-in animation. I'm not sure whether this is specific to macOS or a general rendering issue.

Here are memory usage snapshots over time:

3 minutes of gameplay:

Image

5 minutes of gameplay:

Image

10 minutes of gameplay:

Image

Peak memory usage (~13GB):

Image

This mod is absolutely incredible, and I really hope this issue can be addressed. I do have other mods installed, but I tested the game with them disabled, and the memory leak still persists.

EDIT: Im using the Temurin 21 JRE with macOS 15.4 (24E248)

Steps to reproduce

  1. Launch the game with VulkanMod
  2. Wait 5-10 minutes

Log files

[18:36:26] [main/INFO]: Loading Minecraft 1.21.4 with Fabric Loader 0.16.13
[18:36:27] [main/WARN]: Warnings were found!

  • Mod 'StarHUD' (starhud) 1.2.0 recommends any version of immediatelyfast, which is missing!
    • You should install any version of immediatelyfast for the optimal experience.
      [18:36:27] [main/INFO]: Loading 107 mods:
    • animated-logo 1.3
    • cloth-config 17.0.144
      -- cloth-basic-math 0.6.1
    • clumps 22.0.0.1
    • dynamic_fps 3.9.3
      -- net_lostluma_battery 1.3.0
    • entityculling 1.7.4
    • fabric-api 0.119.2+1.21.4
      |-- fabric-api-base 0.4.54+b47eab6b04
      |-- fabric-api-lookup-api-v1 1.6.86+b1caf1e904
      |-- fabric-biome-api-v1 15.0.6+b1c29d8e04
      |-- fabric-block-api-v1 1.0.31+7feeb73304
      |-- fabric-block-view-api-v2 1.0.20+9c49cc8c04
      |-- fabric-blockrenderlayer-v1 2.0.8+7feeb73304
      |-- fabric-client-tags-api-v1 1.1.29+20ea1e2304
      |-- fabric-command-api-v1 1.2.62+f71b366f04
      |-- fabric-command-api-v2 2.2.41+e496eb1504
      |-- fabric-commands-v0 0.2.79+df3654b304
      |-- fabric-content-registries-v0 9.1.19+25d1a67604
      |-- fabric-convention-tags-v1 2.1.20+7f945d5b04
      |-- fabric-convention-tags-v2 2.14.1+1edcd29104
      |-- fabric-crash-report-info-v1 0.3.6+7feeb73304
      |-- fabric-data-attachment-api-v1 1.6.2+e99da0f704
      |-- fabric-data-generation-api-v1 22.3.1+0f4e5f5504
      |-- fabric-dimensions-v1 4.0.10+7feeb73304
      |-- fabric-entity-events-v1 2.0.15+62245bef04
      |-- fabric-events-interaction-v0 4.0.4+a4eebcf004
      |-- fabric-game-rule-api-v1 1.0.63+7d48d43904
      |-- fabric-item-api-v1 11.3.0+ee91fa1f04
      |-- fabric-item-group-api-v1 4.2.2+fcb9601404
      |-- fabric-key-binding-api-v1 1.0.57+7d48d43904
      |-- fabric-keybindings-v0 0.2.55+df3654b304
      |-- fabric-lifecycle-events-v1 2.5.4+bf2a60eb04
      |-- fabric-loot-api-v2 3.0.38+3f89f5a504
      |-- fabric-loot-api-v3 1.0.26+203e6b2304
      |-- fabric-message-api-v1 6.0.25+7feeb73304
      |-- fabric-model-loading-api-v1 4.3.0+ae23723504
      |-- fabric-networking-api-v1 4.4.0+db5e668204
      |-- fabric-object-builder-api-v1 18.0.14+38b0d59804
      |-- fabric-particles-v1 4.0.14+7feeb73304
      |-- fabric-recipe-api-v1 8.1.1+640e77ae04
      |-- fabric-registry-sync-v0 6.1.11+4a9c1ece04
      |-- fabric-renderer-api-v1 5.0.3+50f0feb204
      |-- fabric-renderer-indigo 2.0.3+50f0feb204
      |-- fabric-rendering-data-attachment-v1 0.3.58+73761d2e04
      |-- fabric-rendering-fluids-v1 3.1.19+7feeb73304
      |-- fabric-rendering-v1 10.2.1+0d31b09f04
      |-- fabric-resource-conditions-api-v1 5.0.13+203e6b2304
      |-- fabric-resource-loader-v0 3.1.1+360374ac04
      |-- fabric-screen-api-v1 2.0.38+7feeb73304
      |-- fabric-screen-handler-api-v1 1.3.118+7feeb73304
      |-- fabric-sound-api-v1 1.0.32+7feeb73304
      |-- fabric-tag-api-v1 1.0.7+7d48d43904
      |-- fabric-transfer-api-v1 5.4.9+efa825c904
      -- fabric-transitive-access-wideners-v1 6.3.2+56e78b9b04
    • fabric-language-kotlin 1.13.2+kotlin.2.1.20
      |-- org_jetbrains_kotlin_kotlin-reflect 2.1.20
      |-- org_jetbrains_kotlin_kotlin-stdlib 2.1.20
      |-- org_jetbrains_kotlin_kotlin-stdlib-jdk7 2.1.20
      |-- org_jetbrains_kotlin_kotlin-stdlib-jdk8 2.1.20
      |-- org_jetbrains_kotlinx_atomicfu-jvm 0.27.0
      |-- org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm 1.10.1
      |-- org_jetbrains_kotlinx_kotlinx-coroutines-jdk8 1.10.1
      |-- org_jetbrains_kotlinx_kotlinx-datetime-jvm 0.6.2
      |-- org_jetbrains_kotlinx_kotlinx-io-bytestring-jvm 0.7.0
      |-- org_jetbrains_kotlinx_kotlinx-io-core-jvm 0.7.0
      |-- org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm 1.8.0
      |-- org_jetbrains_kotlinx_kotlinx-serialization-core-jvm 1.8.0
      -- org_jetbrains_kotlinx_kotlinx-serialization-json-jvm 1.8.0
    • fabricloader 0.16.13
      -- mixinextras 0.4.1
    • java 21
    • lambdynlights 4.1.0+1.21.4
      |-- lambdynlights_api 4.1.0+1.21.4
      |-- pride 1.3.0+1.21.2
      -- spruceui 6.2.2+1.21.4
    • minecraft 1.21.4
    • modelfix 1.21.3-1.10
    • modmenu 13.0.3
    • mousetweaks 2.27
    • placeholder-api 2.5.2+1.21.3
    • starhud 1.2.0
    • vulkanmod 0.5.4
      |-- org_lwjgl_lwjgl-shaderc 3.3.3
      |-- org_lwjgl_lwjgl-shaderc_natives-linux 3.3.3
      |-- org_lwjgl_lwjgl-shaderc_natives-macos 3.3.3
      |-- org_lwjgl_lwjgl-shaderc_natives-macos-arm64 3.3.3
      |-- org_lwjgl_lwjgl-shaderc_natives-windows 3.3.3
      |-- org_lwjgl_lwjgl-vma 3.3.3
      |-- org_lwjgl_lwjgl-vma_natives-linux 3.3.3
      |-- org_lwjgl_lwjgl-vma_natives-macos 3.3.3
      |-- org_lwjgl_lwjgl-vma_natives-macos-arm64 3.3.3
      |-- org_lwjgl_lwjgl-vma_natives-windows 3.3.3
      |-- org_lwjgl_lwjgl-vulkan 3.3.3
      |-- org_lwjgl_lwjgl-vulkan_natives-macos 3.3.3
      -- org_lwjgl_lwjgl-vulkan_natives-macos-arm64 3.3.3
    • yet_another_config_lib_v3 3.6.6+1.21.4-fabric
      |-- com_twelvemonkeys_common_common-image 3.12.0
      |-- com_twelvemonkeys_common_common-io 3.12.0
      |-- com_twelvemonkeys_common_common-lang 3.12.0
      |-- com_twelvemonkeys_imageio_imageio-core 3.12.0
      |-- com_twelvemonkeys_imageio_imageio-metadata 3.12.0
      |-- com_twelvemonkeys_imageio_imageio-webp 3.12.0
      |-- org_quiltmc_parsers_gson 0.2.1
      -- org_quiltmc_parsers_json 0.2.1
    • zoomify 2.14.2+1.21.3
      -- com_akuleshov7_ktoml-core-jvm 0.5.2
      [18:36:27] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.7 Source=file:/Users/proton0/Library/Application%20Support/PrismLauncher/libraries/net/fabricmc/sponge-mixin/0.15.4+mixin.0.8.7/sponge-mixin-0.15.4+mixin.0.8.7.jar Service=Knot/Fabric Env=CLIENT
      [18:36:27] [main/INFO]: Compatibility level set to JAVA_21
      [18:36:28] [main/WARN]: Error loading class: org/jetbrains/annotations/ApiStatus$Internal (java.lang.ClassNotFoundException: org/jetbrains/annotations/ApiStatus$Internal)
      [18:36:28] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.1).
      [18:36:29] [Datafixer Bootstrap/INFO]: 243 Datafixer optimizations took 414 milliseconds
      [18:36:36] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
      [18:36:36] [Render thread/INFO]: Setting user: Proton0
      [18:36:36] [Render thread/INFO]: Initializing mod
      [18:36:36] [Render thread/INFO]: Dynamic FPS 3.9.3 active on Fabric!
      [18:36:37] [Render thread/INFO]: [Indigo] Different rendering plugin detected; not applying Indigo.
      [18:36:37] [Render thread/INFO]: [LambDynLights] Initializing LambDynamicLights...
      [18:36:37] [Render thread/INFO]: [LambDynLights] Configuration loaded.
      [18:36:37] [Render thread/INFO]: Loaded config modelfix-client.json
      [18:36:37] [Render thread/INFO]: Checking mod updates...
      [18:36:37] [Render thread/INFO]: [STDOUT]: [Mouse Tweaks] Main.initialize()
      [18:36:37] [Render thread/INFO]: [STDOUT]: [Mouse Tweaks] Initialized.
      [18:36:37] [Render thread/INFO]: == VulkanMod ==
      [18:36:37] [Render thread/INFO]: Selecting Platform: MACOS
      [18:36:37] [Render thread/INFO]: GLFW: 3.4.0 Cocoa NSGL Null EGL OSMesa monotonic dynamic
      [18:36:38] [Render thread/INFO]: Deserializing YACLConfig from '/Users/proton0/Library/Application Support/PrismLauncher/instances/1.21.4 survival local/minecraft/config/yacl.json5'
      [18:36:38] [Render thread/INFO]: Backend library: LWJGL version 3.3.3-snapshot
      [18:36:39] [Render thread/INFO]: Reloading ResourceManager: vanilla, fabric, animated-logo, cloth-config, dynamic_fps, entityculling, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-convention-tags-v2, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-game-rule-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-language-kotlin, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-loot-api-v3, fabric-message-api-v1, fabric-model-loading-api-v1, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-rendering-data-attachment-v1, fabric-rendering-fluids-v1, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-screen-api-v1, fabric-screen-handler-api-v1, fabric-sound-api-v1, fabric-tag-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader, lambdynlights, lambdynlights_api, modmenu, placeholder-api, pride, spruceui, starhud, vulkanmod, yet_another_config_lib_v3, zoomify, file/Better Lanterns v1.2 - 1.21.5.zip, file/MandalasGUI_Dakmode_Vanilla1.20.4.zip, file/cubic-sun-moon-v1.8.1a.zip
      [18:36:40] [Worker-Main-1/ERROR]: Invalid path in mod resource-pack vulkanmod: vulkanmod:shaders/basic/terrain_earlyZ/terrain_earlyZ.json, ignoring
      [18:36:40] [Worker-Main-1/ERROR]: Invalid path in mod resource-pack vulkanmod: vulkanmod:shaders/basic/terrain_earlyZ/terrain_earlyZ.fsh, ignoring
      [18:36:40] [Worker-Main-4/INFO]: Found unifont_all_no_pua-16.0.01.hex, loading
      [18:36:40] [Worker-Main-4/INFO]: Found unifont_jp_patch-16.0.01.hex, loading
      2025-04-17 18:36:42.987 java[6058:87329] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.
      [18:36:43] [Worker-Main-3/WARN]: Missing textures in model minecraft:soul_lantern#inventory:
      minecraft:textures/atlas/blocks.png:minecraft:block/
      [18:36:43] [Worker-Main-3/WARN]: Missing textures in model minecraft:lantern#inventory:
      minecraft:textures/atlas/blocks.png:minecraft:block/
      [18:36:44] [Render thread/ERROR]: Shader rendertype_cutout_mipped is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_entity_cutout is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_cutout is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_energy_swirl is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_eyes is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_entity_no_outline is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_entity_smooth_cutout is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_armor_translucent is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_entity_translucent_emissive is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_entity_cutout_no_cull_z_offset is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_entity_translucent is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_armor_cutout_no_cull is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_entity_cutout_no_cull is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_tripwire is using external defines that are unsupported.
      [18:36:44] [Render thread/ERROR]: Shader rendertype_breeze_wind is using external defines that are unsupported.
      [18:36:44] [Render thread/INFO]: OpenAL initialized on device MacBook Air Speakers
      [18:36:44] [Render thread/INFO]: Sound engine started
      [18:36:45] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/signs.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 2048x1024x4 minecraft:textures/atlas/armor_trims.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 128x64x4 minecraft:textures/atlas/decorated_pot.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 64x64x0 minecraft:textures/atlas/map_decorations.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/particles.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/paintings.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas
      [18:36:45] [Render thread/INFO]: Created: 1024x512x0 minecraft:textures/atlas/gui.png-atlas
      [18:36:45] [Render thread/INFO]: Successfully loaded image 'zoomify:textures/demo/third-person-hud.webp'
      [18:36:45] [Render thread/INFO]: Successfully loaded image 'zoomify:textures/demo/third-person-view.webp'
      [18:36:45] [Render thread/INFO]: Successfully loaded image 'zoomify:textures/demo/zoom-hand.webp'
      [18:36:45] [Render thread/INFO]: Successfully loaded image 'zoomify:textures/demo/zoom-world.webp'
      [18:37:04] [Render thread/INFO]: Loaded 1370 recipes
      [18:37:04] [Render thread/INFO]: Loaded 1481 advancements
      [18:37:13] [Render thread/INFO]: Applied 0 biome modifications to 0 of 65 new biomes in 1.010 ms
      [18:37:13] [Server thread/INFO]: Starting integrated minecraft server version 1.21.4
      [18:37:13] [Server thread/INFO]: Generating keypair
      [18:37:18] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
      [18:37:18] [Render thread/INFO]: Preparing spawn area: 2%
      [18:37:19] [Render thread/INFO]: Preparing spawn area: 2%
      [18:37:19] [Render thread/INFO]: Preparing spawn area: 2%
      [18:37:20] [Render thread/INFO]: Preparing spawn area: 2%
      [18:37:20] [Render thread/INFO]: Preparing spawn area: 18%
      [18:37:21] [Render thread/INFO]: Preparing spawn area: 18%
      [18:37:21] [Render thread/INFO]: Preparing spawn area: 20%
      [18:37:22] [Render thread/INFO]: Preparing spawn area: 51%
      [18:37:22] [Render thread/INFO]: Preparing spawn area: 51%
      [18:37:23] [Server thread/INFO]: Changing view distance to 32, from 10
      [18:37:23] [Server thread/INFO]: Changing simulation distance to 12, from 0
      [18:37:23] [Render thread/INFO]: Time elapsed: 4692 ms
      [18:37:23] [Server thread/INFO]: Proton0[local:E:81f455f6] logged in with entity id 51 at (16.5, 64.0, -6.5)
      [18:37:23] [Server thread/INFO]: Proton0 joined the game
      [18:37:24] [Render thread/INFO]: Loaded 2 advancements
      [18:37:25] [Server thread/INFO]: Saving and pausing game...
      [18:37:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:37:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:37:25] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:37:52] [Server thread/INFO]: Saving and pausing game...
      [18:37:52] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:37:52] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:37:52] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:38:33] [Server thread/INFO]: Saving and pausing game...
      [18:38:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:38:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:38:33] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:38:42] [Server thread/INFO]: Saving and pausing game...
      [18:38:42] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:38:42] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:38:42] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:39:24] [Server thread/INFO]: Saving and pausing game...
      [18:39:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:39:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:39:24] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:39:32] [Server thread/INFO]: Saving and pausing game...
      [18:39:32] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:39:32] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:39:32] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:40:57] [Render thread/INFO]: Loaded 12 advancements
      [18:40:57] [Render thread/WARN]: Unable to play empty soundEvent: minecraft:entity.salmon.ambient
      [18:41:28] [Server thread/INFO]: Saving and pausing game...
      [18:41:28] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:41:28] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:41:28] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:41:29] [Server thread/INFO]: Saving and pausing game...
      [18:41:29] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:41:29] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:41:29] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:41:31] [Render thread/INFO]: Using default channel type
      [18:41:31] [Render thread/INFO]: Started serving on 50587
      [18:41:31] [LanServerPinger -4 Device connection lost error on Nvidia #1/WARN]: LanServerPinger: No route to host
      [18:41:32] [Render thread/INFO]: [System] [CHAT] Local game hosted on port [50587]
      [18:41:37] [Server thread/INFO]: [Proton0: Set own game mode to Creative Mode]
      [18:41:37] [Render thread/INFO]: [System] [CHAT] Set own game mode to Creative Mode
      [18:41:46] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2054ms or 41 ticks behind
      [18:43:00] [Render thread/INFO]: Reallocating AutoIndexBuffer from 65536 to 131072
      [18:43:09] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2008ms or 40 ticks behind
      [18:43:27] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2327ms or 46 ticks behind
      [18:43:44] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2825ms or 56 ticks behind
      [18:44:24] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2074ms or 41 ticks behind
      [18:44:44] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2110ms or 42 ticks behind
      [18:48:16] [Server thread/INFO]: Proton0 lost connection: Disconnected
      [18:48:16] [Server thread/INFO]: Proton0 left the game
      [18:48:16] [Server thread/INFO]: Stopping singleplayer server as player logged out
      [18:48:16] [Server thread/INFO]: Stopping server
      [18:48:16] [Server thread/INFO]: Saving players
      [18:48:16] [Server thread/INFO]: Saving worlds
      [18:48:18] [CullThread/INFO]: [STDOUT]: Shutting down culling task!
      [18:48:18] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:overworld
      [18:48:19] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_nether
      [18:48:19] [Server thread/INFO]: Saving chunks for level 'ServerLevel[testing world]'/minecraft:the_end
      [18:48:19] [Server thread/INFO]: ThreadedAnvilChunkStorage (testing world): All chunks are saved
      [18:48:19] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
      [18:48:19] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
      [18:48:19] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
      [18:48:19] [Render thread/INFO]: Stopping!
      Process exited with code 0.
@Proton0
Copy link
Author

Proton0 commented Apr 19, 2025

Image

Here is the graph of the process's memory usage, the massive spike in Physical Footprint is when the game's window gets created, the fact that physical footprint doesn't even go down means there is a memory leak

EDIT: im using new jvm arguments which seems to reduce the memory leak so it no longer reaches 13gb of ram
-XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant