06-01-2011, 08:54 PM
(06-01-2011, 09:57 AM)BinarySlave Wrote: Exception in thread "user_main" java.lang.OutOfMemoryError: PermGen spaceIs the code cache being allocated inside the permanent generation area (in which case MaxPermSize should be larger than ReservedCodeCacheSize)? or it is allocated additionally (in which case both sizes are independent of each other). I was not able to find clear information about this. Could you point some info on that?
Can be easily fixed by changing the following in your "start.bat":
-XX:MaxPermSize=64m TO -XX:MaxPermSize=128m
I've tried 96m first, but the PermGen error occured again after playing another game for a while and let it idle while gone doing "daily business".
I really don't know why gid15 came up with the latest setting of -XX:MaxPermSize=64m, because it does not make much sense when -XX:ReservedCodeCacheSize is set to 64m, too. (sorry gid15).
It seems that most developers are using a MaxPermSize larger than ReservedCodeCacheSize... (often twice as large)
Thanks!