Author Topic: Server Lag  (Read 4348 times)

0 Members and 1 Guest are viewing this topic.

Offline Jdawg

  • Major(1)
  • Posts: 16
Server Lag
« on: August 24, 2006, 11:07:27 am »
Server Machine:
Win2000 SP4
Athlon XP 2200 (1.8 GHz)
512 MB SDRAM
64 MB onboard video (Should this matter?)

I can upload over 80 kB/s.

The problem is when i get 7 players or more the server starts to lag. Everyones ping goes over 1000. I am using the dedicated server that runs in the DOS window. 7 Players is about 15 kB/s upload for me and I don't understand why my server is lagging. Any suggestions?

Date Posted: August 23, 2006, 04:24:18 PM
I used a different machine:
Windows x64 Edition
Athlon 64 3200
512 MB DDR Ram
ATI x700 video card

I still get the same lag, is there some Soldat settings I must change?

You can see my upload speed test here:
:::.. Upload Stats ..:::
Upload Connection is:: 706 Kbps about 0.71 Mbps (tested with 1496 kB)
Upload Speed is:: 86 kB/s
Tested From:: http://testmy.net/ (Server 2)
Test Time:: 2006/08/24 - 9:04am
Bottom Line:: 12X faster than 56K 1MB Upload in 11.91 sec
Tested from a 1496 kB file and took 17.35488 seconds to complete
Upload Diagnosis:: May need help : running at only 70.25 % of your hosts average (optonline.net)
U-Validation Link:: http://testmy.net/stats/id-T42OW39H0
User Agent:: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 [!]

Offline Bgretydews

  • Flagrunner
  • ****
  • Posts: 805
  • y halo thar rabbit
Re: Server Lag
« Reply #1 on: August 24, 2006, 11:40:16 am »
Get better internet
http://yossi.jrgp.org/?action=maps&sa=user_maps&u=10
Image (and link) is broken. Feel free to fix it.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Server Lag
« Reply #2 on: August 25, 2006, 11:46:17 am »
In my opionion, you shouldn't use windows.

Are you hosting in a personal computer or a dedicated server?

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #3 on: August 26, 2006, 01:39:34 am »
It's a personal computer but the server is the only thing running on it. I'll try linux, which linux do you suggest? (Figuring out dual booting is going to be fun)

Offline jettlarue

  • Flagrunner
  • ****
  • Posts: 724
Re: Server Lag
« Reply #4 on: August 26, 2006, 01:45:51 am »
ubuntu 6.06 dapper drake is what most people on soldat use...its pretty straightforward, extremely easy to set up.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server Lag
« Reply #5 on: August 26, 2006, 08:17:34 am »
Who is your ISP, and what kind of connection do yo have?

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #6 on: August 26, 2006, 08:45:54 am »
OptimumOnline (optonline.net)
I get 10 Mbps down and around .7 Mbps up.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server Lag
« Reply #7 on: August 26, 2006, 10:29:38 am »
ah very nice.  I have OOL at home and they just upgraded us to 15mbit down and 2mbit up.

So yeah, this guy's connection is not his bottleneck.

Offline Fluffy

  • Camper
  • ***
  • Posts: 287
Re: Server Lag
« Reply #8 on: August 26, 2006, 10:39:05 am »
What firewall do you use?

Long live Nazi-Communism!

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server Lag
« Reply #9 on: August 26, 2006, 11:01:10 am »
What firewall do you use?
ah yes that is a very important question.  If you have a newer linksys (past 2-3 years), especially a WRT54G, then your router is to blame.  Many consumer routers really crap out once you get above 10 concurrent and active connections (this is why bit torrent clients will constantly crash many home routers)

If you want to run servers from home, look into running your firewall as a linux or *BSD computer

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #10 on: August 26, 2006, 03:29:39 pm »
I got a Linkysys BEFW11S4 Wireless-B Router. Im trying to get Debian Linux installed which proves to be quite tough. (All I figured so far is how to login to the root instead of a user) If I can't figure out Debian i'll go with ubuntu 6.06 dapper drake and i'll look into a D-Link router. I hear Netgear requires netgear lan cards.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server Lag
« Reply #11 on: August 26, 2006, 04:13:31 pm »
your router is almost definately your problem.

netgear does NOT require netgear lan cards.  Don't get a D-link, they are just as bad as linksys.  If you intend to buy another router, get a netgear.

I would reccomend installing linux on your server computer, putting another network card in, and using it as your router.  When I did this, it greatly improved the performance, quality, and reliability of my soldat servers and my internet connection overall.

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #12 on: August 26, 2006, 09:50:28 pm »
I got Ubuntu 6.06 installed but I can't get permission to start the server. I changed the root password and logged in as the root (So I thought), but I still can't get it to work. My Screenshot shows what I typed. Do you know what im doing wrong?

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Server Lag
« Reply #13 on: August 26, 2006, 10:03:44 pm »
you havent set soldatserver to execute permissions... type in:
chmod +x /home/jon/Desktop/Server/soldatserver

then try again. If you get an error saying "file logging error", type in
chmod -R 777 /home/jon/Desktop/Server/

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #14 on: August 26, 2006, 11:10:08 pm »
Alright it opens now but it disappears almost immediately, I added a map to the mapslist.txt but that didnt work.

Offline CardBoardWarrior

  • Soldier
  • **
  • Posts: 128
  • "The best secondary is a primary"
Re: Server Lag
« Reply #15 on: August 26, 2006, 11:17:49 pm »
Quote
especially a WRT54G,
Wonderful. My exact router.
Sad to hear about this problem, I think it's also whats causing some of my troubles.
Quote
I would reccomend installing linux on your server computer, putting another network card in, and using it as your router.  When I did this, it greatly improved the performance, quality, and reliability of my soldat servers and my internet connection overall.
I don't know a lot about networking but are you saying he should use the server computer as like an internet gateway for other computers on his network? (basically takes place of router)

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #16 on: August 26, 2006, 11:37:33 pm »
Nevermind, I figured it out, you can't just hit the X button in the corner, it leaves the server running in the backround. Thank you everyone for your help. One last question: how do I figure out my internal IP on Ubuntu?

Edit: I figured out how to get the internal IP.
I tested the server and it still lagged, so it seems I will have to go pick up that netgear router. I also had some problems with the linux server: 1. A lot of random parachutes on some map changes and every map change done by the server (after the cap limit/timelimit was up would boot every single player and tell them Wrong Map Version Detected, which I think has to do something with the filename capitalization of the folder/files names. (I installed some custom maps)
« Last Edit: August 27, 2006, 01:06:00 am by Jdawg »

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Server Lag
« Reply #17 on: August 27, 2006, 02:52:50 am »
The parachutes problem is caused by your maps not having correct read/write permissions

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server Lag
« Reply #18 on: August 27, 2006, 09:51:25 am »
Quote
especially a WRT54G,
Wonderful. My exact router.
Sad to hear about this problem, I think it's also whats causing some of my troubles.
Quote
I would reccomend installing linux on your server computer, putting another network card in, and using it as your router.  When I did this, it greatly improved the performance, quality, and reliability of my soldat servers and my internet connection overall.
I don't know a lot about networking but are you saying he should use the server computer as like an internet gateway for other computers on his network? (basically takes place of router)

yes, thats exactly what I'm saying ;)  iptables (a core part of linux) is the software that you'd use for it to act that way

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #19 on: August 27, 2006, 03:50:51 pm »
http://reviews.cnet.com/Netgear_WNR834B_RangeMax_router/4505-3319_7-31841160.html

What do you think of that router? I'm not sure since it says 'it takes a big speed hit in mixed-mode environments'

If I tried the linux machine as a router would I be able to also have wireless access and VOIP?

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server Lag
« Reply #20 on: August 27, 2006, 04:27:09 pm »
that netgear looks fine.  the "mixed mode" means that it will be slower in places that have many people on the wireless using wireless b and g (mixed), it will slow things down.  This really doesn't matter if you're using it at home.

If you're new to linux, I'd definately reccomend playing with linux, but not running a router on it yet.

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #21 on: August 27, 2006, 08:39:41 pm »
I know you can right click on files and change their permissions but I would like to change a whole folder and it doesn't work.

I tried:
chmod +x /home/jon/Desktop/Server/maps
chmod 755 /home/jon/Desktop/Server/maps

Would changing file permissions solve the Wrong Map Version error after every map change as well?

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Server Lag
« Reply #22 on: August 27, 2006, 08:48:14 pm »
chmod -R +x /home/.... tells it to be recursive

Offline Jdawg

  • Major(1)
  • Posts: 16
Re: Server Lag
« Reply #23 on: August 27, 2006, 09:08:44 pm »
Okay all the maps now have Read, Write, and Execute permissions.

However I still get an error in the server console:
Error: Could not load map (Too many files open)

It will kick whoevers in the server and say Wrong Map Version Detected (Happens every map change)

Edit: I didn't capitalize filenames correctly in the mapslist.txt.
« Last Edit: August 27, 2006, 11:22:53 pm by Jdawg »