Jump to content
  • 0

Gameserver Isn't Using All Of The Ram Memory Available!


Question

Posted

Howdy MXC members, 

I have a problem that I hope for the more experienced ones is simple and easy, so I'm here with hope that somebody will try to help me with my current problem.

 

So, the topic's title says everything, you can see bellow on the screenshot.

 

OS: Windows 2003 Server

Architecture: 32Bit

RAM: 3GB

Processor: Intel Celeron D 3.46GHz

Server files: L2JFrozen (Compiled with eclipse)

 

162877m.png

 

Thanks and see ya around.

3 answers to this question

Recommended Posts

  • 0
Posted

I hope you will not host online server on that machine :P

 

Show me .bat file that you are using, to start GameServer.

  • 0
Posted

Nope, ofc that I won't host an online server on this machine, this is my own build dedicated server at my home, without a protection and staff, I've made it for my own needs only, and at the moment I'm only testing and getting knowledge about lineage 2 java server files. So, there we go... The configuration of my gameserver.bat file.

Note: I've been trying to change the parameters, and the maximum I can use for now is 1.5GB of RAM, no idea why, I know that the OS, the DB and few other staff needs to get RAM, so I don't want to add all of my memory to the server's usage, so let it be like 2.5GB. Thanks.

@echo off
title L2J-Frozen: Game Server Console
:start
echo Starting L2J-Frozen Core Game Server.
echo Official website : http://www.l2jfrozen.com
echo Enjoy by server core. Bee happy!
echo ------------------------------
echo.


REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF8 -Xms1536m -Xmx1536m -cp ./lib/*;l2jfrozen-core.jar com.l2jfrozen.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 ERRORLEVEL 7 goto telldown
if ERRORLEVEL 6 goto tellrestart
if ERRORLEVEL 5 goto taskrestart
if ERRORLEVEL 4 goto taskdown
REM 3 - abort
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:tellrestart
echo.
echo Telnet server Restart ...
echo Send you bug to : http://www.l2jfrozen.com
echo.
goto start
:taskrestart
echo.
echo Auto Task Restart ...
echo Send you bug to : http://www.l2jfrozen.com
echo.
goto start
:restart
echo.
echo Admin Restart ...
echo Send you bug to : http://www.l2jfrozen.com
echo.
goto start
:taskdown
echo .
echo Server terminated (Auto task)
echo Send you bug to : http://www.l2jfrozen.com
echo .
:telldown
echo .
echo Server terminated (Telnet)
echo Send you bug to : http://www.l2jfrozen.com
echo .
:error
echo.
echo Server terminated abnormally
echo Send you bug to : http://www.l2jfrozen.com
echo.
:end
echo.
echo server terminated
echo Send you bug to : http://www.l2jfrozen.com
echo.
:question
set choix=q
set /p choix=Restart(r) or Quit(q)
if /i %choix%==r goto start
if /i %choix%==q goto exit
:exit
exit
pause

  • 0
Posted

-Xms1536m - that's initial amount of ram memory while starting the gameserver, 

-Xmx1536m - that's max amount of memory.

 

Start a server, let everything load and check how much memory gameserver consumed so far, put that value + something(let's say 1/3, so something will be left for few data like players) as initial memory.

Don't make initial memory, be same as maximum. It will slow garbage collector and memory will expand anyway if there is lack of it.

Make sure consumed memory will never reach even 75% of max memory, after that garbage collections can be more frequent.

 

On 32bit system, you cannot put more memory to the java process than 1.5G.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...