• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Linux Peeks of Memory RAM on Server Running

Stellow

C++/C#/PHP/LUA
Joined
Oct 23, 2008
Messages
1,112
Reaction score
221
Location
Germany
GitHub
eubrunomiguel
I have noticed that few times server freezes. I check for the network history to see peeks of incoming packages, everything normal. Which it suggests that the problem may be during a processing on any part of the server. Do you server owners and creators, have any tips to localize areas in the server that is having problem to process information, which may be causing the peeks of freeze?
 
You could Check this..
https://otland.net/threads/things-you-may-not-know.240893/#post-2352397

If you add an additional check (Probably os.clock()?) , to see how long each function is taking, it may be useful to follow up with after you see a freeze.
You could just check the milliseconds it took for the operation. If you see something taking more then 2-3 milliseconds it'll probably be the culprit of the freezes.
For instance, my "chest system" that's probably terribly coded.. with the maximum 400 items (all different) being delivered to a player takes 0-1 milliseconds when I checked it previously.

Maybe @MatheusMkalo can post an altered version of the above script for you. :P
 
You could Check this..
https://otland.net/threads/things-you-may-not-know.240893/#post-2352397

If you add an additional check (Probably os.clock()?) , to see how long each function is taking, it may be useful to follow up with after you see a freeze.
You could just check the milliseconds it took for the operation. If you see something taking more then 2-3 milliseconds it'll probably be the culprit of the freezes.
For instance, my "chest system" that's probably terribly coded.. with the maximum 400 items (all different) being delivered to a player takes 0-1 milliseconds when I checked it previously.

Maybe @MatheusMkalo can post an altered version of the above script for you. :p

That is really awesome intel, and make me realized something. Maybe this freezes are not coming from the source itself, and do from the scripts attached on it.
Sometimes we start piling everything and lose track on what had be done.
Thank you for the answer, clocking and logging function time, and maybe how many times functions are called per unit of time would sure be helpful.
What would you say would be a frequency of callings to high, and amount of time on function call that would be prejudicial?
 
That is really awesome intel, and make me realized something. Maybe this freezes are not coming from the source itself, and do from the scripts attached on it.
Sometimes we start piling everything and lose track on what had be done.
Thank you for the answer, clocking and logging function time, and maybe how many times functions are called per unit of time would sure be helpful.
What would you say would be a frequency of callings to high, and amount of time on function call that would be prejudicial?
I'm not really the best person to ask, but I would assume 0 ms for simple scripts.. maybe 1ms for longer scripts.. 2 ms for a super complicated script.
Anything higher then that is simply not coded properly imo.
 
Back
Top