Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hitch Warnings by esx_status #15

Open
AI-Wall3 opened this issue Nov 14, 2024 · 12 comments
Open

Hitch Warnings by esx_status #15

AI-Wall3 opened this issue Nov 14, 2024 · 12 comments
Assignees

Comments

@AI-Wall3
Copy link

esx_status
I dont know why it make so high ticks on server with 16 players

@Mycroft-Studios
Copy link
Member

Is this client, or server side?

@AI-Wall3
Copy link
Author

server side profiler

@AI-Wall3
Copy link
Author

CreateThread(function()
while true do
Wait(10 * 60 * 1000)
local parameters = {}
for _, xPlayer in pairs(ESX.GetExtendedPlayers()) do
local status = ESX.Players[xPlayer.source]
if status and next(status) then
parameters[#parameters+1] = {json.encode(status), xPlayer.identifier}
end
end
if #parameters > 0 then
MySQL.prepare('UPDATE users SET status = ? WHERE identifier = ?', parameters)
end
end
end)

@Mycroft-Studios
Copy link
Member

What hosting do you use for your server?

@AI-Wall3
Copy link
Author

Server-Version: 11.5.2-MariaDB-deb12-log - mariadb.org binary distribution , Node: v16.9.1
OS: Linux 6.1.0-26-amd64
CPU Model: pc-i440fx-7.2
CPU Stats: 12c/12t - 2 GHz
CPU Usage: 6%
Memory: 8% (3.73/47.04)

@Mycroft-Studios
Copy link
Member

Which provider?

@AI-Wall3
Copy link
Author

contabo, german hosting

@Mycroft-Studios
Copy link
Member

so, a VPS or dedicated server, right?

@AI-Wall3
Copy link
Author

VPS yes

@AI-Wall3
Copy link
Author

so you think its a server problem?

@Kenshiin13
Copy link
Contributor

so you think its a server problem?

I will refactor esx_status this week. We'll see if that helps :).

@Kenshiin13
Copy link
Contributor

@AI-Wall3 Can you please try the newest version of esx_status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Be Tested
Development

No branches or pull requests

3 participants