It is currently 25 Apr 2024, 06:37
   
Text Size

Java.lang.OutOfMemoryError: PermGen space error

by BetaSteward

Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins

Java.lang.OutOfMemoryError: PermGen space error

Postby Deathpossum » 26 May 2013, 02:36

Whenever I try to play a game, after about 30 seconds I get a Java.lang.OutOfMemoryError: PermGen error and have to quit.

I have tried updating Java and giving more memory in the StartWin7.bat file.

Running Windows 7 64bit
Version 1.0.2 of MAGE
Deathpossum
 
Posts: 3
Joined: 26 May 2013, 01:50
Has thanked: 0 time
Been thanked: 0 time

Re: Java.lang.OutOfMemoryError: PermGen space error

Postby Deathpossum » 26 May 2013, 04:45

Does anyone know where the preferences/settings are kept? I have deleted all my MAGE files but whenever I reinstall the settings stay.
Deathpossum
 
Posts: 3
Joined: 26 May 2013, 01:50
Has thanked: 0 time
Been thanked: 0 time

Re: Java.lang.OutOfMemoryError: PermGen space error

Postby LevelX » 26 May 2013, 05:17

Deathpossum wrote:Whenever I try to play a game, after about 30 seconds I get a Java.lang.OutOfMemoryError: PermGen error and have to quit.

I have tried updating Java and giving more memory in the StartWin7.bat file.

Running Windows 7 64bit
Version 1.0.2 of MAGE
Do you use 32bit JRE version?
Because 64bit JRE won't work (at least with Windows client).
Which program gives this error, Client or Server?
Do you use local or public server?
Best use dev version, it has got a lot of bugfixes already.
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times

Re: Java.lang.OutOfMemoryError: PermGen space error

Postby LevelX » 26 May 2013, 05:43

Deathpossum wrote:Does anyone know where the preferences/settings are kept? I have deleted all my MAGE files but whenever I reinstall the settings stay.
In the windows registry (use Regedit.exe to change)
HKEY_CURRENT_USER\Software\JavaSoft\Prefs\mage\...
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times

Re: Java.lang.OutOfMemoryError: PermGen space error

Postby Deathpossum » 26 May 2013, 06:23

LevelX wrote:
Deathpossum wrote:Whenever I try to play a game, after about 30 seconds I get a Java.lang.OutOfMemoryError: PermGen error and have to quit.

I have tried updating Java and giving more memory in the StartWin7.bat file.

Running Windows 7 64bit
Version 1.0.2 of MAGE
Do you use 32bit JRE version?
Because 64bit JRE won't work (at least with Windows client).
Which program gives this error, Client or Server?
Do you use local or public server?
Best use dev version, it has got a lot of bugfixes already.
Alright, downloading dev version and JRE x86 right now. I did have x64 installed, it has been working until I downloaded 1.0.2.

I was running the client and on a public server.
Deathpossum
 
Posts: 3
Joined: 26 May 2013, 01:50
Has thanked: 0 time
Been thanked: 0 time

Re: Java.lang.OutOfMemoryError: PermGen space error

Postby bat » 30 Jun 2013, 11:00

When I previously got this error, i edited the startclient.bat file IN THE mage-client FOLDER and added

-XX:+CMSPermGenSweepingEnabled

after -XX:+CMSClassUnloadingEnabled

Moreover, I edited the allocated memory values like this
-Xms512M -Xmx2048M -XX:MaxPermSize=384M

... but i do not know if it helped the soft to run smoother :D
bat
 
Posts: 7
Joined: 23 Mar 2013, 19:39
Has thanked: 0 time
Been thanked: 0 time


Return to XMage

Who is online

Users browsing this forum: No registered users and 135 guests


Who is online

In total there are 135 users online :: 0 registered, 0 hidden and 135 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 135 guests

Login Form