Massive server lag

Post Reply
tai
New member
Posts: 2
Joined: Thu May 19, 2022 09:36
GitHub: taiBsu

Massive server lag

by tai » Post

Hi everyone,
I have just recently discovered the Minetest project and immediately set up a server for it using Docker Hub.
Everything works so far, however, when doing anything in the inventory or when interacting with the world, I am getting massive lags between 1 and even 8 to 10 seconds.
The machine this server runs on is in my local network and has a ping of <=5ms. Furthermore, I'm also having a Minecraft server running on it which works completely flawless.

I'm not getting any error output in the server logs:

Code: Select all

minetest    | 2022-05-18 22:24:28: ACTION[Server]: taibsu places node default:torch_wall at (-270,16,185)
minetest    | 2022-05-18 22:24:29: ACTION[Server]: taibsu places node default:torch_wall at (-273,16,185)
minetest    | 2022-05-18 22:24:31: ACTION[Server]: taibsu places node default:torch_wall at (-275,16,189)
minetest    | 2022-05-18 22:24:32: ACTION[Server]: taibsu places node default:torch_wall at (-275,16,188)
minetest    | 2022-05-18 22:24:32: ACTION[Server]: taibsu digs default:torch_wall at (-275,16,189)
Does anyone have any experience with server lags and could this be possibly a configuration problem inside the minetest server?

Thanks a lot in advance!

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Massive server lag

by Festus1965 » Post

need data:
* htop :
** threads and what is avg usage pc and / or single CPUs
*** there the % usage of minetestserver (+memory %)
** memory builtin, used, cache, free
* also with 'free -m'

any special settings at minetest.conf ?

what database or sqlite3 as default ?

so far ...
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

tai
New member
Posts: 2
Joined: Thu May 19, 2022 09:36
GitHub: taiBsu

Re: Massive server lag

by tai » Post

Information from HTOP:
- minetest running in 4 threads
- CPU usage: ~1.9%
- MEM usage of minetest: ~0.9%
- MEM builtin: 16GB
- MEM used: 8.3GB
- max threads from CPU: 12

edit: using the default database, no special settings in minetest.conf.

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Massive server lag

by Festus1965 » Post

hmm, nothing bad to detect yet,
when you open htop and sort by TIME+ how much apps are there in front, consuming more time (sum) and also more CPU % during watch ?

what kind of disc at server (M.2, ssd, hdd) ?

how do you detect the 'lag' ?

even max_lag is estimated ... look a bit /status the shown max_lag

then :
what game is running ?
do you have any of this top imkpact ranked mods installed ?

otherwise put this lines into minetest.conf:

Code: Select all

profiler = true
profiler.load = true
profiler.default_report_format = txt
and restart ... then after server run for a good day or more, login in and do as server, admin ...

Code: Select all

/profiler save
getting the folder, world folder, where it will be saved and check it out.

It is listing group of mod, with including code part, using % of all work mt does,
you have to find the top 3 mods, where the last avg % are the most of them all
a bit sorting, but helpful - good hint.
Last edited by Festus1965 on Sun May 22, 2022 01:26, edited 1 time in total.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: Massive server lag

by sfan5 » Post

Although Docker shouldn't pose a problem I can suggest trying without it. Alternatively there's also the official Docker image (not sure how well this is tested).
Which version were you running, by the way?
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests