Page 1 of 1

How to optimise Startup Speed

Posted: Wed Oct 23, 2013 8:11 am
by HappyLDE
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 5937: Built from source code with Option 2. Stable Subversion Access from this page. Built with Eclipse on Windows.
L2JDP Revision 9981:

Hi, how could i optimise server startup speed? Actually is 306 sec (aka 5min) to start.

These are temporary hardware specs since there won't be large amounts of players yet.

Configuration : (disk is ssd)
http://mondialdeal.be/srvcfg.png

Can i turn all tables to InnoDB? Will this help? Are there any mysql optimisations i can do in this situation? If so will this block me later when the server will be stronger? (IE Changing tables engine to innodb)

Java Version:

Code: Select all

user@srv71:~$ java -versionjava version "1.7.0_45"Java(TM) SE Runtime Environment (build 1.7.0_45-b18)Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
The actual GameServer_loop.sh:

Code: Select all

#!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do    java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Djava.awt.headless=true -Xms3072m -Xmx3072m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer 2>&1    [ $? -ne 2 ] && break#   /etc/init.d/mysql restart    sleep 10done
Any other optimisations to be done?

Help is appreciated! Just post your ideas :P
Thanks!

Re: How to optimise Startup Speed

Posted: Wed Oct 23, 2013 8:52 am
by BiggBoss
The higher start up time is consumed in script cache compile, so if you want faster start up, reduce the scripts loaded at start up.

Re: How to optimise Startup Speed

Posted: Wed Oct 23, 2013 9:38 am
by HappyLDE
I went to data/Scripts.cfg and commented all the quests scripts:

Code: Select all

# Quests Section#quests/SagasScripts/SagasSuperClass.java#quests/TerritoryWarScripts/TerritoryWarSuperClass.java#quests/Q00001_LettersOfLove/Q00001_LettersOfLove.java#quests/Q00002_WhatWomenWant/Q00002_WhatWomenWant.java...
Is this the right way?

And in GameServer_loop.sh i added:

Code: Select all

-Xnoclassgc -XX:ParallelGCThreads=4 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+AggressiveOpts
I don't know if this helped?

Now server loaded in 263 sec (4.38 min)

Any other ideas please? :(

Re: How to optimise Startup Speed

Posted: Thu Oct 24, 2013 5:21 pm
by lucan
Configuration : (disk is ssd)
http://mondialdeal.be/srvcfg.png
I think the problem is your CPU, Intel Atom running your server?? :shock:

Re: How to optimise Startup Speed

Posted: Thu Oct 24, 2013 6:40 pm
by HappyLDE
Yeah Intel Atom 1.8Ghz x 4 :mrgreen:

Can someone tell me if the L2J Revision and L2JDP Revision are the stable ones? Maybe i took wrong datapack from unstable? :?:

Re: How to optimise Startup Speed

Posted: Sat Oct 26, 2013 9:40 am
by lucan
Stable and unstable you can see here...
viewtopic.php?f=79&t=24627

Re: How to optimise Startup Speed

Posted: Mon Nov 04, 2013 8:50 pm
by Lupu1
HappyLDE wrote:I went to data/Scripts.cfg and commented all the quests scripts:

Code: Select all

# Quests Section#quests/SagasScripts/SagasSuperClass.java#quests/TerritoryWarScripts/TerritoryWarSuperClass.java#quests/Q00001_LettersOfLove/Q00001_LettersOfLove.java#quests/Q00002_WhatWomenWant/Q00002_WhatWomenWant.java...
Is this the right way?

And in GameServer_loop.sh i added:

Code: Select all

-Xnoclassgc -XX:ParallelGCThreads=4 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+AggressiveOpts
I don't know if this helped?

Now server loaded in 263 sec (4.38 min)

Any other ideas please? :(
yap that is the way disable as many as you can

Re: How to optimise Startup Speed

Posted: Tue Nov 05, 2013 5:17 am
by UnAfraid
precompile datapack scripts.

Re: How to optimise Startup Speed

Posted: Thu Nov 07, 2013 9:44 pm
by HappyLDE
Well... it really was the processor, because i now have an i3 and same server/database loaded in 48 sec. :)

But topic could be good for who needs these tips.