Server Lagging Issue.
#1

Nowadays my server is lagging when there are more players online.
so i took a step to optimize it.

What are the basic things i should remember to optimize and make the server to get a better perfomance...


I had heard somewhere that this function :

PHP код:
public OnPlayerSpawn(playerid)
{
    foreach(new 
Player)
   {
                          
// procedure or messages
   
}
 return 
1;

This will make any problem and i have many lines or declaration like
PHP код:

new msg[1000]; 
Any help is appreciated

Sorry for bad English

I will ++ Rep for who will help me.
Reply
#2

Update :
I had used profiler plugin in ma localhost and got this result:

and i dont have any idea about it
Reply
#3

from the provided information and code we cannot help
u could use this to get more info from profiler http://forum.sa-mp.com/showpost.php?...32&postcount=7
Reply
#4

Quote:
Originally Posted by Fungi
Посмотреть сообщение
from the provided information and code we cannot help
u could use this to get more info from profiler http://forum.sa-mp.com/showpost.php?...32&postcount=7
Are you even sure that you're in the right thread? This isn't about CrashDetect...


OP, have you got a severe amount of mapping in your server?

There are other things that can cause 'lag' as such, is there anything in your logs that turn up when it is actually lagging?
Reply
#5

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Are you even sure that you're in the right thread? This isn't about CrashDetect...
using (-d3) works with profiler too
http://forum.sa-mp.com/showpost.php?...&postcount=115
https://sampforum.blast.hk/showthread.php?tid=271129&page=12
Reply
#6

Should quote that then rather than throwing up unrelated quotes...

My statement still stands as well, the logs should reveal something, even something that could be disregarded, can still show a problem that is elsewhere.
Reply
#7

yeah i have got some warnings on log tht
Sscanf Warning : Stack Buffer overflow ... something like tht but i dont get in which command its happening
Reply
#8

Quote:
Originally Posted by bugmenotlol
Посмотреть сообщение
yeah i have got some warnings on log tht
Sscanf Warning : Stack Buffer overflow ... something like tht but i dont get in which command its happening
Chances are those errors, whilst they may relate to other things, could be signs that there are larger bugs in your script that you've missed.
Reply
#9

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Chances are those errors, whilst they may relate to other things, could be signs that there are larger bugs in your script that you've missed.
can u fix it for me plZ
i will send the script
Reply
#10

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Should quote that then rather than throwing up unrelated quotes...

My statement still stands as well, the logs should reveal something, even something that could be disregarded, can still show a problem that is elsewhere.
he just said my server lags. and nothing else. there are a million reasons why a server could lag. are you gonna just guess why his server lag without knowing anything? stop trying be a smartass i just wanted to show him how to get more information from profiler plugin instead of "unknown functions" that i see in his html. im not throwing unrelated statements
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)