Sophisticated Backpacks

Sophisticated Backpacks

89M Downloads

Memory leak?

Vitaaliyy opened this issue ยท 4 comments

commented

Describe the bug
Seems like there is a memory leak somewhere. My ram usage slowly builds up with the mod until it crashes with error 137. Without the mod my server seems to stay at around 4-5gb of ram. I would love to keep using the mod, do you know a solution for this? Or is this mod well known for incompatibilities with other mods perhaps?

For info, my server has 8gb of ram which should be more than enough. Tried with 10gb as well and same thing it builds up 'til it crashes.
Tried the command /sbp removeNonPlayer false, didn't change much either.

To Reproduce
Steps to reproduce the behavior:

  1. Start server with mod
  2. RAM slowly going up til it crashes with error 137.

Expected behavior
Ram shouldn't build up. Not crash the server

Screenshots
If applicable, add screenshots to help explain your problem.

Versions
sophisticatedbackpacks-1.18.2-3.18.45.818 ;

sophisticatedcore-1.18.2-0.5.50.250

Minecraft version 1.18.2.

Forge version: 40.2.0

commented

This doesn't seem to be happening to others as it is the first time I am hearing about a memory leak. I assume you have other mods in the pack, mind sharing what mods those are? There are some that actually change SB code and I can't vouch for what they are doing.

commented

Aquaculture 2 (by Shadow)
Emotecraft (Forge) (by KosmX)
Citadel (by sbom_xela)
Supplementaries (by MehVahdJukaar)
Incapacitated (by CartoonishVillain)
Macaw's Lights and Lamps (by sketch_macaw)
Sophisticated Backpacks (by P3pp3rF1y)
AppleSkin (by squeek502)
Mouse Tweaks (by YaLTeR)
Macaw's Fences and Walls (by sketch_macaw)
Untamed Wilds (by raytrace82)
JEITweaker (by Jaredlll08)
Vanishmod (by MasterPerki)
Iron Chests (by ProgWML6)
GeckoLib (by Gecko)
Macaw's Furniture (by sketch_macaw)
Paragliders (by Tictim)
Dark Utilities (by DarkhaxDev)
Konkrete [Forge] (by Keksuccino)
Pig Pen Cipher (by DarkhaxDev)
Polymorph (Forge) (by TheIllusiveC4)
Cloth Config API (Fabric/Forge) (by shedaniel)
Macaw's Trapdoors (by sketch_macaw)
OpenBlocks Elevator (by vsngarcia)
Runelic (by DarkhaxDev)
Modern Life (by Darimus)
Balm (Forge Edition) (by BlayTheNinth)
Item Highlighter [Forge] (by Grend_G)
Waystones (by BlayTheNinth)
Macaw's Bridges (by sketch_macaw)
Jade ๐Ÿ” (by Snownee_)
Corail Tombstone (by Corail_31)
Skin Swapper (by cobrasrock)
Alcocraft: Beer & Stuff (by hadrus91)
Sophisticated Core (by P3pp3rF1y)
spark (by Iucko)
Comforts (Fabric/Forge/Quilt) (by TheIllusiveC4)
JourneyMap (by techbrew)
Macaw's Roofs (by sketch_macaw)
Simple Voice Chat (by henkelmax)
Moonlight Lib (by MehVahdJukaar)
Just Enough Items (JEI) (by mezz)
Croptopia (by thethonk)
playerAnimator (by KosmX)
Iceberg [Forge] (by Grend_G)
Biomes O' Plenty (by Forstride)
Macaw's Windows (by sketch_macaw)
CraftTweaker (by Jaredlll08)
XercaMod (by xerca0)
Alex's Mobs (by sbom_xela)
Macaw's Doors (by sketch_macaw)
Creeper Overhaul (by joosh_7889)
Architectury API (Fabric/Forge) (by shedaniel)
Bookshelf (by DarkhaxDev)
Camera Mod (by henkelmax)
TerraBlender (Forge) (by TheAdubbz)
Dynamic View[Forge] (by someaddon)

  • Ai improvements

I only have around 60 mods

commented

I have profiled this using different ways and can't see anything that would be leaking so I will need more info here.
What you could potentially do is use JFR to get a recording of what's happening specifically with your server
jcmd [PID] JFR.start filename=inflight-recording.jfr dumponexit=true. just need to replace [PID] with the process id of your minecraft instance running on the server. Then once you shut down the server there will be the jfr recording there that I can take a look at and see what's being allocated. The recording will have quite a few mb so would need to be put on some file sharing service.

commented

closing given no follow up