What matters the most in servers...

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
ZumbuL
Posts: 45
Joined: Sun Feb 01, 2009 4:59 am
Location: USA

What matters the most in servers...

Post by ZumbuL »

L2j Revision: 3290
L2jDP Revision: 6394

I have had my server, and been using l2jserver for almost a year now, and yet I am still unclear with regards to a few issues.

Which one matters more, the Upload that your server box has or the Download speed?

I always thought it was the upload rather than download. After doing some research, I can't really hold on to that opinion, mostly because of the following:

1. Client communicates with server i.e CLIENT uploads information, therefor higher the download capability of the SERVER the better the performance it is.

2. Server communicates with client i.e SERVER uploads information, therefor higher the download capability of the CLIENT the better the gameplay would be.

With regards to my server box and its inability to run the server in -java server mode:

I am using a Dual Xeon Quad Core Processor @ 2.44GHz
4GBs of RAM
Drive C: 1 x 70GB @ 15k RPMs for the Microsoft Server 2003 OS and MySQL Server 5.1 Operation
Drive D: 1 x 150GB @ 15k RPMs, for the gameserver and loginserver operation
I got 45 Download, and 75 Upload Speed
Server Location is in New Jersey, USA

The only server side mod that I have done is what is posted here: http://www.l2jserver.com/old-forum/thre ... adid=27154. I still can't run Java in -server mode,

Code: Select all

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

Code: Select all

Error occured during initialization of VMCould not reserve enough space for object heapCould not create the Java virtual machine Server Terminated abnormaly
My allocated PageFile size in the Virtual Memory settings is 4096, 2048 for C, 2048 for D.

And I still get complaints from players saying they lag on my server, and they don't on others...

Any suggestions or hints and tips would be appreciated.

Thanks
To do, and to think about doing... completely different things...
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: What matters the most in servers...

Post by macdonald12 »

Upload speed on your server is more important then it's download speed, simply because of whatever one does on the client usually also has to been shown on alot of other people's clients. The client sends packets to the server only, not to other clients. So if a character, for example, moves - it sends a movement packet to the server. The server accepts this packet, processes it and if needed - sends all the other characters in your range a packet that you've moved.

Same goes for buffs, abnormal effects, inventory updates, combat status, etc etc. Mostly triggered by a few packets from the client but end up causing a chain of packets being send back from the server to your - and other - clients. Alltho download is important too, you'll see why the upload-link gets used more.

About your server configuration, you are probably running a 32 bit operating system? The practical limit of memory you can assign to Java is about 1.5 gb in that case. If you are on 64-bit try increasing your -xmx to at least 2048.
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

Re: What matters the most in servers...

Post by lishawj »

1. Regarding network speed, both are equally important.

2. 4MB system RAM will not allow you to use the DEFAULT "java -server" startup config. I had tried on my testserver tweaking min, max etc and it will not run. However, on my live server with 8MB system RAM, there is no issue using "java -server".

3. Lag/latency can be caused by more than one sources and can be daunting to troubleshoot unless you know how to set up network performance tests. Some of the causes of latency can be related to the following:

a. a bad router between your service provider and the end user(s).
b. a bad network card (NIC) on your server.
c. a bad router on your network segment at your service provider (related to A from above).
d. a faulty server, maybe yours.
e. improper firewall settings on your server or service providers.

The list goes on and on. Latency/lag is not as simple as increasing download/upload speed.
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: What matters the most in servers...

Post by Gnacik »

1. Regarding network speed, both are equally important.
Not really ;) Server with 1500 players online tested 30 min with nload :
Device eth0 [xx.xx.xx.xx] (1/1):
Incoming: Avg: 2611.66 kBit/s
Outgoing: Avg: 22143.29 kBit/s
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

Re: What matters the most in servers...

Post by lishawj »

That is true if you have 1500 players and for servers with 1500 players simultaneously then yes the upload speed would be more important. However, with less then 200 on my server, I can say that network performance is not impacted enough to show the huge variance you posted.

However, to stay on track...yes, upload is critical and can be more important if you are hosting a huge server for everyone. In my case, equal up and down serves its purpose well enough for 200 players max. :)
ZumbuL
Posts: 45
Joined: Sun Feb 01, 2009 4:59 am
Location: USA

Re: What matters the most in servers...

Post by ZumbuL »

After some looking over at the thread I found my mistake...

I am currently running it on this config:

Code: Select all

java -server  -Xmx1536m -Xmx1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer
Since I have a 32-bit OS I can't do anything higher than that according to this post:
http://www.l2jserver.com/old-forum/thre ... adid=27154

As for the upload/download discussion thank you for confirming my opinion that Upload > Download. It's good to share opinions with other admins on issues like this one.

One other thing though... I have MySQL on my 73GB HD together with the OS, and I have my gameserver and loginserver on the other one. Is that good, bad, or neither? Would it improve my performance if I were to migrate the MySQL in my 150GB HD? And then reduce the VM allocated to the 73GB HD from 2048MB to say: 512MB and increase the one on the other one? Remember I mentioned above that they are both running at 15k RPMs, so I better not see some noobass posts 'Meng buy bigggger hardDraiv lol u' cos the server all together ends up being um, about 1GB with GeoData and Pathnodes? + I monitor my Hard Drives performance, at peak times it barely spikes at all. So I know the read/write times are OK.
To do, and to think about doing... completely different things...
blacksea
Posts: 458
Joined: Fri Oct 05, 2007 1:29 am

Re: What matters the most in servers...

Post by blacksea »

change on 64bit alocate more ram to gs and you will be fine.
User avatar
ratonofx
Posts: 135
Joined: Thu Nov 23, 2006 2:39 am

Re: What matters the most in servers...

Post by ratonofx »

Actualy what's the recomended?

Code: Select all

CoordSynchronize = ? MoveBasedKnownlist = ?KnownListUpdateInterval = ?
does it reduce cpu usage?

Code: Select all

  MinNPCAnimation = 0 # Default: 20MaxNPCAnimation = 0 # Default: 5MinMonsterAnimation = 0 # Default: 20MaxMonsterAnimation = 0
What's the best config here ?

Code: Select all

ThreadPoolSizeEffects = 10 # Default: 13ThreadPoolSizeGeneral = 13 # Default: 2UrgentPacketThreadCoreSize = 2 # Default: 4GeneralPacketThreadCoreSize = 4 # Default: 4GeneralThreadCoreSize = 4 # Default: 6AiMaxThread = 6
The default values are proper for 1 gb machine? 512mb machine? It's a "empiric" experience to find the proper values.

And finaly...

What's the best database engine? MyISAM? InnoDB? i read about MyISAM be faster and INNODB be safer...

I believe this doubts and defintions can help everybody to get a stable system.

Thanks for any further help.
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: What matters the most in servers...

Post by devo »

Code: Select all

CoordSynchronize = ? MoveBasedKnownlist = ?KnownListUpdateInterval = ?
CoordSynchronize = -1 is recomended, im using 1
MoveBasedKnownlist = False
KnownListUpdateInterval = experiment with it, if you have powerful cpu, use lower than default

Code: Select all

 MinNPCAnimation = 0 # Default: 20MaxNPCAnimation = 0 # Default: 5MinMonsterAnimation = 0 # Default: 20MaxMonsterAnimation = 0
make it default

Code: Select all

ThreadPoolSizeEffects = 10 # Default: 13ThreadPoolSizeGeneral = 13 # Default: 2UrgentPacketThreadCoreSize = 2 # Default: 4GeneralPacketThreadCoreSize = 4 # Default: 4GeneralThreadCoreSize = 4 # Default: 6AiMaxThread = 6
nbd said you have to put here your core count.

InnoDB but not on default config.
A hero of war is that what they see...
Post Reply