BrightPrimates

How to: Fix Perm Gen Error on Multicraft Servers & Minecraft servers

Recommended Posts

MULTICRAFT FIX:

Alright,

So i used to own a hosting company and often people would ask "How do i fix the permgen error! Every time i use mods and bukkit plugins i get this error." Or something around that.

Well i was looking around today and there is hardly any website saying how to fix it on multicraft and ALLOT of people asking how to!

So here is how!

 

Firstly if your host says they cant do it tell them "Do your research, learn how to host a minecraft business." as it is very basic and you can even ask the devs of multicraft for the answer, which i have confirmed. I'm sorry if that seems a little mean thing to say but i have seen way to many people say that there support tickets don't get answered or they just say "Impossible."

 

How to:

So multicraft uses start up lines in the config of each jar.conf file. This can be easily edited by your host. For the hosts go to:

Root>Multicraft>Jar or just find where your multicraft file is. 

In the jar folder edit each jar.conf and where you see:

'Start=' remove all the text on that line! it may look something like this: 

 

command = "{JAVA}" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -Djline.terminal=jline.UnsupportedTerminal -jar "{JAR}" nogui

 

And now you removed the line it should look like this:

 

command =

 

Ok now you want to add the command line to fix the permgen error! Easy, becuase i have one ready for you:

 "{JAVA}" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -XX:PermSize=256m -XX:MaxPermSize=512m -Djline.terminal=jline.UnsupportedTerminal -jar "{JAR}" nogui

 

Just put that infront of command = and it should work! so lastly it should look like: 

 

command = "{JAVA}" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -XX:PermSize=256m -XX:MaxPermSize=512m -Djline.terminal=jline.UnsupportedTerminal -jar "{JAR}" nogui

 

Now for the users:

So once your selected hosting business has changed this for all there jar.conf files or just one of them make sure you select the correct one they changed, Most likely it will say it somewhere on there website if they have good support but if not just ask them in a help message. 

Once you know which one has this command line simply select that jar on the main page of multicraft! then rename your current jar (lets say mcpc+, but it can be anything) and rename the mcpc+ to the jar name in the ''jar file' box.

So for me i made a Bukkit Dev.jar.conf file and did the fix in there! so i renamed my BTeam.jar to BukkitDev.jar and selected teh bukkitdev.jar in the drop down menu of the servers main page!

 

Its very easy! So please comment down below if it worked, i will be checking all the time to help fix other mutlicraft errors and the permgen one! 

 

MINECRAFT FIX:

Although it is rare to get perm gen errors on a server without plugins it can happen (Some mods use perm gen apparently :? )

So if you have a server with a start.bat or where ever your start command is this is the code you should put in:

 

java -server -Xms1G -Xmx12G -XX:+UseG1GC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+UseLargePages -XX:TargetSurvivorRatio=90 -XX:MaxGCPauseMillis=200 -XX:MaxPermSize=256m -jar YOURJARNAME.jar

 

Remember to replace the "YOURJARNAME.jar" with your actual server jar e.g. BTeam.jar & Also remember to customize the ram amount (change the -xMx12G to the MAX ram you want to use!)

 

Thanks! Also i will be making a video on how to fix it soon if people want that. 

www.youtube.com/BrightPrimates

 

If you have any questions please ask them below! :)

Edited by BrightPrimates

Share this post


Link to post
Share on other sites

Just tested the non multicraft fix, seems fine so far... Also Not all permgen errors can be fixed as they could be due to plugins / mods being incompatible / malfunctioning according to mcprohosting staff...

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.


  • Similar Content

    • By epicminerrrrr
      I don't know what to do I have the right password and email. I also tried my minecraft account name but nothing works.
       

    • By Nyrab
      I've tried a lot of things that didn't worked, so i'm asking for help here in the community
       I'll send the console text tomorrow
    • By PlayerMrc
      https://paste.ubuntu.com/p/H3TGQKm6BX/
       
      this is my log I know you will say turn off your anti virus and firewall I did everything still doesn't work pls some1 help me discord is Ilikeanime#0073
    • By Mysteriaa
      Apologies, I know isn't regular Hexxit and this is my first time here, so I wasn't sure where to post.
      I've had this agitating issue with Hexxit Rewritten 2 as of late. I've had to delete three prior Survival worlds because of this bug and I don't know what to do. I want to load my world normally again and not lose so much progress over and over and over again because this is really pissing me off.
      Sometimes while playing on a new world, the game may crash. When this happens, it's basically a death sentence; I can no longer log into and play the world normally, as it says "Shutting down internal server" before crashing. I have reinstalled the mod pack and backed up the world, but it still crashes when I use it. I'm at a complete loss. I've also noticed that the crashing is caused by the corrupted world specifically; any other world I create will work just fine.
      I've saved the OpenEye crash report so you can take a look at it here, hopefully it helps: http://openeye.openmods.info/crashes/0d68ab46f19ce23404f2cdf6daf416db Note that "likely mods" etc. are blank.
      Is there any way to fix this, or am I just permanently stuck with yet ANOTHER broken world?
    • By Aztu
      This is the issue im getting, it just stops on an random part always on the ModelManager phase, not loading, this happens when loading random blocks, happened before on knightmetal block, and iron ladder from the twilight forest mod.
      Modpack link: https://www.technicpack.net/modpack/magic-tech-and-other-stuff.1386871