Page 1 of 1

Server starts slow

Posted: Fri Feb 07, 2014 8:08 pm
by maneco2
Datapack: 10165
Server: 6380

English: The server is taking 7 minutes to start completely ... with the latest revision .. tains some problem maybe?
Portugues: O server está demorando 7 minutos para iniciar completamente... com a ultima revisao.. tém algum problema talvez ? :?

Image

Re: Server starts slow

Posted: Fri Feb 07, 2014 8:37 pm
by JMD
Its true that it has become a lot slower (50%) than it used to be. I used to load a server with all quests and other scripts disabled in around 50-60 seconds. Now it takes around 100-120 seconds.

Re: Server starts slow

Posted: Fri Feb 07, 2014 8:53 pm
by maneco2
yes here takes 120 seconds, but updated and is now 400 seconds...tains anything wrong :cry:

Re: Server starts slow

Posted: Fri Feb 07, 2014 9:01 pm
by vampir
JMD wrote:Its true that it has become a lot slower (50%) than it used to be. I used to load a server with all quests and other scripts disabled in around 50-60 seconds. Now it takes around 100-120 seconds.
What slowed it down so much?

Re: Server starts slow

Posted: Fri Feb 07, 2014 9:26 pm
by jurchiks
Shitty code, of course.

Re: Server starts slow

Posted: Fri Feb 07, 2014 9:42 pm
by maneco2
the last revision l2j beta must be some problem or not?...432 seconds to start the server :?

Re: Server starts slow

Posted: Fri Feb 07, 2014 10:13 pm
by Zoey76
Try this:

Code: Select all

### Eclipse Workspace Patch 1.0#P L2J_Server_BETAIndex: dist/game/startGameServer.bat===================================================================--- dist/game/startGameServer.bat   (revision 6324)+++ dist/game/startGameServer.bat   (working copy)@@ -5,7 +5,7 @@ echo Starting L2J Game Server. echo. -java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1536m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer+java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms256m -Xmx1536m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer  REM NOTE: If you have a powerful machine, you could modify/add some extra parameters for performance, like: REM -Xms1536m 

Re: Server starts slow

Posted: Fri Feb 07, 2014 10:23 pm
by maneco2

Code: Select all

+java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms256m -Xmx3072m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer]
128 seconds, thanks

Re: Server starts slow

Posted: Mon May 26, 2014 5:37 am
by yksdtc
maneco wrote:

Code: Select all

+java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms256m -Xmx3072m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer]
128 seconds, thanks
more faster

Code: Select all

java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -noclassgc -Xms3072m -Xmx3072m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServe

Re: Server starts slow

Posted: Mon May 26, 2014 3:28 pm
by JMD
I had a bad ram, i removed it and with most quests/scripts disabled it loads at around 70 sedonds. Although it used to be around 50-60 seconds on older versions.

Re: Server starts slow

Posted: Mon May 26, 2014 4:34 pm
by UnAfraid
Try that it may decrease a little memory usage
Gist by: UnAfraid

Re: Server starts slow

Posted: Mon May 26, 2014 5:09 pm
by JMD
UnAfraid wrote:Try that it may decrease a little memory usage
Gist by: UnAfraid
Wow 100mb decrease!

Image

Image

:P

Re: Server starts slow

Posted: Mon May 26, 2014 6:47 pm
by Zoey76
-Xms3072m
no way :lol:

Re: Server starts slow

Posted: Mon May 26, 2014 8:10 pm
by UnAfraid
JMD wrote:Image :P

Re: Server starts slow

Posted: Tue May 27, 2014 4:06 pm
by JMD
UnAfraid wrote:
JMD wrote:Image :P
Will you commit this?