Page 1 of 1
Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 7:31 am
by Papoz
Hi guys,
i have a machine with 8gb ram but when i set in the startGameServer.bat 1024 or 1536mb the console give me this error code
Code: Select all
Starting L2J Game Server. Error occurred during initialization of VMCould not reserve enough space for object heapCould not create the Java virtual machine. Server terminated abnormaly
Only with 512mb the gameserver run correctly.
Help me pliz Q_Q
P.S: sry for my very bad english
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 7:38 am
by janiii
paste here the line from startGameServer.bat which you changed, so that we can see which parameter you changed.
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 7:42 am
by _DS_
(telepat mode) - 32bit OS installed.
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 7:44 am
by Papoz
With this i have error code
Code: Select all
@echo offtitle Game Server Console:startecho Starting L2J Game Server.echo.REM -------------------------------------REM Default parameters for a basic server.java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServerREMREM If you have a big server and lots of memory, you could experiment for example withREM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOptsREM If you are having troubles on server shutdown (saving data),REM add this to startup paramethers: -Djava.util.logging.manager=net.sf.l2j.L2LogManager. Example:REM java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServerREM -------------------------------------if ERRORLEVEL 2 goto restartif ERRORLEVEL 1 goto errorgoto end:restartecho.echo Admin Restart ...echo.goto start:errorecho.echo Server terminated abnormalyecho.:endecho.echo server terminatedecho.pause
But with this no
Code: Select all
@echo offtitle Game Server Console:startecho Starting L2J Game Server.echo.REM -------------------------------------REM Default parameters for a basic server.java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx512m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServerREMREM If you have a big server and lots of memory, you could experiment for example withREM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOptsREM If you are having troubles on server shutdown (saving data),REM add this to startup paramethers: -Djava.util.logging.manager=net.sf.l2j.L2LogManager. Example:REM java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServerREM -------------------------------------if ERRORLEVEL 2 goto restartif ERRORLEVEL 1 goto errorgoto end:restartecho.echo Admin Restart ...echo.goto start:errorecho.echo Server terminated abnormalyecho.:endecho.echo server terminatedecho.pause
How i can set more memory? Q_Q
The OS installed is:
Windows Server 2003 Enterprise Edition SP2
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 7:51 am
by _DS_
Install 64-bit version of the OS and java and your problem will be solved.
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 8:36 am
by janiii
and when you run the server with default settings? xmx and xms set to 1024?
Code: Select all
java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 8:40 am
by Papoz
Error memory code

I have Xeon Prestonia and it not support 64-bit instruction Q_Q
The Windows Server 2003 Enterprise SP2 support 32gb ram, but the jvm at 32-bit?
Help me pliz Q_Q
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 9:23 am
by janiii
is the OS 64-bit? is the installed java runtime 64-bit?
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 10:00 am
by Papoz
No, the OS is 32 bit and the my processor don't support 64 bit-instructions
Re: Error memory startGameServer.bat
Posted: Tue Aug 04, 2009 12:17 pm
by lishawj
Papoz wrote:No, the OS is 32 bit and the my processor don't support 64 bit-instructions
And that is where your issue start, you can not specified more memory sectors to be used on a 32 bit Java environment. You can not run 64 bit Java on a 32 bit Windows OS. To learn more about Windows Server 2003 and it's memory limitation, please read the link below.
http://msdn.microsoft.com/en-us/library ... S.85).aspx
Re: Error memory startGameServer.bat
Posted: Tue Aug 11, 2009 4:48 am
by jimmy2027
how do u edit memory size??
where is the xms thing??
Re: Error memory startGameServer.bat
Posted: Tue Aug 11, 2009 7:35 am
by janiii
jimmy2027 wrote:how do u edit memory size??
where is the xms thing??
startGameServer.bat