Portal SAMP
[Ajuda] Servidor fechando sozinho - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Servidor fechando sozinho (/showthread.php?tid=1229)



Servidor fechando sozinho - robertjwx - 28/05/2021

Pessoal, eu usava um daqueles samp hosts da heavyhost e meu servidor nunca crashou...
Essa semana eu peguei um VPS e do nada meu servidor fecha sozinho, o host fica normal, só fecha o samp03svr

O que pode ser?

logs de antes de crashar não me parecem dizer nada:
Código:
[21:09:33] [debug] #0 001c02b8 in public AtualizarRoubos () in SP.amx
[21:09:39] Kicking ***.***.**.** because they didn't logon to the game.
[21:10:05] [debug] Long callback execution detected (hang or performance issue)
[21:10:05] [debug] AMX backtrace:
[21:10:05] [debug] #0 001c15e0 in public DesaparecerWeaponDrop () in SP.amx
[21:17:37] [debug] Long callback execution detected (hang or performance issue)
[21:17:37] [debug] AMX backtrace:
[21:17:37] [debug] #0 001c0354 in public AtualizarRoubos () in SP.amx

Essa última função atualizar roubos mesmo não tem nada de mais:
Código:
public AtualizarRoubos() {
    // atualizar roubos
    for(new bizzid = 1; bizzid < sizeof(BizzInfo); bizzid++) {
        BizzInfo[bizzid][rexaustedrobbery] -= 5;
        if(BizzInfo[bizzid][rexaustedrobbery] < 0) BizzInfo[bizzid][rexaustedrobbery] = 0;
    }
}

eu acho que é porque tem muita empresa no meu servidor:
Código:
#define MAX_BIZZ 5000
enum bizinfos
{
    bizzID,
    bizzName[30],
    bizzType,
    Float:bizzX,
    Float:bizzY,
    Float:bizzZ,
    bizzOWNER,
    bizzBank,
    bizzProducts
}
new BizzInfo[MAX_BIZZ][bizinfos];

Será que isso crasharia meu server?
No antigo host nunca crashava...


Ontem a última msg que se tem log é:
Código:
[20:52:27] [debug] Long callback execution detected (hang or performance issue)
[20:52:27] [debug] AMX backtrace:
[20:52:27] [debug] #0 001d3560 in ?? (1) in SP.amx
[20:52:27] [debug] #1 0014541c in public GPD_OnDialogResponse (1, 1, 1, -1, 39934656) in SP.amx
[20:52:27] [debug] #2 native CallLocalFunction () in samp03svr
[20:52:27] [debug] #3 000bdf04 in public OnDialogResponse (1, 1, 1, -1, 39934652) in SP.amx
[20:53:46] [debug] Long callback execution detected (hang or performance issue)
[20:53:46] [debug] AMX backtrace:
[20:53:46] [debug] #0 001c8de0 in public PlayerToPoint (1077936128, 0, 0, 0, 0) in SP.amx
[20:53:46] [debug] #1 0025e254 in public OnPlayerKeyCommandPress_ONFOOT (0, 38844340) in SP.amx
[20:53:46] [debug] #2 0013f6a4 in public WS_OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:53:46] [debug] #3 000c148c in public OPJV_OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:53:46] [debug] #4 native CallLocalFunction () in samp03svr
[20:53:46] [debug] #5 000c10f0 in public OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:54:08] [debug] Long callback execution detected (hang or performance issue)
[20:54:08] [debug] AMX backtrace:
[20:54:08] [debug] #0 0021458c in public UpdateTime () in SP.amx

Não sei nem como procurar por esse problema /\

---

eu to abrindo meu server usando
Código:
./samp03svr&
pra mesmo quando eu terminar de fechar o terminal ele continuar ON
tem que fazer mais alguma coisa?
é alguma configuração em outro lugar?
o que pode ser?


RE: Servidor fechando sozinho - Rio - 29/05/2021

Tente Isso:

cd samp03
./samp03svr &

E Depois:

exit

Acho que Nn Ficara Desligando..


RE: Servidor fechando sozinho - ProKillerPa - 30/05/2021

Código PHP:
[20:52:27] [debugLong callback execution detected (hang or performance issue)
[
20:52:27] [debugAMX backtrace:
[
20:52:27] [debug#0 001d3560 in ?? (1) in SP.amx
[20:52:27] [debug#1 0014541c in public GPD_OnDialogResponse (1, 1, 1, -1, 39934656) in SP.amx
[20:52:27] [debug#2 native CallLocalFunction () in samp03svr
[20:52:27] [debug#3 000bdf04 in public OnDialogResponse (1, 1, 1, -1, 39934652) in SP.amx
[20:53:46] [debugLong callback execution detected (hang or performance issue)
[
20:53:46] [debugAMX backtrace:
[
20:53:46] [debug#0 001c8de0 in public PlayerToPoint (1077936128, 0, 0, 0, 0) in SP.amx
[20:53:46] [debug#1 0025e254 in public OnPlayerKeyCommandPress_ONFOOT (0, 38844340) in SP.amx
[20:53:46] [debug#2 0013f6a4 in public WS_OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:53:46] [debug#3 000c148c in public OPJV_OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:53:46] [debug#4 native CallLocalFunction () in samp03svr
[20:53:46] [debug#5 000c10f0 in public OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:54:08] [debugLong callback execution detected (hang or performance issue)
[
20:54:08] [debugAMX backtrace:
[
20:54:08] [debug#0 0021458c in public UpdateTime () in SP.amx 
Em relação a isso nao se preocupe, é totalmente normal. O Crashdetect apenas lhe avisa que a callback em curso está gerando um impacto na performance, mas isso é totalmente normal.

Geralmente quando o sampsv fecha sozinho, é questão de pastas na scriptfiles que está faltando: Confira se TODAS as pastas estão criadas corretamente com os nomes corretos.

Abraços


RE: Servidor fechando sozinho - robertjwx - 31/05/2021

(30/05/2021 17:49)ProKillerPa Escreveu:
Código PHP:
[20:52:27] [debugLong callback execution detected (hang or performance issue)
[
20:52:27] [debugAMX backtrace:
[
20:52:27] [debug#0 001d3560 in ?? (1) in SP.amx
[20:52:27] [debug#1 0014541c in public GPD_OnDialogResponse (1, 1, 1, -1, 39934656) in SP.amx
[20:52:27] [debug#2 native CallLocalFunction () in samp03svr
[20:52:27] [debug#3 000bdf04 in public OnDialogResponse (1, 1, 1, -1, 39934652) in SP.amx
[20:53:46] [debugLong callback execution detected (hang or performance issue)
[
20:53:46] [debugAMX backtrace:
[
20:53:46] [debug#0 001c8de0 in public PlayerToPoint (1077936128, 0, 0, 0, 0) in SP.amx
[20:53:46] [debug#1 0025e254 in public OnPlayerKeyCommandPress_ONFOOT (0, 38844340) in SP.amx
[20:53:46] [debug#2 0013f6a4 in public WS_OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:53:46] [debug#3 000c148c in public OPJV_OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:53:46] [debug#4 native CallLocalFunction () in samp03svr
[20:53:46] [debug#5 000c10f0 in public OnPlayerKeyStateChange (0, 65536, 8) in SP.amx
[20:54:08] [debugLong callback execution detected (hang or performance issue)
[
20:54:08] [debugAMX backtrace:
[
20:54:08] [debug#0 0021458c in public UpdateTime () in SP.amx 
Em relação a isso nao se preocupe, é totalmente normal. O Crashdetect apenas lhe avisa que a callback em curso está gerando um impacto na performance, mas isso é totalmente normal.

Geralmente quando o sampsv fecha sozinho, é questão de pastas na scriptfiles que está faltando: Confira se TODAS as pastas estão criadas corretamente com os nomes corretos.

Abraços

Hmmm pode ser isso, eu não mudei muita coisa no GM
Vou dar uma ohada, muito obrigado

Pode ser mais alguma coisa?


RE: Servidor fechando sozinho - ProKillerPa - 31/05/2021

Bom, no seu caso é duas coisas: Ou falta de pastas ou está ocorrendo um crash por algum motivo, como por exemplo girar um loop sobre uma array com mais argumentos que os declarados, etc. Mas isso apareceria no crashdetect. Manda aqui seu server.log pra mim analisar.