Thread leak - "Java Sound Manager"
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start with the MidiJingleSequencer code referenced in the issue and reproduce the behavior by monitoring threads while players log in and out on a vanilla server with CommandBook. Done means player logouts no longer leave accumulating "Java Sound Manager" threads.
Written by the indexing model from the issue text.
Description
Hello,
While debugging my own plugin, i added a command to monitor the threads used by bukkit and all the plugins.
I saw something strange in the output of the command, about 200 "java.util.Thread" called "Java Sound Manager".
So i did some tests with a vanilla server, a craftbukkit server without plugins and after i added all the plugins one by one.
Finally it seems that this kind of Thread is created by CommandBook.
Each time a player logged on the server, a Thread "Java Sound Manager" is created, but this thread is never destroy when the player logout. So after a few hours, depending on how many players you have on your server, you have a lot of useless threads still running :/
Like you said in your code comment in MidiJingleSequencer : " Sounds like utter crap" ^^
Tikkub
- Dominant language
- Java
- Stars
- 151
- Forks
- 104
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EngineHub/CommandBook
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
EngineHub/CommandBook#294 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
EngineHub/CommandBook#285 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
EngineHub/CommandBook#283 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
EngineHub/CommandBook#282 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
EngineHub/CommandBook#281 ·
All issues in EngineHub/CommandBook
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100