Server uses 100% CPU
#1

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:
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(rand1rand2z);
        if(
0.0)
            break;
        else 
fail++;
        if(
fail 50)
        {
            print(
"Map andreas isn't working");
            return 
0;
        }
    } 
PHP код:
new const dir[19] = {05015030060010001500210028003600500010000160002200033000440005500070000100000};
    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;
        }
    } 
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!
Reply


Messages In This Thread
Server uses 100% CPU - by Su37Erich - 08.05.2015, 20:23
Re: Server uses 100% CPU - by Marricio - 08.05.2015, 21:06
Re: Server uses 100% CPU - by J4Rr3x - 08.05.2015, 21:07
Re: Server uses 100% CPU - by Su37Erich - 08.05.2015, 21:18
Re: Server uses 100% CPU - by Marricio - 08.05.2015, 21:28
Re: Server uses 100% CPU - by Su37Erich - 08.05.2015, 21:38
Re: Server uses 100% CPU - by PowerPC603 - 08.05.2015, 22:23
Re: Server uses 100% CPU - by pivetesgames - 08.05.2015, 22:35
Re: Server uses 100% CPU - by hamzajaved780 - 09.05.2015, 03:33
Re: Server uses 100% CPU - by Sgt.TheDarkness - 09.05.2015, 12:01

Forum Jump:


Users browsing this thread: 5 Guest(s)