How to optimise Startup Speed

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
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

How to optimise Startup Speed

Post 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!
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: How to optimise Startup Speed

Post 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.
Image
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: How to optimise Startup Speed

Post 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? :(
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
lucan
Posts: 590
Joined: Wed Mar 16, 2011 10:39 pm
Location: Brazil

Re: How to optimise Startup Speed

Post by lucan »

Configuration : (disk is ssd)
http://mondialdeal.be/srvcfg.png
I think the problem is your CPU, Intel Atom running your server?? :shock:
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: How to optimise Startup Speed

Post 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? :?:
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
lucan
Posts: 590
Joined: Wed Mar 16, 2011 10:39 pm
Location: Brazil

Re: How to optimise Startup Speed

Post by lucan »

Stable and unstable you can see here...
viewtopic.php?f=79&t=24627
Lupu1
Posts: 335
Joined: Wed Nov 04, 2009 7:51 am

Re: How to optimise Startup Speed

Post 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
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: How to optimise Startup Speed

Post by UnAfraid »

precompile datapack scripts.
Image
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: How to optimise Startup Speed

Post 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.
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
Post Reply