Server lag ouer 100 players
#1

Hello.
We have a project with a high online.
But when more than 100 players, some functions work with a delay, what the problem?

Here profiler gamemode: http://rghost.ru/58207776
< 100 players: https://www.youtube.com/watch?v=TXH_...auQFcENT3oCnbQ
> 100 players: https://www.youtube.com/watch?v=XY08...auQFcENT3oCnbQ
Reply
#2

You probably have tons of useless timers or some messed up functions on saving/loading.

If not any of the above, there's a very slight chance it could be your MySQL host if you're running MySQL, that is.

Check your heap stack; and check your script for any useless [256] strings or other variables or anything.
Reply
#3

OnPlayerRequestClass
PlayerProcessTimer[playerid] = SetTimerEx("PlayerProcess",2000, true, "i", playerid);
OnPlayerDisconnect
Killtimer(PlayerProcessTimer[playerid]);

OnGameModeInit
timers_processer = SetTimer("TimerPROCESS",800,true);
OnGameModeExit
KillTimer(timers_processer);

there are 2 timer run continuously, anticheat and game mode.
Reply
#4

Check for variables using more than 128 text strings when they shouldn't.

Also are you using MySQL?
Reply
#5

new string[85];
format(string, sizeof(string), "%s был разморожен Администратором %s",PlayerInfo[Spectate[playerid]][pName] ,PlayerInfo[playerid][pName]);

we know how to properly allocate memory.

yes, im using MySQL, i do not think that it is because of him.
Reply
#6

It could be. You probably have a shitty host or shitty saving/loading schemes.

Try a new host or check the string limiters on your saving/loading.

It must be because of useless heaps of data (Ex: Strings all limited to 256, loading/saving not done properly, MySQL host database needs cleaning/new hosting etc.)

Check back with me after you do this.
Reply
#7

It's not lag host or MySQL, lags players with high id, if more than 500 online, I connected id 300 the game will be much lag, if I connected id 15 game will not lag.
Reply
#8

machine configuration:

Intel® Xeon® CPU E5430 @ 2.66GHz 2003.000 Mhz X 8
32gb ОЗУ
Диск SATA 240gb
1gb channel.

It's not lag host.
Reply
#9

Checked on a high online display quickly without lags only 30 TextDraw, lags the rest give to the customer, we have 90 TextDraw. should appear instantly, it does not happen that gives lags to the client.
Reply
#10

Run this plugin while running the server:
https://github.com/Zeex/samp-plugin-profiler/releases
How to use it:
https://github.com/Zeex/samp-plugin-profiler
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)