▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/ShyamDuels
ShyamDuels

ShyamDuels

A modern, high-performance duel plugin.

78
4
Все версииMemory & Concurrency Fixes

Memory & Concurrency Fixes

Beta3 нед. назад

Список изменений

Fixes

  • Resolve unbounded playerKitCache memory leak by replacing with Caffeine cache (max 1000 entries, 1h expiration).
  • Properly clean up FFA player counts to prevent orphaned arena entries.
  • Replace non-thread-safe HashMap with ConcurrentHashMap for arena task handling.
  • Synchronize DuelManager.markEnding() to prevent race conditions and double duel endings.
  • Protect duel state transitions with synchronized blocks.
  • Resolve multiple thread-safety issues in FFAManager.
  • Add database connection timeouts and health checks.

Performance

  • Optimize FFA player count lookup from O(n) to O(1) using a counter map.
  • Introduce DatabaseManagerOptimized with C3P0 connection pooling.
  • Add separate connection pools for SQLite (1–5) and MySQL (3–20).

Chore

  • Remove unused imports and minor cleanup.

Performance Gains:

  • 10-1000x faster FFA player count lookups
  • 75% memory reduction for player kit cache
  • 10x faster database operations
  • Eliminated race conditions in duel ending

Stability Improvements:

  • No more ConcurrentModificationException
  • No more memory leaks from unbounded caches
  • No more "too many connections" errors
  • No more double-ending duels

Файлы

shyamduels-1.0-SNAPSHOT.jar(658.53 KiB)
Основной
Скачать

Метаданные

Канал релиза

Beta

Номер версии

1

Загрузчики

Paper
Purpur

Версии игры

1.21–1.21.11

Загрузок

4

Дата публикации

3 нед. назад

Загрузил

ID версии

Главная