Posts: 2,262
	Threads: 260
	Joined: Mar 2009
	
Reputation: 
0
	 
 
	
	
		Could you diagnose what is lagging.
Whether it be the SAMP Gamemode or the actual server.
Symptoms:
Sometimes I get really bad lag spikes that appear often but then can not occur sometimes for sometime.
Another symptom is that I get the 'egg timer, afk icon' when the server lags.
Is this a physical server issue?
Thanks
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 720
	Threads: 34
	Joined: Dec 2010
	
Reputation: 
0
	 
 
	
	
		If it is your gamemode:
I've experienced this some times before, it could be caused mostly by timers (imo), like you do a per-player timer (for all players) instead of a global timer using foreach, it can slow the server (or the system) from what I've experienced. You could also debug the time it takes to finish a public (OnPlayerUpdate, for example) and see if you can remove any useless processes or fix them so they don't slow down the server. There could be also some scripting mistakes, like wrong checks and variables (i had a problem with attached objects before like that) so you should check it carefully, you could miss the mistake entirely. Just dropping my two cents, good luck.
If it's another server:
It could be the host's location (most likely) or your internet connection. Try checking F5 and see if anything isn't normal (packetloss over 0.0%, objects drawn, etc).
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 399
	Threads: 9
	Joined: Dec 2010
	
Reputation: 
0
	 
 
	
	
		Have you tried using the performance profiler plugin? I"m pretty sure that will give you better results on what's lagging your server the most
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,262
	Threads: 260
	Joined: Mar 2009
	
Reputation: 
0
	 
 
	
	
		Anyone with a decent reply? 
I'm sure the 'sand timer' only appears when it is physical server lag and not the gamemode.
Can anyone confirm this?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 10,066
	Threads: 38
	Joined: Sep 2007
	
Reputation: 
0
	 
 
	
	
		The hourglass appears when your client no longer receives information from the server regarding a specific player.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 845
	Threads: 3
	Joined: Jun 2010
	
	
 
	
	
		The network thread is frozen, that's why you get a download rate of 0.0 KB/s and that's also why everyone has that AFK icon. If you can't execute any gamemode command, then it's likely that this is a physical server issue (no warranty). Maybe some other program on that server is taking all resources? That would be the most likely cause.
But it could also be, that the gamemode is somewhere in an infinite loop. You would need some really bad code to cause such a huge lag.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 845
	Threads: 3
	Joined: Jun 2010
	
	
 
	
	
		Relying on the fact that this lag isn't a freeze and you don't get log messages like "Kicking X because they didn't logon...", it is a physical server issue, thus the SAMP server and the gamemode aren't the cause.