Jump to content

Question

Posted

Hello, i use l2off pack c4 and i have a serious problem, when the time ingame changes up to 00:00 and 06:00 all the server gets lagged for a while (aproximately 5sec of general lag). Do you know what is? 

My Connection shows a peak of 15mb in that moment, regularly has a consumption of 4 - 6 mb 

 

Thanks

Recommended Posts

  • 0
Posted

There are IO buffer pools, limited to 4, 8 or 16 instances (depending on your machine and chronicles) and the same amount of IO threads. So simultaneously you can send 4 or 8 or 16 packets. And if you have 100 ppl online, at the 00:00 EXTRA 100 packets will be sent (apart from other packets, which are sending or queued for sending).

 

Also, for L2Server MAX IO thread number depends on number of (virtual as well) processors. So, if you have machine with 4 cores, you will have only 4 IO buffer pools and 4 IO threads. This is pretty the reason for lag. Also, network throughput might be an issue as well. Bot most probably, both.

  • 0
Posted (edited)

I have this settings  

l2server.ini

IOBufferPool = 40000

 

in cache.ini

IOBufferPool = 40000

SQLExeclimit = 10000

IOthreadcount = 16 (i doubdt about this parameter)

 

Processor of 4 cores 4 threads 2.8ghz 16 GB DDR4 2400MHz  and a NVME disk

 

Extra data (edit):

Pending Write: After a day 1440000/16k (90) aproximately with 400 / 500ppl or more

 

what do you recommend?  Thank you in advance

Edited by Nevermind25
Extra data, i dont want to make other response for it
  • 0
Posted (edited)

try
l2server.ini
IOBufferCount=8192

 

cacheD
IOBufferCount=1024

 

IOthreadcount < ---  i do not use that and the option is not in my  .ini


SQLExecLimit=5000

 

( i do not use pool setup at .ini config )

if you set amount bigger than your ram is going to lag
and also it will eat lot resources of your computer as virtual memory
but be aware if iobuffercount reachs 0  server will crash


i rly dunno about the  broadcast making global lag
never experienced such thing as lazy to settime 
and used invalid sunrise many times  as mine is custom farm / pvp  non retail doesnt matter unless if you run retail   then you must use correct sunrise    

 

 

btw wich server/extender youre using ?
i hope ure not using the L2Patch С4 Shareware for god sake...

Edited by etherian
  • 0
Posted (edited)
On 3/8/2019 at 1:35 PM, MasterToma said:

There are IO buffer pools, limited to 4, 8 or 16 instances (depending on your machine and chronicles) and the same amount of IO threads. So simultaneously you can send 4 or 8 or 16 packets. And if you have 100 ppl online, at the 00:00 EXTRA 100 packets will be sent (apart from other packets, which are sending or queued for sending).

 

Also, for L2Server MAX IO thread number depends on number of (virtual as well) processors. So, if you have machine with 4 cores, you will have only 4 IO buffer pools and 4 IO threads. This is pretty the reason for lag. Also, network throughput might be an issue as well. Bot most probably, both.


btw  master toma has explained it here
read this again nevermind  he is giving you the answer  to solve the problem
buffer pool is limited to the io threads logical and virtual cores 
40k for pool in l2server and 40k pool for cached is a bit crazy...
you have NASA computer?  : P

Edited by etherian
  • 0
Posted (edited)

i forgot  most important thing

if you want to run over 1k players no lag 

the real setup goes like

 

1 computer

runs SQL server

handles  CacheD  and Login server 

1 computer

runs l2server

 

1 computer

runs npc server

 

is a rly old way to setup
but if you want a real good dedicated stuff
you need to make the best internal network

such as that

Edited by etherian
  • 0
Posted
On 3/27/2019 at 4:34 AM, etherian said:

1 computer

runs l2server

 

1 computer

 runs npc server

 

You cannot do that, l2server and l2npc use shared memory to share data about creatures, items etc (CSharedCreatureData, CSharedItemData, ...) - they have to run on the same machine.

  • Like 1
  • 0
Posted

[server]
address="127.0.0.1"
port=2002

[CacheD]
address="127.0.0.1"
port=2008




never tryed to run in other machine just a suggestion i read back at C2/C3 times

if they have shared memory why then they can connect via port and ip?

thats bcz you can run separated in same internal LAN  network  or just direct ethernet pc to pc

 never had so much machines to do such thing

 

anyway  thanks for clarify

 

hows that ext ?  still at gracia final / epilogue ?

im working now for H5  if u make extender for basic high five could be cool

 

laters

  • 0
Posted

They have IP connections because all logic is still done via packet send/recv, they just have a shared "data pool" to pull current information from, basically is how to look at it. but l2server/l2npc must be on same machine still

  • 0
Posted
4 hours ago, pada said:

They have IP connections because all logic is still done via packet send/recv, they just have a shared "data pool" to pull current information from, basically is how to look at it. but l2server/l2npc must be on same machine still

if some data goes over TCP why KR wouldn't fully use that for whole communication?

that "data pool" is heavily used to justify using shared mem instead? 

  • 0
Posted
6 hours ago, AlmostGood said:

if some data goes over TCP why KR wouldn't fully use that for whole communication?

that "data pool" is heavily used to justify using shared mem instead? 

That's how large servers work in general.

 

You cache a bunch of data for immediate access, and then use a longterm database for storage. Every interaction goes through the cache, and only the cache updates the longterm storage. This way you'll always get the most recent data, and you prevent incorrect/duplicate database entries.

 

In this case, the data pool contains all items and npcs. Yes, it's used heavily.

  • 0
Posted
On 3/27/2019 at 5:34 AM, etherian said:

i forgot  most important thing

if you want to run over 1k players no lag 

the real setup goes like

 

1 computer

runs SQL server

handles  CacheD  and Login server 

1 computer

runs l2server

 

1 computer

runs npc server

 

is a rly old way to setup
but if you want a real good dedicated stuff
you need to make the best internal network

such as that

its very old suggestion, which don't have any sense right now. Even 5-6k online could easily be handled on one Dedicated. Confirmed on practice

  • 0
Posted (edited)

Hello friends i come again with the same problem. 

Here is a graphic preety similar of the game time and the excesive peak of upload

1- One instantaneously solution was change the datacenter to one that provides about 500mbps of symetric connection

2- The peaks stills there but the big connection covers that demand 

3- The connection traffic is normal on 1.5 to 2.5 mbps but when the sunrise/sunset come, the traffic goes to 10x than normal like the graphic explains. the server has a delay of a few seconds, aproximately of one minute of the game time 

4- I think that it cant be possible 10x traffic just for a sunset/sunrise is something so ridiculous!

I read you friends ! please just iluminate me couse im so confused.

I ve tried some solutions like setting Iobuffercount = 8192 in l2server.ini

 

***Edit***

The datacenter connection is of 10mbps up/down

peak.PNG

Edited by Nevermind25
Forgot to share data "connection"
  • 0
Posted (edited)
1 hour ago, Nevermind25 said:

Hello friends i come again with the same problem. 

Here is a graphic preety similar of the game time and the excesive peak of upload

1- One instantaneously solution was change the datacenter to one that provides about 500mbps of symetric connection

2- The peaks stills there but the big connection covers that demand 

3- The connection traffic is normal on 1.5 to 2.5 mbps but when the sunrise/sunset come, the traffic goes to 10x than normal like the graphic explains. the server has a delay of a few seconds, aproximately of one minute of the game time 

4- I think that it cant be possible 10x traffic just for a sunset/sunrise is something so ridiculous!

I read you friends ! please just iluminate me couse im so confused.

I ve tried some solutions like setting Iobuffercount = 8192 in l2server.ini

 

***Edit***

The datacenter connection is of 10mbps up/down

peak.PNG

 

If you keep using the same hardware as before. I might think there's a problem with that.

otherwise, I would install for example "NetLimiter Pro" and look at that time which application or what is consuming that bandwidth.

 

 

PD:If you have passed files from one server to another, maybe you have a virus that is using your server as part of a botnet to attack.

Edited by guytis

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


  • Posts

    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
    • We have the best price! L2Reborn.org Signature x1 Franz NEW!! 1KK = $20 HURRY TO BUY AT THE TOP PRICE discord - adver745645
  • Topics

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