Troubleshooting "Packet Flooding: Player Tick"

Hello everyone!

Im writing this post now in desperation as I have had this issue for a while now and it hurt's my community pretty bad atm. 

I get pretty often "Packet Flooding: Player Tick" on my server/s and everyone get's kicked emptying the server. I have always thought it have been network related as I host the server from my own apartment. Things such as the network getting a spike or something similar, I have 300 mbit/s in upload.

But today I can exclude my thoughts about it being a network issue. Because when everyone got kicked on my #2 server for Ticket flooding noone got kicked or noticed any lags what so ever on my #1 and #3 server and yet they are hosted on the same dedicated box and network.

So my thoughts are now that it must be a plugin or plugins that cause the server to freeze for a short time causing everyone to get kicked. My question is if there is a way or method to find out what is causing these kicks / freezes / spikes?

Server box:

i7-4770k (Delided) 3.5-4.2 GHZ

32 GB DDR3

3x 120 GB SSD's (All server's are spread out on each disk to give each server more writing speed)

Usually it happens when the server lags or network and server processes all rust packets at once. Search for "Calling XXX on plugin XXX took XXms" messages (warnings) in the console.
5b6ed4c9ac8e4.jpg misticos
Usually it happens when the server lags or network and server processes all rust packets at once. Search for "Calling XXX on plugin XXX took XXms" messages (warnings) in the console.

Anyway to check logs? As scrolling in the server console will freeze / crash the server.



Merged post

11:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took 2032ms
11:53 [Info] [Better Chat] [Pro] ☪ Mr.Khan ☪: lagg
11:53 [Info] [Better Chat] [New] FDF: +
11:53 [Info] [Better Chat] [Settled] ШАмпунь #MAGICRUST: yes
11:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took 817ms
11:53 [Info] [Better Chat] [New] Doxx: yepp
11:53 [Info] [Better Chat] [Settled] Xeno: a lot of lag
11:53 [Info] [Better Chat] [New] PseUdOnFiRe: yes
11:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took 254ms
11:53 [Info] [Better Chat] [Regular] xJustGoAway: lag wtfd
11:53 [Info] [Better Chat] [Pro] ☪ Mr.Khan ☪: lagg
11:53 [Info] [Better Chat] [Pro] ☪ Mr.Khan ☪: fix it pls
11:53 [Info] [Better Chat] [New] patrol: цеа
11:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took 158ms
11:53 [Info] [Discord Extension] Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1579431236, time now: 1579431232
11:53 [Info] [Better Chat] [New] patrol: wtf
11:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took average 1454ms
11:53 [Info] [Better Chat] [Regular] Mac Daddy: not now man
11:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took 1235ms
11:54 [Info] [Better Chat] [Regular] szucsu: lag
11:54 [Info] [Better Chat] [New] patrol: lags

 

This must be the maincause I think.. But I never thought BetterChat would be a performance issue..

I think it's more like BetterChat calling it's own hooks manually causes it. @LaserHydra

This was right before everyone got kicked at around 18:15.. But it didnt call any hooks? Could it be TebexDonate plugin? It makes me wanna think it's network issue like it spiked.. But if it was network issues everyone should of get kicked on the other servers aswell which they didnt.

 

18:14 [Warning] [Tebex Donate] Attempting to process commands in the queue...
18:14 [Warning] [Tebex Donate] There are no online commands that need to be processed!
18:14 [Info] [Better Chat] [Loyal] [VIP+] Gustav Ahr | (/3: i wanna raid him so much
18:14 [Info] [Better Chat] [Loyal] [VIP+] Gustav Ahr | (/3: he door camped me so many times
18:15 [Warning] [Tebex Donate] Attempting to log all stored connection events...
18:15 [Warning] [Tebex Donate] Attempting to process commands in the queue...
18:15 [Warning] [Tebex Donate] There are no online commands that need to be processed!
18:15 [Warning] [Tebex Donate] Successfully logged all stored connection events!
18:15 [Info] [Better Chat] [Loyal] [VIP+] Gustav Ahr | (/3: lag :D
18:15 [Info] [Better Chat] [Loyal] rikardrules: lag
18:15 [Info] [Better Chat] [Regular] Xeno: lag
18:15 [Info] [Better Chat] [New] OberstLynild: ....
18:15 [Info] [Better Chat] [Beast] Mjew: wtf

I mean if the warnings are from Better Chat then there is a plugin that uses Better Chat a lot or you just have way too many Better Chat plugins.
5b6ed4c9ac8e4.jpg misticos
I mean if the warnings are from Better Chat then there is a plugin that uses Better Chat a lot or you just have way too many Better Chat plugins.

I have the following betterchat related plugins:

BetterChatGlobalMute.cs

BetterChatIgnore.cs

BetterChatMentions.cs

BetterChatMute.cs

BetterSay.cs (not sure if this one is related to betterchat).

 

So if I got you right, I should remove some of these?

Please check what other plugins you have installed which might use Better Chat. While Better Chat obviously has some overhead over vanilla chat, I don't see a reason it alone would take 2 seconds to process, without something else playing a part in that.


Just to not entirely eliminate that thought though, how many Better Chat groups do you have?

 

EDIT: I see you just now already posted a list of your Better Chat addons. Please see if you can figure out if you have anything else which modified the chat in any way.

5b5bc6885b278.png LaserHydra

Please check what other plugins you have installed which might use Better Chat. While Better Chat obviously has some overhead over vanilla chat, I don't see a reason it alone would take 2 seconds to process, without something else playing a part in that.

Just to not entirely eliminate that thought though, how many Better Chat groups do you have?

 

EDIT: I see you just now already posted a list of your Better Chat addons. Please see if you can figure out if you have anything else which modified the chat in any way.

Nothing else is modifying the chat, no more plugins what I know of. 

I also checked my BetterChat.json in the data folder, I have around 15 ish better chat groups.

We mean any plugin that works WITH BetterChat can cause it.

Merged post

Not any other chat plugin itself.

Anyways..

I have now disabled alot of demanding plugins and enabled performance mode on some other plugins aswell.. Removed about 5-10 of them, including some sisters to BetterChat like bettermentions.cs etc etc. I will see how it goes and let it run for a few days.

Happend again, everyone got kicked from flooding.

I have now checked the history of the two recent masskicks. What they both have in common is that TebexDonate plugin execute the commands causing it to freeze.

18:15 [Warning] [Tebex Donate] Attempting to log all stored connection events...
18:15 [Warning] [Tebex Donate] Attempting to process commands in the queue...
18:15 [Warning] [Tebex Donate] There are no online commands that need to be processed!
18:15 [Warning] [Tebex Donate] Successfully logged all stored connection events!
18:15 [Info] [Better Chat] [Loyal] [VIP+] Gustav Ahr | (/3: lag :D
18:15 [Info] [Better Chat] [Loyal] rikardrules: lag
18:15 [Info] [Better Chat] [Regular] Xeno: lag
18:15 [Info] [Better Chat] [New] OberstLynild: ....
18:15 [Info] [Better Chat] [Beast] Mjew: wtf                       < ----------------  !!After "wtf" everyone got kicked!!

20:14 [Warning] [Tebex Donate] Attempting to log all stored connection events...
20:14 [Warning] [Tebex Donate] Successfully logged all stored connection events!
20:15 [Warning] [Tebex Donate] Attempting to process commands in the queue...
20:15 [Warning] [Tebex Donate] There are no online commands that need to be processed!
20:15 [Info] [Better Chat] [Settled] Gnagster Jaffar byn!: WOW                      < ----------------  !!After "WOW" everyone got kicked!!

Remove all the Better Chats and Tebex for now and see if it's fixed.

Also make sure you were using the most recent version and your oxide is up to date.

12:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took 31912ms
12:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took average 3ms

But why is betterchat being such a performance thief? I've disabled all sister plugins and are now only using BetterChat and BetterMute and yet This happen..

After removing Tebex and some other demanding plugins the player flood tick kicks have seemed to dramaticly decreased..

Bagge

12:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took 31912ms
12:53 [Warning] Calling 'OnPlayerChat' on 'BetterChat v5.2.1' took average 3ms

But why is betterchat being such a performance thief? I've disabled all sister plugins and are now only using BetterChat and BetterMute and yet This happen..

After removing Tebex and some other demanding plugins the player flood tick kicks have seemed to dramaticly decreased..

For a plugin to take 30 seconds to execute code in a hook, there's something else fishy going on with your server. General server performance can contribute to this as well.

5e13a8d5b2bc5.jpg Wulf

For a plugin to take 30 seconds to execute code in a hook, there's something else fishy going on with your server. General server performance can contribute to this as well.

Im hosting 3 rust servers on the same i7 4770k processor. Could that maybe be the issue? even though 2 of them are mostly empty.