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

cpu usage

ZeroSkyer

New Member
Joined
May 17, 2019
Messages
31
Reaction score
4
Location
EEUU
Hey guys, someone help me figure out what is causing lag? It does not come out or that function consumes lag.

VPS Details:
24 GB Ram
6vcores
2.0ghz
SSD


I had already used this vps before and the same server and I got to have 400 online and it barely consumed 50% of the cpu and there were no peaks, this time I opened the server and the CPU consumption is always high, I have approx 100-150 players

perf top.png
 

Deysyyy

New Member
Joined
Jul 12, 2017
Messages
12
Reaction score
2
i was thinking i have ddos i changed like 5 dedicated servers in period of 1 month and lost a lot of money and its probably this problem i m so depressed please tell me how to fix this cancer
 
OP
OP
ZeroSkyer

ZeroSkyer

New Member
Joined
May 17, 2019
Messages
31
Reaction score
4
Location
EEUU
i was thinking i have ddos i changed like 5 dedicated servers in period of 1 month and lost a lot of money and its probably this problem i m so depressed please tell me how to fix this cancer
Well, the simple way is to find the script that is poorly optimized in onThink if that was your problem and eliminate it, I used a system to log all the functions and identify the code. I had a system that verified if the players had more than 4 mcs and the script consumed up to 50% of the cpu with 100 players.
 

Klonera

Working in the mines, need something?
Premium User
Joined
Jul 16, 2016
Messages
933
Solutions
9
Reaction score
265
Location
Sweden
YouTube
Joriku
Well, the simple way is to find the script that is poorly optimized in onThink if that was your problem and eliminate it, I used a system to log all the functions and identify the code. I had a system that verified if the players had more than 4 mcs and the script consumed up to 50% of the cpu with 100 players.
On think can become an dangerous function if used wrong, that's what I've been told.
For anyone using OTBR older then 2022. Remember, updates are there for an reason. Since then, lots of optimizations has been made that was spotted using too much resources.
Go through and see what you can update.
 

Deysyyy

New Member
Joined
Jul 12, 2017
Messages
12
Reaction score
2
Well, the simple way is to find the script that is poorly optimized in onThink if that was your problem and eliminate it, I used a system to log all the functions and identify the code. I had a system that verified if the players had more than 4 mcs and the script consumed up to 50% of the cpu with 100 players.
Can you tell me this command ? thank you
 

potinho

Well-Known Member
Joined
Oct 11, 2009
Messages
678
Solutions
15
Reaction score
52
Location
Brazil
On think can become an dangerous function if used wrong, that's what I've been told.
For anyone using OTBR older then 2022. Remember, updates are there for an reason. Since then, lots of optimizations has been made that was spotted using too much resources.
Go through and see what you can update.
i dont know how to start, can u give us some threads? some tips?
 
Top