Sign in to follow this  
Dban1

How to Customise PermGen?

Recommended Posts

 Hi, I've been trying ways to increase PermGen for my private modpack with close to 400 mods, but the thing is that I heard too much permgen is bad and too little will cause severe fps drops after 10 minutes of playing (which is what I'm experiencing now). So is there a way to customise the permgen and permgenmax to 256 and 512 from the launcher? 

 

This is what I typed in the Java Arguments box exactly

-XX:PermGen=256M -XX:PermGenMax=512M

No colons, case sensitive, space sensitive.

I'm not sure if this is working, but before I move on to another fix, is this the right way to edit permgen?

Edited by Dban1

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.

Sign in to follow this  

  • Similar Content

    • By BrightPrimates
      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!
    • By BestOftheworld
      Hello Technic Forum,
       
      This is my first time posting on a forum. But I'll get straight to my problem. I am making a custom modpack an a corresponding server with it. I noticed that my server was using quite a lot of RAM. But that is something I fixed with some Java Arguments. But that's not why I am here. My problem is when I go in a world, I experience some micro frame rate drops. And now there are few options:
       
      1. My computer isn't strong enough to run it.
      2. My Minecraft settings are set wrong.
      3. I don't have the latest version of Java.
       
      My answers would be:
       
      1. My computer is definitely strong enough to handle Minecraft. Because I run programs like Cinema4d, Adobe Photoshop and FTB Direwolf20 1.6.4 at the same time with out any problem.
      2. I tested with a lot of different settings, from Ultra high to Ultra low. And yes it improves the quality on Ultra Low, but it is still there.
      3. I have a the latest JDK version of Java: JDK 7u60 (also checked that there is only one version installed).
       
      So I think I will have to set some Java arguments containing permsize and such. On FTB that is easily fixed by going into options and set some Java arguments. But on Technic that is currently something else. I researched it on how to to it, but I haven't found some good documentation about it. So if you are able to point me to a good explanation on how to use the version.json file. Or you can explain to me how to set the java arguments into it. Then that would be awesome and great.
       
      Kind regards,
      BestOftheworld
       
      Ps. I would wanna ask you not to ask for the link of the modpack, I don't wanna be mean or anything. But it is hidden currently for a reason.