Official Soldat Forums

Server Talk => Server Discussion => Topic started by: Jdawg on August 24, 2006, 11:07:27 am

Title: Server Lag
Post by: Jdawg 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 [!]
Title: Re: Server Lag
Post by: Bgretydews on August 24, 2006, 11:40:16 am
Get better internet
Title: Re: Server Lag
Post by: mar77a 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?
Title: Re: Server Lag
Post by: Jdawg 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)
Title: Re: Server Lag
Post by: jettlarue 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.
Title: Re: Server Lag
Post by: FliesLikeABrick on August 26, 2006, 08:17:34 am
Who is your ISP, and what kind of connection do yo have?
Title: Re: Server Lag
Post by: Jdawg on August 26, 2006, 08:45:54 am
OptimumOnline (optonline.net)
I get 10 Mbps down and around .7 Mbps up.
Title: Re: Server Lag
Post by: FliesLikeABrick 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.
Title: Re: Server Lag
Post by: Fluffy on August 26, 2006, 10:39:05 am
What firewall do you use?
Title: Re: Server Lag
Post by: FliesLikeABrick 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
Title: Re: Server Lag
Post by: Jdawg 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.
Title: Re: Server Lag
Post by: FliesLikeABrick 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.
Title: Re: Server Lag
Post by: Jdawg 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?
Title: Re: Server Lag
Post by: EnEsCe 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/
Title: Re: Server Lag
Post by: Jdawg 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.
Title: Re: Server Lag
Post by: CardBoardWarrior 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)
Title: Re: Server Lag
Post by: Jdawg 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)
Title: Re: Server Lag
Post by: EnEsCe on August 27, 2006, 02:52:50 am
The parachutes problem is caused by your maps not having correct read/write permissions
Title: Re: Server Lag
Post by: FliesLikeABrick 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
Title: Re: Server Lag
Post by: Jdawg 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?
Title: Re: Server Lag
Post by: FliesLikeABrick 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.
Title: Re: Server Lag
Post by: Jdawg 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?
Title: Re: Server Lag
Post by: FliesLikeABrick on August 27, 2006, 08:48:14 pm
chmod -R +x /home/.... tells it to be recursive
Title: Re: Server Lag
Post by: Jdawg 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.