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

Server CPU Usage

Axelor

Member
Joined
Sep 2, 2010
Messages
505
Reaction score
9
Hey otland!

I recently looked to mine server cpu usage.
And it was like 200 online - 50% cpu usage.
Is this normal?

Server Info:
-rev 3858
-linux ubuntu 10.04,
-Real-map.
-Intel Xeon i7 W3520 4x2(HT)x2.66+ GHz
-Intel SSD 320 2x 120 GB
-24 GB DDR3 ram


anyone have clue what could be the problem of so much cpu usage.



Repp+
and thx!
 
Last edited:
A lot of calculations.

If you have a high exp server, and weapons dealing much damage, the computer have to "calculate" everything. In small terms its fine. But with messy spells, high hp/mana on players, monstesrs dealing much damage, you dealing much damage, healing much, messy events. All together this gives the CPU alot of strain.

When any OT reach 150+ players online, proper scripts starts to become necessarily.

For an example of you have shop system and global events that runs every second, it will run every second on each player. If it took 3 milli seconds to run this globalevent, with 200 players it would take 600 milli seconds. (Which is over half a second lag) every time the global script runs.
 
A lot of calculations.

If you have a high exp server, and weapons dealing much damage, the computer have to "calculate" everything. In small terms its fine. But with messy spells, high hp/mana on players, monstesrs dealing much damage, you dealing much damage, healing much, messy events. All together this gives the CPU alot of strain.

When any OT reach 150+ players online, proper scripts starts to become necessarily.

For an example of you have shop system and global events that runs every second, it will run every second on each player. If it took 3 milli seconds to run this globalevent, with 200 players it would take 600 milli seconds. (Which is over half a second lag) every time the global script runs.

Hi,

thanks for ur explain!
but a friend told me the globalevent scripts are only using cpu when its in use. Example, someone is buying item from shop system and he receive item.
Only on that procedure the shop.lua is working for that person?
 
Hi,

thanks for ur explain!
but a friend told me the globalevent scripts are only using cpu when its in use. Example, someone is buying item from shop system and he receive item.
Only on that procedure the shop.lua is working for that person?

That is true, but many scripts get stuck in an infinite loop and will always keep running.
For example: If you have Kekox VIP script then it will always run the globalevent to check for player's VIP status and to do the little fancy thing with 'VIP!' popping out.
To reduce the memory usage I highly suggest you remove the "VIP!" script.
 
Back
Top