Error memory startGameServer.bat

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Papoz
Posts: 27
Joined: Mon Jan 26, 2009 1:32 pm

Error memory startGameServer.bat

Post 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
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Error memory startGameServer.bat

Post 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
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Error memory startGameServer.bat

Post by _DS_ »

(telepat mode) - 32bit OS installed.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Papoz
Posts: 27
Joined: Mon Jan 26, 2009 1:32 pm

Re: Error memory startGameServer.bat

Post 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
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Error memory startGameServer.bat

Post by _DS_ »

Install 64-bit version of the OS and java and your problem will be solved.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Error memory startGameServer.bat

Post 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
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Papoz
Posts: 27
Joined: Mon Jan 26, 2009 1:32 pm

Re: Error memory startGameServer.bat

Post 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
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Error memory startGameServer.bat

Post by janiii »

is the OS 64-bit? is the installed java runtime 64-bit?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Papoz
Posts: 27
Joined: Mon Jan 26, 2009 1:32 pm

Re: Error memory startGameServer.bat

Post by Papoz »

No, the OS is 32 bit and the my processor don't support 64 bit-instructions
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

Re: Error memory startGameServer.bat

Post 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
jimmy2027
Posts: 1
Joined: Mon Jun 15, 2009 5:34 am

Re: Error memory startGameServer.bat

Post by jimmy2027 »

how do u edit memory size??

where is the xms thing??
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Error memory startGameServer.bat

Post by janiii »

jimmy2027 wrote:how do u edit memory size??

where is the xms thing??
startGameServer.bat
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Post Reply