#weird logs on my server

132 messages · Page 1 of 1 (latest)

torn frost
#

Hi, I'm having this problem on my server, I don't know where it comes from but it's generating a kind of extra downturn, does anyone know how I could fix it? I'd be really grateful <@&340042787896426496>

torn frost
#

help me please D:

quartz mirage
#

Post logs

torn frost
golden wyvern
#

Im getting the same

turbid nebula
#

post the whole log

torn frost
quartz mirage
#

Yes, that is when the log starts

torn frost
#

here it is

#

I also have a problem on my server and that is that when there are more than 50 users and they start to trade with the npcs, the server has a huge increase to the point that it is unplayable

quartz mirage
#

Why copy paste the contents when you can upload the actual file

vague breach
#

If you kick all players

#

And then let them rejoin one by one you should figure out who is causing it

torn frost
turbid nebula
#

that'd likely indicate that you have a broken mod

vague breach
#

Or plugin

#

Actually could be a broken hotkeys plugin or something

ember wasp
#

I think it's Unturned related bug

#

I maybe will report it when I will able to reproduce it

vague breach
#

I really dont think so. PlayerMovement just doesnt start throwing null reference exceptions

ember wasp
#

it was started when Nelson added a thing to slide from zombies head

vague breach
#

Ooo i mean true fair point

#

Slight issue

#

How would that even be possible

#

It literally checks if its null

ember wasp
#

yes but Nelson tries to get gameobject

#

and hit tries to get gameobject from destroyed collider

vague breach
#

Not possible the collider would be null

ember wasp
vague breach
#

Oh i didnt realise it was a custom class

#

Kinda missed that

#

Silly me

#

However how would ControllerColliderHit not be null when its collider is?

#

Unless like

#

Well

#

Hm

#

It was destroyed after the collider hit was created?

#

Which is like uuh fair enough i guess

ember wasp
#

yep

vague breach
#

Ah i see the issue

#

Nelson is doing
Set most recent controllercolliderhit = controllercolliderhit in the OnControllerColliderHit

And then uses it outside of that event method so its not guaranteed that the collider has not been destroyed

#

@ember wasp I mean you could write a silly little Bug report ig

#

I mean you figured it out, if you can replicate it then get the credit or something

torn frost
#

And how could I solve it on my server?

#

and if anyone knows about the problems of the npcs, when buying they generate a lot of lagg and the ms shoot up a lot, I have tried deleting all the mods, all the plugins and restarting everything

turbid nebula
#

as far as I know there shouldn't be any vanilla behaviour affecting that, at least not to any noticeable extent, meaning that it's almost certainly either a plugin or mod issue

torn frost
#

the problem is to find out which specific one is causing the lagg

turbid nebula
#

just try the tried-and-true method of removing (not just disabling) everything and re-adding things one-by-one to see when the issue starts happening

#

there is also a possibility that the server is overloaded which could cause all kinds of compounding issues

torn frost
#

I have a vps with a lot of power, it shouldn't be an overload or so I think

#

I have a huge list of plugins and mods so I'm going to have to measure one by one😭

#

I used a boweyD program to create the npcs, could that be the problem?

turbid nebula
turbid nebula
turbid nebula
#

plugins are often the main culprit for things like this - mods (unless they add complex behaviours) generally mostly affect RAM usage and client performance, not so much server performance itself

torn frost
#

and where can I see that of the strength of a thread and if my server is using it?

#

I'm still a bit new to this sorry

turbid nebula
#

generally all threads are roughly equivalent, the problem here essentially just comes from the fact that a lot of things on the server will be using the same thread that the server is using - hence potentially overloading it with work

#

multi-threaded workloads, per the name, can split the work across multiple threads

#

for example a VPS advertised as having 4 cores/vcores/threads (all would often be used to mean the same thing in this context even if thread or vcore is generally going to be the correct one) hosting a single server could potentially never be using more than one thread no matter how many plugins/players/etc. you have

#

basically for single-thread performance the key factors are clock speed and IPC (Instructions Per Clock) which essentially tell you how much work that thread can do in a given amount of time

#

generally consumer-oriented CPUs will have higher single-thread performance as it often is the main limiting factor for things like gaming whereas server CPUs will often have more cores but perform lower on a per-thread basis

#

having lower single-thread performance is also fine as long as you're not limited by it and more cores is better if you can use those cores - for example if you wanted to host many servers at once on a single VPS you'd want to get one with enough vcores to match the servers' requirements

torn frost
#

the problem is that the node is going with a stable latency but my server goes from 60ms to 300ms in 2 seconds

#

and it goes with lag

turbid nebula
#

as was mentioned it's almost certainly a plugin or mod issue, not a host issue

#

as I said the issue can be compounded (i.e. made worse) by low specs

#

but it's not the root cause

torn frost
#

So is there a way to mitigate this error?

turbid nebula
#

Yes, figure our which mod/plugin causes it and remove it

torn frost
#

I have been looking for someone expert to help me because I do not understand what the problem could be, I have deleted many mods and many plugins but the problem persists

#

I can pay if necessary but I need to fix it :(

turbid nebula
#

just delete everything, check that things work at that point, and re-add things one-by-one until they stop working

#

it's quite simple

torn frost
#

the problem is that the error is manifested when there are many users connected

turbid nebula
#

that'd usually indicate that it's specifically caused by a plugin

torn frost
#

So you recommend me to delete all the plugins and go plugin by plugin testing?

turbid nebula
#

Yes

torn frost
# turbid nebula Yes

Hello, I already tried deleting the plugins, but when I delete all the plugins the npc works fine, but when I add one the problems start

turbid nebula
#

that sounds a lot like you've found the culprit

torn frost
#

They are the plugins, but which one specifically?

#

because I have to delete all the plugins so that the npcs do not get bugged

rose wolf
#

if its literally all of the plugins i recommend saving most of your server data and reinstalling the server

#

cause im not quite sure if its the plugins you add or the server it self

torn frost
#

I did that a few days ago and the error persists😔😔

rose wolf
#

it could be the npcs. have you tried without them?

#

slim chance but should test

torn frost
#

the problem is when I interact with them the lagg appears, but when I remove all the plugins the server works fine

#

npcs don't give lagg whitout plugins

#

before we thought it was an experience problem, since our npcs trade with experience

rose wolf
#

well it could be a npc bugging with a plugin somehow. have you tried with all plugins but no npcs?

torn frost
#

on another map with other npcs we didn't care about the error a while ago

rose wolf
#

?

torn frost
#

Sorry my english is bad

#

I tried using another map and with other npcs but the lagg persist

#

In a long time ago i tried that

rose wolf
#

did you try without any npcs at all or just different ones?. also were the npcs made by the same person

torn frost
#

they were npcs made by a diferent person

#

Some time ago this error was much more noticeable, one traded with npcs and the lagg increased and the server crashed, now it increases but not much, when there are many users it is the problem, the first time to solve it I reinstalled all the plugins and it was fixed, but after a few weeks the problem returned but with less intensity, I tried reinstalling the plugins, but it didn't work

rose wolf
#

could one of the plugins be using json files? cause when those get long they get laggy

#

cause unturned reads the whole json file rather then a specific part of it

#

which could explain why it takes time to show up again

#

sorry if it was asked already. figured this might be a culprit on a big server

vague breach
#

Json wouldnt cause persistent lag only block the server or slow it down when the plugin is loaded

vague breach
rose wolf
#

could be using the uconomy xp plugin if i remember correctly uses json.

#

could check rq

torn frost
rose wolf
torn frost
#

use a database file}

#

its .db

rose wolf
#

like litedb?

torn frost
#

idk that D:

#

look

#

this archive is

turbid nebula
#

plugin could be running an internal db server for all we know GrieferThonk

rose wolf
#

not sure

turbid nebula
#

*I'm not actually trying to imply that it's doing that, it'd be really inefficient

torn frost
#

it has a folder called database, it doesn't use mysql