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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • There is a ready-made option and the possibility to work according to "Wishlist"
    • Contact me, Discord: xbaus
    • WTB GRACIA FINAL INTERFACE
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock