theprolo Posted January 27, 2013 Posted January 27, 2013 I've been crashing a lot on a custom modpack, and I've found the problem. According to a solution here, I need to change the MaxPermSize. Unfortunately, that solution is for MultiMC, so I have no idea where to look for the "JVM Arguments" option. If there's a better solution, I'd happily use it. For anyone interested, the error is "[iNFO] [sTDERR] Exception in thread "Client read thread" java.lang.OutOfMemoryError: PermGen space". (I'm not using the bug boards because it's not really a bug, just me asking how to implement a fix. That, and since it's a custom modpack, there would be nowhere to put it)
gotyaoi Posted January 27, 2013 Posted January 27, 2013 Out of curiosity, which pack is this, and have you added anything to it? Also, java version. Actually, the whole bug report form might not go amiss, even if we aren't in a bug forum.
theprolo Posted January 28, 2013 Author Posted January 28, 2013 My Java version is 7u11, the modpack is Andrews (Technic Battles Redux server modpack), and I don't get error messages, just Minecraft freezing and closing. I had to go into the log to find it that. I'd post the entire log, but I can't get on my computer at the moment. I just picked out the only error message I could find, which happened to be the last line.
andrewdonshik Posted January 28, 2013 Posted January 28, 2013 My Java version is 7u11, the modpack is Andrews (Technic Battles Redux server modpack), and I don't get error messages, just Minecraft freezing and closing. I had to go into the log to find it that. I'd post the entire log, but I can't get on my computer at the moment. I just picked out the only error message I could find, which happened to be the last line. Happened to me too. The fix, when implemented into MultiMC, works.
Lothos Posted January 28, 2013 Posted January 28, 2013 How much "garbage" do you have in the loaded chunks? This is where the problem with that preset heap size comes from.
theprolo Posted January 28, 2013 Author Posted January 28, 2013 I'm pretty sure it's not that technical yet, although I suspect that Ars Magica may be the cause. The stuff it does might be less visible, and in my personal modpack which has no Ars Magica, I have never experienced this.
andrewdonshik Posted January 28, 2013 Posted January 28, 2013 I'm pretty sure it's not that technical yet, although I suspect that Ars Magica may be the cause. The stuff it does might be less visible, and in my personal modpack which has no Ars Magica, I have never experienced this. Yea. Ars magica is causing issues everywhere.. I really don't want to remove it, though.
theprolo Posted January 28, 2013 Author Posted January 28, 2013 It's a nice mod. It's also pretty unstable. Perhaps it would be worth removing it until the stability issues are resolved. I think most of the server would agree it's me when I say I'd rather be able to play without crashing every five minutes than have Ars Magica, awesome as it is. Perhaps you should just call a vote with a poll on the TBR forums.
andrewdonshik Posted January 28, 2013 Posted January 28, 2013 It's a nice mod. It's also pretty unstable. Perhaps it would be worth removing it until the stability issues are resolved. I think most of the server would agree it's me when I say I'd rather be able to play without crashing every five minutes than have Ars Magica, awesome as it is. Perhaps you should just call a vote with a poll on the TBR forums. But.. But.. My SSP world. :c
theprolo Posted January 28, 2013 Author Posted January 28, 2013 Remove it server side. I did that on my server after lag issues forced it out of our modpack. It can still be on your client if you want, just install it and play.
theprolo Posted January 28, 2013 Author Posted January 28, 2013 It's the only thing I can think of which could be causing it. Is there a way to set the default Java PermGenSpace?
Lothos Posted January 28, 2013 Posted January 28, 2013 It's the only thing I can think of which could be causing it. Is there a way to set the default Java PermGenSpace? i have not looked, but i do know if you used a bat file before to preset variables, the launcher relanches java anyway. Perhaps manually editing the options.txt of the launcher might let you add a line item for java in there if there is an argument string for setting it.
gotyaoi Posted January 28, 2013 Posted January 28, 2013 If it's Ars Magica that causes it, I'd say getting rid of it is the better option than increasing the PermGen. PermGen is the part of the heap dedicated to the "permanent generation", objects that will never be garbage collected. These are things like user classes. It's set to 64MB by default. and this is fine for the most part. You usually see it cropping up in projects with massive codebases. Basically, if you search for that error, most of the hits are regarding tomcat or something similar. That's because Tomcat has 4,874,929 lines of code, at last count. Now, assuming that the mod isn't that big, the other option is a memory leak. Yes, in java. It is possible to keep static references to objects that get garbage collected. The static reference stays around, taking up PermGen space, and more keep accumulating. If that's the case here, doubling the PermGen space might help for a while, but it might still fill up eventually.
GreenWolf13 Posted January 28, 2013 Posted January 28, 2013 pro tip: always wrap your world' date=' entity and tileentity objects in your lookup map in a weak reference. Otherwise you will leak memory.[/quote'] ( ) Want to bet that Mithion forgot to do this and all his entities are leaking memory?
theprolo Posted January 28, 2013 Author Posted January 28, 2013 Well, there are a hell of a lot of Ars Magica mobs near my base. It's like a battle of good and evil at night when Dark and Light mages fight.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now