My server is lagging..
#1

Hi,

My story , iv maked server 3 years ago and its successfull , i wasnt get many players as this time , so i wasnt feel lags , now i get players and my server is lags for unknown reason, iv checked my GM twice all functions was ok
Well my server keep lagging when i get +60 players iv tried to use VPS and im now using hostskool , I dont know what is that but also my script is well i dont use many timers (totall 5 Timers), I m looking for someone can help me at skype: mahdiasali , and i just want to ask something when i restart the server lags is gone , I want to ask if there are problem with this timer:

Код:
public OnPlayerSpawn(playerid)
{
    if(DMZone[playerid] >= 0)
    {
    SetPlayerHealth(playerid, 100000);
    SetTimerEx("AntiSpawnkill",4000,0,"i",playerid);
	}
.
.
}
Call Function:
Код:
forward AntiSpawnkill(playerid);
public AntiSpawnkill(playerid)
{
    if(DMZone[playerid] == 0)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 1)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 2)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 3)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 4)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 5)
    {
    SetPlayerArmour(playerid,50);
   	SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 6)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 7)
    {
	SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 8)
    {
	SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 9)
    {
	SetPlayerHealth(playerid,40);
    }
    if(DMZone[playerid] == 10)
    {
	SetPlayerHealth(playerid,40);
    }
    if(DMZone[playerid] == 11)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 12)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 13)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 14)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 15)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 16)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 17)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 18)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 19)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 20)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 21)
    {
	SetPlayerHealth(playerid,100);
    }
    return 1;
}
Does this repeat many timers , how can i check if its timers problem if only 5 timers and i need plugin or person can help me thanks!
Reply
#2

Alright mahdi,

Clear logs, Clear old accounts as it cause nearly 30-50+ MB.

Also your gamemode is using alot of objects that might cause lag too.
Reply
#3

What does matter with accounts :P? about objects its unlimited Dynamic
Reply
#4

Quote:
Originally Posted by SPA
Посмотреть сообщение
What does matter with accounts :P? about objects its unlimited Dynamic
It does,

Its using your space.
Reply
#5

Player accounts have nothing to do with this. Do you have any code in OnPlayerUpdate callback?
Reply
#6

Quote:
Originally Posted by QuaTTrO
Посмотреть сообщение
Player accounts have nothing to do with this. Do you have any code in OnPlayerUpdate callback?
Why not?

Suppose his vps is having 50mb space and you are storing nearly 5000+ accounts, That will be nearly 35mb, And serverlog, ban log? Admin cmd log, etc can cause lag why not?
Reply
#7

Quote:
Originally Posted by [vTc]Patroool
Посмотреть сообщение
Why not?

Suppose his vps is having 50mb space and you are storing nearly 5000+ accounts, That will be nearly 35mb, And serverlog, ban log? Admin cmd log, etc can cause lag why not?
Vps around 100 GB
Reply
#8

Bump any ideas?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)