Jump to content

Recommended Posts

Posted

As i saw the most off you buying a machine with 8 or 16gb ram but why?

 

this shit here -> java -Xmx512m -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

you must make it :

 

if you have 4gb ram then -> java -Xmx2048m -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

if you have 8gb ram then -> java -Xmx4096m -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

if you have 16 gb ram then -> java -Xmx8192m -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

don't let it 512 you can "play" with it when you have 4 - 8 or 16 gb ram omg at least learn this :).

Guest Elfocrash
Posted

i am not surprised.

he means you explain nothing.

Posted

I Have understand :O

i know... elfo he can read the green words... elfo this is a explanation : if you have 4gb ram then -> java -Xmx>>>>>2048<<<<<<<<<<m -cp ./libs/*; net.sf.l2j.gameserver.GameServer i should add more arrows to understand it?

 

 

Posted

i am not surprised.

 

I'm not surprised to be honest that even you didn't understood what you have shared.

Your share is completely incomplete !!!

 

Read about those variables by searching "Garbage Collector" on google and give us some more information. I'm sure that by searching like this you will find more information.

 

Thanks for sharing it with us by the way, do not forget that you are on wrong section.

Posted

@echo off
title aCis gameserver console
:start
REM -------------------------------------
REM Default parameters for a basic server.
java -Xmx512m -cp ./libs/*; 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 -Xmx1536m -Xms1024m -Xmn512m -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 have restarted, please wait.
echo.
goto start
:error
echo.
echo Server have terminated abnormaly.
echo.
:end
echo.
echo Server terminated.
echo.
pause

 

Only this?

REM -------------------------------------
REM Default parameters for a basic server.
java -Xmx512m -cp ./libs/*; 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 -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------

 

Xmx ? Xms ? Xmn? PermSize ? SurvivorRadio ?

REM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts

 

Also if you mysql isnt configurated for maximum forget the 512 or 1024 2048 or more

 

i Agree with pipiou21

 

I'm not surprised to be honest that even you didn't understood what you have shared.

Your share is completely incomplete !!!

 

Read about those variables by searching "Garbage Collector" on google and give us some more information. I'm sure that by searching like this you will find more information.

 

Thanks for sharing it with us by the way, do not forget that you are on wrong section.

 

 

  • 1 month later...
Posted

nice share and yes its useful you have no idea how many clueless devs are out there who wont bother search/fix on their own unless there is

already a topic on google...

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


×
×
  • 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