Jump to content
  • 0

[Guide]GameServerError


Question

Posted

If you dont have mutch memory on your pc and you wanna run your server there you might have this problem:

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

 

Πιέστε ένα πλήκτρο για συνέχεια. . . ##Sr For Greek... This means Push a button to continue...

 

------------------------------------------------------------------------------------------------------------------------------------

To fix this you must open your StartGameServer.Bat

Then you see this :

##This is an example from another server...##

@echo off

title L2J

:start

echo Starting L2J Game Server.

echo.

REM -------------------------------------

REM Default parameters for a basic server.

java -Xmx1048m -cp bsf.jar;bsh-2.0b4.jar;commons-logging-1.1.jar;mmocore.jar;javolution.jar;c3p0-0.9.1.2.jar;mysql-connector-java-5.0.7-bin.jar;l2jserver.jar;jython.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 -Xmn1048m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts

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

 

The orange line is wen your server ''calls'' java... in the begining you see this :

-Xmx1048m

This is how mutch memory will the gameserver use ... if it is not enough the gameserver has the problem...

--------------------------------------------------------------------------------------------------------------------------------

Dont spamm...

9 answers to this question

Recommended Posts

  • 0
Posted

Really strange guide,

 

If you dont have a good pc and you wanna run your server there you might have this problem:

 

lol?

 

U can get this error even with good pc, and the only sollutions is to inceresce memory for GS or for example virtual memory.

 

So your statement is not logical.

  • 0
Posted

Some of the common errors (like this one, database connection, etc) should be pinned off.

 

Have you already checked problems 4 years ago in this section (I did for fun, reading "Interlude new version" made me smile) ? This is all time the same problems.

 

That will avoid problems AND those sort of guides.

  • 0
Posted

Its supposed to be guide at begining (it was posted in proper section) but as we can see someone moved it here..

 

- don't know why, but anyway - Topic Locked.

Guest
This topic is now closed to further replies.


×
×
  • Create New...