java problem

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
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

java problem

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

Re: java problem

Post by _DS_ »

Not enough available memory, check server startup scripts.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: java problem

Post 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?
Last edited by qwerty13 on Sun Jul 12, 2009 1:32 pm, edited 1 time in total.
Vapulabe
Posts: 271
Joined: Wed Mar 19, 2008 10:16 am

Re: java problem

Post by Vapulabe »

Code: Select all

java -Xmx2048m
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...
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: java problem

Post 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?
Vapulabe
Posts: 271
Joined: Wed Mar 19, 2008 10:16 am

Re: java problem

Post 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)
Post Reply