memmory use.

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
Moffan
Posts: 6
Joined: Tue May 25, 2010 9:50 pm
Location: Ukraine, Kiev

memmory use.

Post by Moffan »

L2J Revision 4299:
L2JDP Revision 7507:

Plese help me config my server memmory for big online and full geodata.
im use 8gb ddr2 ram

Code: Select all

@echo offtitle Game Server Console:startecho Starting L2J Game Server.echo.REM -------------------------------------REM Default parameters for a basic server.java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager [color=#FF0000]-Xms1524m -Xmx1524m[/color] -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServerREMREM If you have a big server and lots of memory, you could experiment for example withREM java -server -Dfile.encoding=UTF-8 [color=#FF0000]-Xmx4096m -Xms2048m -Xmn1024m -XX:PermSize=256m -XX:SurvivorRatio=8[/color] -Xnoclassgc -XX:+AggressiveOptsREM If you are having troubles on server shutdown (saving data),REM add this to startup paramethers: -Djava.util.logging.manager=com.l2jserver.L2LogManager. Example:REM java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager [color=#FF0000]-Xmx1524m[/color] -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServerREM -------------------------------------if ERRORLEVEL 2 goto restartif ERRORLEVEL 1 goto errorgoto end:restartecho.echo Admin Restart ...echo.goto start:errorecho.echo Server terminated abnormalyecho.:endecho.echo server terminatedecho.pause
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: memmory use.

Post by Szponiasty »

Everything depends on yor server rev, config, mods, customs, db server config etc etc. You have to experiment yourself, cause one config that works good for someone, may not work for you at all, even with the same hardware config. Here is mine config. Core i7 Quad, 10 GB RAM, Linux x64, MySQL x64, Java 1.6.20:

Code: Select all

#!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do	[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"	[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"	java -Djava.awt.headless=true -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xmn1024m -Xms3072m -Xmx9216m -XX:+UseParNewGC -d64 -server -cp ./../libs/*:L2_GameServer.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1		[ $? -ne 2 ] && break	sleep 10done
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
Post Reply