• 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!

Problem with server 1sec lag on VPS

Czorcik

New Member
Joined
Aug 29, 2023
Messages
25
Reaction score
2
Hello i started testing my ots today. I found some problem on my srv its EVO 8.6 tfs 0.4
Eveyrhing works smooth but every 30 sec i get 1sec lag and then everything is back to normal. Other players have the same problem.

I use OVH VPs
Windows 10
4cores
16gb ram
80gb disk space

Any solution for this ?
 
<globalevent name="save" interval="900000" event="script" value="save.lua"/>


local config = {
broadcast = {120, 30},
flags = 13,
delay = 120,
events = 30
}

local function executeSave(seconds)
if(isInArray(config.broadcast, seconds)) then
doBroadcastMessage("Server save within " .. seconds .. " seconds, please mind it may freeze!")
end

if(seconds > 0) then
addEvent(executeSave, config.events * 1000, seconds - config.events)
else
doSaveServer(config.flags)
end
end

function onThink(interval)
if(table.maxn(config.broadcast) == 0) then
doSaveServer(config.flags)
else
executeSave(config.delay)
end

return true
end

AND CONFIG.LUA
globalSaveEnabled = false

globalSaveHour = 24

globalSaveMinute = 0

shutdownAtGlobalSave = false

cleanMapAtGlobalSave = false
 
not save then, check your cpu usage during these lag times + disc usage, if any of these hit 100% its why there is a lag + why u're using windows vps to host server anyway
 
It was easier for me to setup
Post automatically merged:

I see CPU going from 3% to just 26%
 
Last edited:
Hello i started testing my ots today. I found some problem on my srv its EVO 8.6 tfs 0.4
Eveyrhing works smooth but every 30 sec i get 1sec lag and then everything is back to normal. Other players have the same problem.

I use OVH VPs
Windows 10
4cores
16gb ram
80gb disk space

Any solution for this ?
It is not even possible to get that specification for a VPS.
The Comfort version only have 8gb ram, maybe this is your problem?
 
Back
Top