memory leaks?!
banjomarx opened this issue ยท 8 comments
so i dont really know what info you want for this since its not really a crash, but i finally got around to starting genning my world on forge (since terrain control doesnt work right with cauldron) and within minutes i had completely filled my 13 gigs of ram and maxed my cpu on my server (run out of a 80$ monthly box in canada) after having genned only a few thousand chunks (this might seem like a lot but its not) i was using http://minecraft.curseforge.com/mc-mods/221584-admin-commands-toolbox which is made by mobius to pregen my world. even if i restarted the server and loaded it back up the ram was instantly maxed even if i wasnt doing further gen... there have been 0 problems when we genned stuff without tc so i can only imagine its doing this.... i apologize if i seem to be blaming im just really upset that i spent so long on my gen and now we cant use it cuz of this...i would submit my files but there doesnt seem to be a way to do that on git.
even if i restarted the server and loaded it back up the ram was instantly maxed even if i wasnt doing further gen...
This confirms that it is not the terrain generator causing issues.
13 GB is huge. It's a many orders of magnitude larger than anything normal in TC. Even an uncompressed biome map for BiomeMode:FromImage, 10000x10000 pixels (that's 40kmx40km in Minecraft, much larger than anything you would need), 4 bytes for each pixel, would only take 400 000 000 B = 0.4 GB. If the map is 57000x57000 pixels, the 13GB would be explained...
Otherwise, I cannot explain an almost instant memory leak of 13GB, without any terrain generation going on, after a server restart.
Anyways, if it's not a FromImage map on the scale of a 1:1 map of Belgium, we need a Java heap dump.
im still not able to test my gen again, but i was looking at my files and realized that since im using some custom blocks i made myself the problem is probably with them... some of the stuff i gen emits light and/or redstone signals, assuming there were entire biomes made of these blocks do u think this could be it? (i realize as i say this how incredibly stupid i sound lol)
Do you want me to investigate this issue, or should I close this? If you want me to investigate, please send such a tree.
https://copy.com/FMDi613HVPp1AoDC
https://copy.com/NtuwvE3dpwIStB7n
those are my terrain control files and my custom stuff files (its a mod you can use to create your own tile entities, blocks, liquids, etc using java script. i havent had any other troubles with custom stuff so idk if its that mod or yours, or just my screwing up. to run my banjopackalpha you will also need
https://copy.com/tG6xVG0mXhywsG6n
and
https://copy.com/xLoJb4F7dEzmnKob
all of these go in your mod folder and must be unzipped if they are zipped
and i believe i used one mod for a block for my graveyard biome um its called ihl something i think its this one but im not sure
https://copy.com/7pKEXVw4oSOxcUHS
thank you so much for offering to investigate i really appreciate it.
in the banjopackalpha folder if you go to blocks, and then overworld trees you should see the trees im talking about. if you dont get the problems that i got we are using the Infinix pack which is at http://www.technicpack.net/modpack/details/radioactive-project-bionix
and if the ssp crashes (which it seems to do after a recent update of ours (long after this problem arose)) the server files are at http://infinixnetwork.enjin.com/forum/m/3999302/viewthread/11483552-infinix-server-files
also you may need to remove chromaticraft as i mentioned in a different post there was that crash with it and my Lower_World gen
the two gens listed in my files that i was using are Upper_World and Lower_World
i was using http://minecraft.curseforge.com/mc-mods/221584-admin-commands-toolbox
to pregen the world
Well, I'm not going to debug a whole mod pack, just Terrain Control. ๐
I will take a look this friday.
no i just meant that you might not be able to reproduce the bug without some of the mods in our pack, as it might be a problem with interaction between one of the mods and TC lol im not asking you to debug our pack XD
In isolation on a server without any other mods, each world seems to work fine.
I can see 8 worlds in the ZIP file you posted, two of them have a map from image. If those are all loaded at the same time, together with a ton of mods plus a lot of JavaScript files (JavaScript is not really optimized on the JVM, Java 8 brings some improvements), it will use a lot of memory.
But this is speculation. A Java Heap Dump will show you exactly what's causing it. I found a simple plugin that creates a Heap Dump file. You can open the resulting .hprof
file in JVisualVM (if you have the JDK installed you can just search for JVisualVM on your PC and it'll pop up) or you can send it to me and I'll send a screenshot back with some information.
I'm closing this, as it doesn't look like it's a bug in TC. If it turns out to be one, I'll reopen this.