Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas (https://secretexperience.net/l2j-duvidas/)
-   -   [Freya] Memória do servidor (https://secretexperience.net/l2j-duvidas/31218-memoria-do-servidor.html)

Boots 06-05-2011 11:14 PM

Memória do servidor
 
Boa noite galera,gostaria de saber se é possivel eu almenta a memoria de meu servidor ?
Tenho 4GB de memoria e gostaria de usar 3 para o servidor,nao sei se é possivel ou se há alguma coisa parecida com isso usar a memoria do pc para melhor o desempenho do servidor,se tiver alguma forme ficaria grato !
Obrigado!

ExclusivesHost 06-05-2011 11:26 PM

me passa as config do teu gameserver.bat que edito pra tu

Boots 06-05-2011 11:28 PM

@echo off
title Game Server Console
color 0C
:start
echo Starting L2J Game Server.
echo.
REM -------------------------------------
REM Default parameters for a basic server.
java -Djava.util.logging.manager=com.l2js.util.L2LogMana ger -Xms1024m -Xmx1024m -cp ./../libs/*;l2js-game.jar com.l2js.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=com.l2js.L2LogManager. Example:
REM java -Djava.util.logging.manager=com.l2js.util.L2LogMana ger -Xmx1024m -cp ./../libs/*;l2jserver.jar com.l2js.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

allanalcantara 07-05-2011 01:05 AM

tenta essa. :
Código:

REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF8 -Xmx1024m -Xms512m -Xmn256m -XX:PermSize=128m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -XX:+UseSerialGC -cp ./lib/*;l2jdemonniac-core.jar com.l2jdemonniac.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 -------------------------------------

o meu aew é pra interlude então tenta da uma atualizada no que mandei, e muda lá.

Boots 07-05-2011 04:48 PM

@JrMGames estou no aguardo amigo !

xdavison 07-05-2011 10:46 PM

Boots tenta postar em arquivo Texto ficaria mais facio de copiar :D

Boots 07-05-2011 11:09 PM

Pronto amigo
Código:

@echo off
title Game Server Console
color 0C
:start
echo Starting L2J Game Server.
echo.
REM -------------------------------------
REM Default parameters for a basic server.
java -Djava.util.logging.manager=com.l2js.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*;l2js-game.jar com.l2js.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=com.l2js.L2LogManager. Example:
REM java -Djava.util.logging.manager=com.l2js.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar com.l2js.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


allanalcantara 24-05-2011 11:53 PM

Como falei cara...

Citação:

@echo off
title game server console
color 0c
:start
echo starting l2j game server.
Echo.
Rem -------------------------------------
rem default parameters for a basic server.
java -djava.util.logging.manager=com.l2js.util.l2logmana ger -xms1024m -xmx1024m -cp ./../libs/*;l2js-game.jar com.l2js.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=com.l2js.l2logmanager. Example:
Rem java -djava.util.logging.manager=com.l2js.util.l2logmana ger -xmx1024m -cp ./../libs/*;l2jserver.jar com.l2js.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
mude esses locais ...

xworkx 25-05-2011 12:44 PM

Lembrando que você tem que mudar os valores que o @allan destaco ali com multiplos de 512 caso faça errado ocorrera o erro no GS.


Horários baseados na GMT -3. Agora são 06:39 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0