Page 1 of 1
java problem
Posted: Sun Jul 12, 2009 1:05 pm
by qwerty13
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision
last:
L2JDP Revision
last:
Hello people.
I have a windows server 2003 sp2 (x32)
When i try to start game server i have this error
Starting L2J Game Server.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Server terminated abnormaly
server terminated
Login server starts normal. Help me please.
Re: java problem
Posted: Sun Jul 12, 2009 1:08 pm
by _DS_
Not enough available memory, check server startup scripts.
Re: java problem
Posted: Sun Jul 12, 2009 1:28 pm
by qwerty13
this is my startup batfile
@echo off
title Game Server Console
:start
echo Starting L2J Game Server.
echo.
REM -------------------------------------
REM Default parameters for a basic server.
java -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM 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.GameServer
REM -------------------------------------
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin Restart ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly
echo.
:end
echo.
echo server terminated
echo.
pause
2048 mb ram on machine. where problem?
Re: java problem
Posted: Sun Jul 12, 2009 1:32 pm
by Vapulabe
This means that you reserve 2Gb memory... But the system also needs memory for the Java runtime, the L2J program and the OS...
You need more memory or a lower value...
Re: java problem
Posted: Sun Jul 12, 2009 1:34 pm
by qwerty13
hhmmmm..me try set 1024 memory, server dont start..after 1024 im set 512 memory and all start fine.
i need more ram for computer?
Re: java problem
Posted: Sun Jul 12, 2009 2:01 pm
by Vapulabe
If you host both Login, game and DB servers on that computer, it could help... If you're under XP, try to get 3Gb. If you're running some Unix (linux, Solaris, *BSD, ...) or Windows 64bits, you may get 4Gb or more (Vista 32bits, I don't know)