DiscordSRV

DiscordSRV

86.8k Downloads

High cpu usage channel topic updater

popcorn9499 opened this issue · 6 comments

commented

I am having a issue with high cpu usage with your plugin. It seems to be related to one class link

I dont know java that well but from when i was reading the visualvm profiling i saw this class have all the tick look. I disabled the channel topic updater rate by doing -1 and it seemed to negate the issue but i still feel like this is a bug since that was alot of cpu for updating every 5 seconds. I am unsure what exactly you would like me to do but ill help test this.

versions

Spigot 1.11
discordsrv 12.4

I hope this helps please mention anything if you find anything new on this

commented

how would i go about disabling it then because not doing that your plugin used all of one core. by creating that loop it used like 2% of a core. If it was in a loop would it of not used more? just asking. I did -1 because thats how most mod/plugin devs disable stuff. Now i would like to understand the underlying issue not how i incorrectly disabled the changing topics

commented
commented

The topic messages thing was blank and it didn't help even

commented

If the topic message formats were blank the thread wouldn't be activate at all in the first place. Closing because I can't reproduce this.

commented

forgot to add this. its the profiling of the cpu link its just a screenshot

commented

I disabled the channel topic updater rate by doing -1
That is not how you disable the channel topic updater. You've probably put it into a loop where the topics are constantly updating.