Jump to content

Why is my server using so much RAM?


s3tupw1zard

Recommended Posts

Hello,

my server is currently using more than 12GB of RAM.

Does anyone know whats the problem? Here's my Modlist:

 

XP Tome (by bl4ckscor3)

Just Enough Resources (JER) (by way2muchnoise)

Serene Seasons (by TheAdubbz)

Create (by simibubi)

Macaw's Roofs (by sketch_macaw)

Simple Storage Network (by Lothrazar)

Sophisticated Core (by P3pp3rF1y)

Rubidium (by Asek3)

Botania (by Vazkii)

FTB Library (Forge) (by FTB)

spark (by Iucko)

FTB Teams (Forge) (by FTB)

Ex Nihilo: Sequentia (by NovaMachina)

CoFH Core (by TeamCoFH)

Sophisticated Backpacks (by P3pp3rF1y)

Recipes Library (by GeheimagentNr1)

Nether's Delight (by lumpazl)

Repurposed Structures (Forge) (by telepathicgrunt)

Waystones (by BlayTheNinth)

Ding (by ohaiiChun)

Placebo (by Shadows_of_Fire)

Flywheel (by jozufozu)

Alive | Dynamic Ecosystems & Block Decay (by Ghostcrafter090)

Reliquary Reincarnations (by P3pp3rF1y)

ItemPhysic Full (by CreativeMD)

MmmMmmMmmMmm (Target Dummy) (by MehVahdJukaar)

Login Protection[Forge/Fabric] (by someaddon)

Bookshelf (by DarkhaxDev)

Ex Nihilo: Sequentia - Tinkers Addon (by NovaMachina)

Forbidden and Arcanus (by cesar_zorak)

Trash Cans (by SuperMartijn642)

Game Stages (by DarkhaxDev)

OpenBlocks Elevator (by vsngarcia)

Structurize (by H3lay)

FTB Ranks (Forge) (by FTB)

Client Tweaks (by BlayTheNinth)

YUNG's API (Forge) (by YUNGNICKYOUNG)

FTB Chunks (Forge) (by FTB)

Corpse (by henkelmax)

Radium Reforged (by Asek3)

Sound Physics Remastered (by henkelmax)

ExtraStorage (by 3divad99)

Refined Storage (by raoulvdberge)

JEI Integration (by SnowShock35)

CraftTweaker GUI (by TarantelOfficial)

Curios API (Forge) (by TheIllusiveC4)

TerraBlender (Forge) (by TheAdubbz)

CraftTweaker (by Jaredlll08)

When Dungeons Arise - Forge! (by Aureljz)

Macaw's Bridges (by sketch_macaw)

Archer's Paradox (by TeamCoFH)

Farmer's Delight (by vectorwing)

Quark (by Vazkii)

YUNG's Bridges (Forge) (by YUNGNICKYOUNG)

Industrial Foregoing (by Buuz135)

Multi-Piston (by H3lay)

AutoRegLib (by Vazkii)

Architectury API (Fabric/Forge) (by shedaniel)

Mantle (by mDiyo)

Crash Utilities (by Darkere)

MrCrayfish's Furniture Mod (by MrCrayfish)

Valhelsia Core (by ValhelsiaTeam)

Biomes O' Plenty (by Forstride)

Ex Naturae (by MelanX)

Blood Magic (by WayofTime)

YUNG's Better Witch Huts (Forge) (by YUNGNICKYOUNG)

YUNG's Better Mineshafts (Forge) (by YUNGNICKYOUNG)

Refined Storage: Requestify (by Buuz135)

Enchantment Descriptions (by DarkhaxDev)

FTB Quests (Forge) (by FTB)

Radon (by Asek3)

Lootr (Forge) (by Noobanidus)

LibX (by noeppinoeppi)

Moonlight Lib (by MehVahdJukaar)

Just Enough Effect Descriptions (JEED) (by MehVahdJukaar)

Ars Nouveau (by baileyholl2)

AppleSkin (by squeek502)

Fast Leaf Decay (by olafskiii)

Apotheosis (by Shadows_of_Fire)

Iron Furnaces [FORGE] (by XenoMustache)

Just Enough Items (JEI) (by mezz)

Balm (Forge Edition) (by BlayTheNinth)

The Twilight Forest (by Benimatic)

Iron Chests (by ProgWML6)

Chunk-Pregenerator (by Speiger)

Dynamical Compass (by GeheimagentNr1)

Entity Culling Fabric/Forge (by tr9zw)

Macaw's Windows (by sketch_macaw)

Create Crafts & Additions (by MRHminer)

SuperMartijn642's Core Lib (by SuperMartijn642)

Patchouli (by Vazkii)

MineColonies (by H3lay)

Aquaculture 2 (by Shadowclaimer)

YUNG's Extras (Forge) (by YUNGNICKYOUNG)

YUNG's Better Dungeons (Forge) (by YUNGNICKYOUNG)

Portal Gates (by NorthWestTreesGaming)

Domum Ornamentum (by OrionOnline)

Macaw's Doors (by sketch_macaw)

Dynamic Trees - Biomes O' Plenty (by cadaverous_queen)

Mystical Agriculture (by BlakeBr0)

Just Enough Professions (JEP) (by Mrbysco)

Supplementaries (by MehVahdJukaar)

Better Compatibility Checker (by Gaz_)

Valhelsia Structures (by ValhelsiaTeam)

Decorative Blocks (by stohun)

CreativeCore (by CreativeMD)

YUNG's Better Strongholds (Forge) (by YUNGNICKYOUNG)

Akashic Tome (by Vazkii)

Refined Storage Addons (by raoulvdberge)

Titanium (by Buuz135)

Mouse Tweaks (by YaLTeR)

YUNG's Better Desert Temples (Forge) (by YUNGNICKYOUNG)

Storage Drawers (by Texelsaur)

Chisels & Bits - For Forge (by AlgorithmX2)

Dynamic Trees (by ferreusveritas)

Clumps (by Jaredlll08)

Charm of Undying (Forge) (by TheIllusiveC4)

GeckoLib (by ThanosGecko)

Xaero's Minimap (by xaero96)

Cucumber Library (by BlakeBr0)

Citadel (by sbom_xela)

JourneyMap (by techbrew)

BlockUI (by H3lay)

Macaw's Fences and Walls (by sketch_macaw)

Valhelsia Tweaks (by ValhelsiaTeam)

NetherPortalFix (by BlayTheNinth)

Feature NBT Deadlock Be Gone (by telepathicgrunt)

Goblin Traders (by MrCrayfish)

Item Filters (by LatvianModder)

JEITweaker (by Jaredlll08)

Oculus (by Asek3)

Tinkers Construct (by mDiyo)

 

 

There are some client mods that arent on the server.

 

Thanks

Link to comment
Share on other sites

Could you please give us a bit more context, like where is the server running (PC or hast) how many player are playing on the server? How long did you play on the server?

Does the panel always say the server use 12 GB ram, is the value constant or does the value jump under certain conditions and if yes whats the min and max value?

3 minutes ago, s3tupw1zard said:

I'm bought the panel from wisp.gg to test it out a bit.

And there the panel says that the server is using more than 12GB.

Using Pterodactyl Panel it was the same.

Unfortunately, this means nothing to me.

In general i would say the value is not correct or something is wrong with the server, please post also the debug.log from the server.

Link to comment
Share on other sites

You can use the spark mod to get basic information about what is using heap memory.

https://www.curseforge.com/minecraft/mc-mods/spark

https://spark.lucko.me/docs/Command-Usage#spark-heapsummary

But unless you know how to read the output it might not mean much to you.

 

The more complicated https://spark.lucko.me/docs/Command-Usage#spark-heapdump

needs a tool that can analyse hprof files. e.g. https://www.eclipse.org/mat/

These can often do more complicated stuff like looking for suspected memory leaks.

You might find the learning curve for this kind of tool daunting if you have never done something like this before and don't have a working knowledge of java. 🙂

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Thanks for your help.

The problem is that the server starts, but joining is not possible. After running for a few minutes it crashes due to an out of memory error. The server isn't running on 12GB the whole time. It starts on few hundred megabytes and climbs up to 12 GB or more depending how much I allocate. The minimum RAM is set to 128 megabytes.

Here's a link to the debug.log:

https://icedrive.net/s/kkf6t9TtCaZ5W556X9vB5k3atizi

 

Could dynmap and dynmapblockscan be a part of the problem?

 

Thanks

 

P.S. i downloaded the mods onto my Computer and there persists the same.

Edited by s3tupw1zard
Link to comment
Share on other sites

Quote

[12Aug2022 16:54:37.448] [Server thread/INFO] [Observable/]: Registered thread Server thread
[12Aug2022 16:54:39.636] [Server thread/INFO] [Dynmap/]: [Dynmap] Processing mod support from mod rsrequestify version null
 

The above shows dynmap starting doing its processing

Quote

[12Aug2022 16:58:28.981] [Server thread/INFO] [Dynmap/]: [Dynmap] mcwbridges[2.0.3] textures enabled
[12Aug2022 16:58:30.983] [Netty Epoll Server IO #5/INFO] [net.minecraftforge.server.ServerLifecycleHooks/SERVERHOOKS]: Disconnecting Player (server is still starting): Server is still starting! Please wait before reconnecting.
 

Its still doing stuff 4 minutes later at the end of your log, blocking starting the server and not allowing players to connect.

 

There's also a tonne of errors like this:

Quote

[12Aug2022 16:58:23.408] [Server thread/FATAL] [Dynmap/]: [Dynmap] Invalid modellist patch for box 12.00/0.00/0.00:16.00/8.00/4.00 side SOUTH at line 611
[12Aug2022 16:58:23.408] [Server thread/FATAL] [Dynmap/]: [Dynmap] Invalid modellist patch for box 0.00/0.00/12.00:4.00/8.00/16.00 side NORTH at line 611
[12Aug2022 16:58:23.408] [Server thread/FATAL] [Dynmap/]: [Dynmap] Invalid modellist patch for box 0.00/0.00/0.00:4.00/8.00/4.00 side EAST at line 611
[12Aug2022 16:58:23.408] [Server thread/FATAL] [Dynmap/]: [Dynmap] Invalid modellist patch for box 12.00/0.00/12.00:16.00/8.00/16.00 side WEST at line 611
[12Aug2022 16:58:23.415] [Server thread/FATAL] [Dynmap/]: [Dynmap] Invalid modellist patch for box 0.00/16.00/7.90:16.00/16.07/8.10 side TOP at line 645
[12Aug2022 16:58:23.415] [Server thread/FATAL] [Dynmap/]: [Dynmap] Invalid modellist patch for box 0.00/16.00/7.90:16.00/16.07/8.10 side TOP at line 646
 

You need to speak to the mod author.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

  • 1 year later...

Despite its age, I'd like to share my thoughts on RAM usage for Minecraft servers. The amount of RAM needed varies depending on the version of the Minecraft server software you're using, such as Spigot 1.12 or Spigot 1.13. Older versions like 1.12 require a minimum of 2GB of RAM, while version 1.13 requires at least 4GB to ensure smooth server operation. Additionally, each plugin typically uses around 20-50MB of RAM, and MODs may require 50-70MB, depending on their size and complexity in the script. It's recommended to use a server RAM calculator to determine the appropriate amount of RAM needed for your specific setup.

Edited by MinecraftGuider
Link to comment
Share on other sites

12 hours ago, MinecraftGuider said:

Despite its age, I'd like to share my thoughts on RAM usage for Minecraft servers. The amount of RAM needed varies depending on the version of the Minecraft server software you're using, such as Spigot 1.12 or Spigot 1.13. Older versions like 1.12 require a minimum of 2GB of RAM, while version 1.13 requires at least 4GB to ensure smooth server operation. Additionally, each plugin typically uses around 20-50MB of RAM, and MODs may require 50-70MB, depending on their size and complexity in the script. It's recommended to use a server RAM calculator to determine the appropriate amount of RAM needed for your specific setup.

Spigot plugins and Forge mods are entirely different things. According to that tool, a modpack with 200 mods with no players online needs about 24GB of RAM to run, which is waaay out of the ballpark of reality. Worst case scenario you get bad performance allocating that much RAM to the game, best case you waste money and resources that could've been better spent on CPU.

Vanilla 1.20 does not need "at least 4GB" to run well. It can run fine on half that. Please don't bump a year old post with an advert for something poorly researched.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.