Posts: 626
Threads: 76
Joined: Apr 2011
Reputation:
0
When you use the 'gmx' command to restart your server, does it clear stored memory and data? Furthermore, does 'gmx' go through the same process of manually closing samp-server process and re-opening?
Thanks for clarification.
Posts: 626
Threads: 76
Joined: Apr 2011
Reputation:
0
Thanks for the replies. Maybe the reasoning for my question will be more helpful towards an answer. Players have noticed lag in my server after the server has been running for a couple days 24/7. I'm pretty sure this is due to the obvious accumulation of memory and data. To fix this lag, I'm making an auto-restart script in order to refresh the server and remove excess memory which may cause lag.
Knowing the answer to this question will determine whether I can make an easy in-game restart script which simply kicks all players then SendRconCommand("gmx").
or
Creating an external bash script to manually stop and start the server process.
Thanks again.
Posts: 1,266
Threads: 6
Joined: Oct 2014
Gamemode restart time
Code:
native SetModeRestartTime(Float:time);
native Float:GetModeRestartTime();
https://sampforum.blast.hk/showthread.php?tid=513499
Posts: 1,266
Threads: 6
Joined: Oct 2014
Quote:
Originally Posted by lolumadd_
Machine isn't the issue. We are running on a decent powered dedicated server. It's most likely the script. The gamemode has been in development for > 5 years and is huge. Also we have a player base of much more than 20.
I understand that the best solution is to fix the script but its really difficult when the script has grown so large. Unless there are some debugging tools out there I'm not aware of, it seems like an almost impossible task. If a restart clears server memory, then that fix is perfectly fine.
Creating a script to auto-restart the server is not an issue. Does this YSF function restart the server in any different way, or is it just executing Rcon GMX?
|
i'm not sure but i think it restart by other way