kangarko / ChatControl-Pro

The ultimate chat solution. Prevent spam, ads, swears and even bots on your server. Replaced by ChatControl Red: https://mineacademy.org/chatcontrol-red
Other
65 stars 8 forks source link

1.17.1: Is Chat Control Causing Startup Time Delay? #2324

Closed lushsurvival closed 2 years ago

lushsurvival commented 2 years ago

I am using purpur 1.17.1 and I know that it explicitly states that there is no support but if you have any insight into this it would be greatly appreciated. My startup used to take less than 5min or so. Now it is taking about 10min. Here is what happens on startup:

11:15:35 INFO: [ChatControlRed] Enabling ChatControlRed v10.4.9 11:15:35 INFO: 11:15:35 INFO: | || || | | | | |\ | | |/ | | | 11:15:35 INFO: | | | | | | | || | | | | \ || | 11:15:35 INFO:

11:15:35 INFO: WARNING: You are not using Paper! 11:15:35 INFO:
11:15:35 INFO: Third party forks such as Tuinity are known to alter 11:15:35 INFO: our plugin's behavior. If you have any problems, test 11:15:35 INFO: using Paper, otherwise you WILL get NO SUPPORT

[11:15:36 INFO]: Warning: Your server is in offline mode, where UUIDs generate for every username. We recommend setting UUID_Lookup to false in mysql.yml to avoid data issues. [11:15:36 INFO]: [Lands] [Integrations] 3rd party plugin hooked into Lands: ChatControlRed [11:15:36 INFO]: [PlaceholderAPI] Successfully registered expansion: chatcontrolred

Pauses for about 5 min at 300% CPU usage:

[11:20:06 INFO]: Note: Hooked into mcMMO to spy channels [11:20:06 INFO]: [DiscordSRV] API listener org.mineacademy.chatcontrol.lib.model.DiscordListener$DiscordListenerImpl unsubscribed [11:20:06 INFO]: [DiscordSRV] API listener org.mineacademy.chatcontrol.lib.model.DiscordListener$DiscordListenerImpl subscribed (2 methods) [11:20:07 INFO]: [PremiumVanish] Enabling PremiumVanish v2.7.1 [11:20:07 INFO]: [PlaceholderAPI] Successfully registered expansion: premiumvanish [11:20:07 INFO]: [PremiumVanish] Hooked into PlaceholderAPI [11:20:07 INFO]: [PremiumVanish] Hooked into Essentials [11:20:07 INFO]: [DiscordSRV] Enabling DiscordSRV v1.23.0 [11:20:07 INFO]: [PremiumVanish] Hooked into DiscordSRV [11:20:08 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [11:20:08 INFO]: Starting GS4 status listener [11:20:08 INFO]: Thread Query Listener started [11:20:08 INFO]: Query running on 0.0.0.0:25572 [11:20:08 INFO]: Running delayed init tasks

Any idea what is causing this 5min pause on the startup?

kangarko commented 2 years ago

Assuming your data.db or mysql database got oversized somehow, remove that file/delete your chatcontrol database and it should go away.