cnaude / PurpleIRC

Minecraft Bukkit plugin that provides an IRC bridge. This repo has been archived. Please see https://github.com/cnaude/PurpleIRC-spigot for the latest and greatest PurpleIRC code for Bukkit servers (Spigot, Paper etc...)
20 stars 9 forks source link

PurpleIRC running massive threadpool #112

Open TerrorBite opened 9 years ago

TerrorBite commented 9 years ago

PurpleIRC (or more accurately, pircbotx) seems to be running an excessively huge threadpool in order to carry out its IRC tasks. At last count "listenerPool0" was running 54 threads on my server. I'm running a single bot and I feel that at most four threads would be needed to handle this. The current setup is a large waste of resources.

cnaude commented 9 years ago

Are any of the threads consuming too many resources?

TerrorBite commented 9 years ago

I've been running into out-of-memory issues with this server, and disabling PurpleIRC seems to have helped (no more crashes for now), though I'm unsure exactly how large of an impact it's having.

cnaude commented 9 years ago

What version of CraftBukkit? What version of PurpleIRC? What version of Java? What other plugins are you running? What are your jvm options? If you can generate a heap dump that would be extremely helpful.