[SOLVED] Yarn high tick usage

Hi everyone,

I have a problem with my tick usage server-side.

[ citizen-server-impl] server thread hitch warning: timer interval of 154 milliseconds
[ citizen-server-impl] server thread hitch warning: timer interval of 178 milliseconds

After investigations this issue comes from yarn.

One of his loops seems to be slowing down the server every 4s.

There is only chat and screenshot-basic that are using it.
I can replace chat but I don’t think I can replace screenshot-basic in order to remove yarn.

What can I do ?

The yarn resource doesn’t even have any tick routines. Are you sure you (or some script you’re using) didn’t somehow modify anything in there, or add some additional script?

1 Like

Yes I know it’s a builder, this is why I didn’t understand this problem.
But you are true, the script has been modified. After replacing it by the original one, the issue disappeared !
It’s weird because it was installed by txAdmin at the beginning of the server and the issue only appeared two weeks ago.
Thank you for your answer

The issue came back …
I noticed yarn_builder.js has been modified by something today at 5 AM (after the auto-restart).
If I remove the writing permission of this file, should it work properly without being edited by something ?

File comparison between github and mine

If the file keeps being modified to include that code it’s highly likely other resources are infected too, to infect eachother.

1 Like

i have the same problem you have find what ressource cause this issue ?