BG-Software-LLC / SuperiorSkyblock2

Optimized, feature packed Skyblock core.
https://bg-software.com/superiorskyblock/
GNU General Public License v3.0
170 stars 145 forks source link

Out of Memory with big maps #2277

Open AffonsoGames opened 1 day ago

AffonsoGames commented 1 day ago

Minecraft's Version

1.8.8

Plugin's Version

Latest stable build 2024.3 31/08/2024 10:34:21

Describe the bug

I created a map for the members' islands, it weighs about 4mb, when loading the server starts to pull all the available memory, and it doesn't lower the memory in any way, if I restart it lowers it and rises again after starting loading the large map

To Reproduce

Install the SSB2 plugin and create a large, medium-heavy schematic (4mb) and start the server

Additional Information

I removed the 4MB map and the server returned to using the normal amount of gigs

after placing the map: image

Before placing the map: image

OmerBenGera commented 1 day ago

Send me the schematic please

AffonsoGames commented 1 day ago

link download of schematic map: https://mega.nz/file/xPVilQQb#tgrAtWz2woVV0oRLetDu3IgIq4qFzRdIX0pfOqI1WQk

Tests (renamed schematic) Starting loading: https://prnt.sc/nfz0X0ZYcq_I Loading finished: https://prnt.sc/RwCTCgnBEWgC

OmerBenGera commented 12 hours ago

I made some major improvements to the way schematics are saved in memory. I will not deep into details, but your schematic requires around 150MB in ram, and in latest dev build it only requires 4MB in ram.

Let me know how it's doing on your server.

AffonsoGames commented 6 hours ago

It doesn't seem to work, I installed the Dev Builds version #356 11/07/2024 16:23:58 and continues to take a LOT of memory from the server

after loading image

berfore loading image

OmerBenGera commented 5 hours ago

It doesn't seem to work, I installed the Dev Builds version #356 11/07/2024 16:23:58 and continues to take a LOT of memory from the server

after loading image

berfore loading image

How many large schematics do you have? Can you take a spark dumpheap and send it to me here?

AffonsoGames commented 5 hours ago

Only this one I envied you. Nothing else.

AffonsoGames commented 5 hours ago

image

Spark: https://

OmerBenGera commented 4 hours ago

I need a heapdump. You can generate one by running "/spark heapdump" - do this as soon as the server starts. Then, send me the generated file - I opened a ticket for you on discord so you can send me the file there.