Author Topic: Massive Lags since 2.5.1  (Read 2953 times)

0 Members and 1 Guest are viewing this topic.

Offline SeaStorm

  • Major(1)
  • Posts: 15
Massive Lags since 2.5.1
« on: June 26, 2006, 10:50:54 am »
Hi

Since I have Updated to 2.5.1 my Servers have massive Lags :(
You are playing and then everything stops. The Message Connection Problem is shown. Everyone is able to Chat. So its no "lost" Connection.  Its duration is about 10 seconds. Then it goes on. After ~30Sec it all starts again.

Downgrading to 2.5.0 fixes this Problem.
Im running the Servers on a Linux Dedi. 4800+ 2GB RAM etc etc. So its not the server itself ;)

Many players reported to me that this Bug is known from other Servers. But I cant find anything about this Bug in here ?! Noone ever said something? Is there any fix ?


Greets SeaStorm


Sry for the Bad english ;)

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Massive Lags since 2.5.1
« Reply #1 on: June 26, 2006, 10:57:31 am »
this is interesting, this is the second or third time I've heard of this happening (see Mancer's post, I think) since the release of 2.5.1.  This is the first post to link it to the server version

Offline ds dude

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 631
  • Lolicon Forever.
Re: Massive Lags since 2.5.1
« Reply #2 on: June 26, 2006, 01:12:28 pm »
Is it possible that poeple's ping is high?If that wasnt it then i dont see any other way it couldve happened unless it was natural lag(meening it just lag by itself without any condition)
This signature was borked. Now it is not.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Massive Lags since 2.5.1
« Reply #3 on: June 26, 2006, 01:18:40 pm »
Is it possible that poeple's ping is high?If that wasnt it then i dont see any other way it couldve happened unless it was natural lag(meening it just lag by itself without any condition)

This post adds nothing to the thread, and it sounds like you're just guessing at what you're saying.  Please try not to post in threads unless you are asking a question or have a good understanding of what you're saying.

Offline SeaStorm

  • Major(1)
  • Posts: 15
Re: Massive Lags since 2.5.1
« Reply #4 on: June 26, 2006, 03:07:58 pm »
I think Ive found the error ...
I recogniced that every command , Login to ssh etc was very slow. so I tried to ping google etc. nothing happened. I had to add new Nameservers to my resolv.conf. Now everything seems to work fine.

But I have rebooted the Server in this time so its not 100% sure ! The reboots before didnt fix the prob. so I think this is the prob.

But I really dont get it why only my 2.5.1 server had these Probs. I have set up a 2.5.0 and a 2.4.9. No Probs there ...


Ill inform you guys if I know somenthing new ;)


Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Massive Lags since 2.5.1
« Reply #5 on: June 26, 2006, 03:22:25 pm »
I'll keep an eye out for this when I upgrade my servers to 2.5.1 (currently they are 2.4.9)

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Massive Lags since 2.5.1
« Reply #6 on: June 26, 2006, 05:47:43 pm »
Sorry but its just you. Not a single problem with my servers, except one time when the nameserver went down. That caused lag, but only because it couldnt resolve lobby server host names... which was my servers fault not the soldat server

Offline ramirez

  • Retired Soldat Developer
  • Camper
  • ******
  • Posts: 394
    • Soldat Central
Re: Massive Lags since 2.5.1
« Reply #7 on: June 26, 2006, 11:17:45 pm »
Just like you guessed, that kind of problem could be caused by nameservers failure.
All that I am about to say is an assumption, because I haven't seen the server's code, but this is what I guess happens:

If lobby_register is true, and lobby_servers.txt isn't empty, Soldat will register the servers to lobby every once in a while (probably every 30 secs, if that's the time frame you got the error). The Soldat server probably does it in its main thread, which would explain the reason why you get connection problem, since none of the other data would be processed during that time, since the thread is blocked by DNS trying to resolve the hostnames.
But why chatting works? The only explanation that makes sense to me is that Soldat handles that part in a seperate thread, so even if the DNS resolver is blocking the thread that actually updates the game state, the other thread (or threads) is still actively reading and writing data from the sockets. This would make sense, since incase of chat messages, the server only needs to relay them to the other clients. Incase of packets that represent changes in game logic and state, require additional processing by the server (and this processing would be done in the main thread, instead of the thread(s) that handle the sockets).
« Last Edit: June 26, 2006, 11:19:49 pm by ramirez »

Offline SeaStorm

  • Major(1)
  • Posts: 15
Re: Massive Lags since 2.5.1
« Reply #8 on: June 30, 2006, 05:30:59 am »
OK ... no more Problems ... so thats all my fault :) Great Work Guys ! And thanks for the fast Support !