20.12.2011, 14:44
Hello, I've finally find out what has been causing lags on my server, it's NPCs.
When I have 0 NPCs connected to server, server load is 0-1 and server ticks in GetNetworkStats() are 160-180.
With 20 NPCs, load is 0-2 but server ticks are only 100-140
With 50 NPCs, load is 1-5, and server ticks are now 20-100, which cause huge lag spikes on server.
The default server ticks should be 200.
Is there anything I might be doing wrong? The server has 200 player slots and is running on Debian 6 32bit, CPU is 3x2100 Mhz and RAM 2048 MB so I guess HW is okay for this server. This has been tested with grand larceny gamemode with 0 players connected and there was no code in npc scripts. When I test this on my PC with Win7 and 2x2.56Ghz CPU no lags appear.
Please help! Thanks in advance.
When I have 0 NPCs connected to server, server load is 0-1 and server ticks in GetNetworkStats() are 160-180.
With 20 NPCs, load is 0-2 but server ticks are only 100-140
With 50 NPCs, load is 1-5, and server ticks are now 20-100, which cause huge lag spikes on server.
The default server ticks should be 200.
Is there anything I might be doing wrong? The server has 200 player slots and is running on Debian 6 32bit, CPU is 3x2100 Mhz and RAM 2048 MB so I guess HW is okay for this server. This has been tested with grand larceny gamemode with 0 players connected and there was no code in npc scripts. When I test this on my PC with Win7 and 2x2.56Ghz CPU no lags appear.
Please help! Thanks in advance.