Solved FTB Ultimate server leaking memory slowly

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Niklason

New Member
Jul 29, 2019
10
0
0
I got a feed the beast server that runs with 2gb ram and i noticed that i had some weird of memory leakage.
When i start up the server it´s running with around 51% of the memory and that seems normal but when it´s up a longer time it´s taking more and more memory even with no persons online the server and after about 15h it looks like this

4c12s.jpg


with no persons on the server.

So is there anything i can do to fix this or will i be forced to make a restart on the server once a day to keep some memory available?

Yesterday i got something in the console window about memory leakage but since i restarted it i haven't gotten that message at this current restart thats been online for about 15h now.
 

Greedseed

New Member
Jul 29, 2019
1,107
0
0
I have noticed a small leak in a FTB Ultimate pack as well. First i kindoff pointed my finguere to MCPC+ and or a plugin i installed, but seems its not that, I dont find it a problem since it only klimbs about 50MB a hour max! so tell me if you have anything installed.

But unlike with you, i can run the server for 24hours and still be at 650Meg (launch value) but when at least 1 player gets on it it starts gooing up and up, so send up a list of what you have extra from th Ultimate pack, mcpc ? bukkitport ? plugins ?
 

Niklason

New Member
Jul 29, 2019
10
0
0
At the moment i have only Feed the beast installed with no plugins at all, im gonna install plugins when everything is starting to run smoothly.
 

Greedseed

New Member
Jul 29, 2019
1,107
0
0
Try this

Optional - these JVM flags may improve performance

  • Your start.bat/sh should look something like this (replace 8192 with the RAM the server should be allowed to use, in megabytes):
  • java -server -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:parallelGCThreads=6 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseCompressedOops -XX:+AggressiveOpts -Xmx8192M -jar server.jar nogui
  • Replace the "6" in -XX:parallelGCThreads=6 with the number of cores your server has.
This is from the awsome mod TickThreading, from our awesome nallar.
 

Niklason

New Member
Jul 29, 2019
10
0
0
Im not using any .bat to start the server.

Im hosting a server using http://www.envioushost.com/ and in the server settings there i just choose what jar to start it from so i cant really change anything with a batch file, i can only get acces to all the files from the server using a ftp.

I think the .bat is automatically set up by the company.


I managed to find the Leak message in the console if you guys think that may help.

20.04 14:01:38 [Server] SEVERE The world 533e2b14 (world) has leaked.
20.04 14:01:38 [Server] SEVERE The world 23d2e289 (world) has leaked.
20.04 14:01:38 [Server] SEVERE Detected leaking worlds in memory. There are 4 worlds that appear to be persisting. A mod is likely caching the world incorrectly
 

Niklason

New Member
Jul 29, 2019
10
0
0
Update: I downloaded mcpc+ to my feed the beast server and now it seems more stable than before and don't leak as much memory as before but to be sure i made a scheduled task to restart the server every 3h when no people is online on the server.
Right now i downloaded a plugin to use on my server called mcmmo and im right now config the files for it to support feed the beast. Right now i configured the tools so they work with the mod pack and if anyone else than me want to have mcmmo on their server maake sure you have mcpc+ installed on the server and send me a pm and i could say what version of mcmmo you should have installed(the most recent versions of it is broken if you want to use modded weapons and tools) and i could also send you my configuration files for it to work. At the moment i only have the tools configured and not the blocks but i will also do that sometime when i got time to do that.
 

Niklason

New Member
Jul 29, 2019
10
0
0
Im gonna mark this as solved because i kinda solved it by installing mcpc+ making it more stable but i also still got the restart on the server if no one is online to make sure i always have memory on it.