Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Pebble's Stray Thread Killer

Pebble's Stray Thread Killer

A server-side mod intended to fix server hanging on restarts by sending shutdown signal to hanging threads after main server thread shuts down.

406
5
AboutChangelogVersions

Is your server console hanging when you issue a stop command? You're not alone. This mod is designed to solve that issue by managing non-daemon threads that often fail to shut down gracefully, causing the server to hang.

How It Works:

The Stray Thread Killer mod monitors the server thread during shutdown and detects any straggling threads that could prevent a clean stop. Once the server stop process is triggered, the mod waits for these stray threads for up to 5 seconds before forcefully sending a halt signal. This approach ensures a smoother shutdown process, allowing your console to reboot normally and preventing those frustrating hangs.

Features:

  • Detects non-daemon threads during server shutdown.
  • Provides a 5-second (configurable) grace period for these threads to complete.
  • Sends a halt signal to ensure the server stops cleanly.

Note: This mod is intended to be lightweight and focused solely on addressing server shutdown issues.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.1
1.20.1

Platforms

Fabric

Supported environments

Server-side

Links

View source

Creators

lilpebs
lilpebs Member

Details

Licensed CC0-1.0
Published 5 months ago
Updated 4 months ago

Modrinth is open source.

main@9fd0f68

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.