08.05.2015, 20:23
Hello,
Few days ago my server started to stay frozen using 100% CPU.
I don't figure what could be, it didn't happen before, so I'm asking if there is a new kind of "exploit" that freezes the server like in 0.3x (I'm using 0.3.7)
https://sampforum.blast.hk/showthread.php?tid=485833
I've some infinite loops but I don't think that are the problem:
And that are all infinite loops that I have.
This happens when the server get freezed:
[14:24:04] [connection] 167.0.26.147:57826 requests connection cookie.
[14:24:32] Kicking 201.254.169.173 because they didn't logon to the game.
[14:24:35] Kicking 186.16.179.122 because they didn't logon to the game.
[14:24:35] Kicking 167.0.26.147 because they didn't logon to the game.
[14:25:09] [connection] 89.3.255.86:64817 requests connection cookie.
[14:25:37] [connection] 170.51.71.37:17536 requests connection cookie.
[14:25:40] Kicking 89.3.255.86 because they didn't logon to the game.
[14:25:58] [connection] 190.30.69.169:17318 requests connection cookie.
[14:26:29] Kicking 190.30.69.169 because they didn't logon to the game.
[14:27:42] [connection] 186.89.210.25:64449 requests connection cookie.
[14:28:13] Kicking 186.89.210.25 because they didn't logon to the game.
[14:28:50] [connection] 186.89.210.25:50990 requests connection cookie.
[14:29:21] Kicking 186.89.210.25 because they didn't logon to the game.
[14:30:25] [connection] 187.184.222.174:59283 requests connection cookie.
[14:30:44] [connection] 170.51.71.37:64110 requests connection cookie.
[14:30:45] [connection] 170.51.71.37:64110 requests connection cookie.
[14:30:56] Kicking 187.184.222.174 because they didn't logon to the game.
[14:31:55] [connection] 200.5.75.2:57652 requests connection cookie.
[14:31:58] [connection] 186.89.210.25:53980 requests connection cookie.
[14:32:26] Kicking 200.5.75.2 because they didn't logon to the game.
Thank you if you could submit some useful information!
Few days ago my server started to stay frozen using 100% CPU.
I don't figure what could be, it didn't happen before, so I'm asking if there is a new kind of "exploit" that freezes the server like in 0.3x (I'm using 0.3.7)
https://sampforum.blast.hk/showthread.php?tid=485833
I've some infinite loops but I don't think that are the problem:
PHP код:
for(;;)
{
rand1 = random(2800);
rand2 = random(2800);
less1 = random(2);
less2 = random(2);
if(less1 == 0)
rand1 = -rand1;
if(less2 == 0)
rand2 = -rand2;
MapAndreas_FindZ_For2DCoord(rand1, rand2, z);
if(z > 0.0)
break;
else fail++;
if(fail > 50)
{
print("Map andreas isn't working");
return 0;
}
}
PHP код:
new const dir[19] = {0, 50, 150, 300, 600, 1000, 1500, 2100, 2800, 3600, 5000, 10000, 16000, 22000, 33000, 44000, 55000, 70000, 100000};
new li = 0;
new ls = 19;
new div;
if(ScoreRank >= 0)
{
for(;;)
{
div = (li+ls)/2;
if(div >= 18)
break;
if(ScoreRank >= dir[div] && ScoreRank < dir[div+1])
break;
else if(ScoreRank < dir[div])
ls = div;
else
li = div;
}
}
This happens when the server get freezed:
[14:24:04] [connection] 167.0.26.147:57826 requests connection cookie.
[14:24:32] Kicking 201.254.169.173 because they didn't logon to the game.
[14:24:35] Kicking 186.16.179.122 because they didn't logon to the game.
[14:24:35] Kicking 167.0.26.147 because they didn't logon to the game.
[14:25:09] [connection] 89.3.255.86:64817 requests connection cookie.
[14:25:37] [connection] 170.51.71.37:17536 requests connection cookie.
[14:25:40] Kicking 89.3.255.86 because they didn't logon to the game.
[14:25:58] [connection] 190.30.69.169:17318 requests connection cookie.
[14:26:29] Kicking 190.30.69.169 because they didn't logon to the game.
[14:27:42] [connection] 186.89.210.25:64449 requests connection cookie.
[14:28:13] Kicking 186.89.210.25 because they didn't logon to the game.
[14:28:50] [connection] 186.89.210.25:50990 requests connection cookie.
[14:29:21] Kicking 186.89.210.25 because they didn't logon to the game.
[14:30:25] [connection] 187.184.222.174:59283 requests connection cookie.
[14:30:44] [connection] 170.51.71.37:64110 requests connection cookie.
[14:30:45] [connection] 170.51.71.37:64110 requests connection cookie.
[14:30:56] Kicking 187.184.222.174 because they didn't logon to the game.
[14:31:55] [connection] 200.5.75.2:57652 requests connection cookie.
[14:31:58] [connection] 186.89.210.25:53980 requests connection cookie.
[14:32:26] Kicking 200.5.75.2 because they didn't logon to the game.
Thank you if you could submit some useful information!