Hey guys. I'm running a modded LAN server from my computer, the tower that I am playing on. It's got 16GB ram with windows 7 OS and a good video card. I'm noticing though that sometimes the client will freeze and I have to ctrl + alt+ del a lot.
That is what I got the last time I froze. The first part is from the client console after I ended the javaw.exe process, the second part is from the minecraft server console at the time of the freeze.
You're running out of PermGen memory. It's a special reserved section of RAM used by Java to store compiled code, it's governed by a separate attribute and not affected by normal RAM settings.
Add this to JVM Attributes: -XX:MaxPermSize=256m
Alright, I'll edit my starter.bat for the server to try that out or should I just do that client side? also do I limit it to just 256m? or could I do 512 or 1G?
76 shouldn't be even close to "exceed 256MB of PermGen" insane. 200+ is probably not insane enough. I've seen one crazy 400+ mod modpack, that might be just big enough to require more PermGen.
Mostly it depends on how big the mods themselves are.
Some of them are fairly large. Its an extra dimensional magic pack that I'm assembling to use on a server we're about to launch, I'm just waiting on a few more permissions and for spawn to get built but it looks pretty sweet together. Do I need to do the setting client side or server side only? I did it for both my LAN server and my client, just wondering if I need to set up a launcher or something for this pack with that setting in the launcher or something for my players that play on the server so that they don't crash.
Size here is a bit relative. Only actual compiled Java code is stored in PermGen. Assets (sounds, textures, models, animations, ect) are not.
So you might have a seemingly huge 100MB+ mod that only makes a minuscule impact on PermGen since most of it's size is taken up by fancy mob models.
Okay that makes sense. So do I edit the JVM for the server .jar or do I need to edit the perm gen for the client? I want to make sure any players using my server don't run out of memory when they're connected to the server.
EDIT: It worked mate. Thanks for that.