A thread pool is a tool for managing threads based on the idea of pooling.
Using a thread pool reduces the overhead of creating and destroying threads and avoids running out of system resources due to too many threads.
The use of thread pools is essential in highly concurrent and high-volume task processing scenarios.
If you have actually used thread pools in your projects, I believe you may have encountered the following pain points:
-
Thread pools are defined randomly, with too many thread resources, causing high server load.
-
The thread pool parameters are not easily evaluated and the business is at risk of failure.
-
Thread pool task execution time exceeds the average execution cycle and developers are not informed.
-
Thread pool tasks pile up and affect business operations.
-
Wireless process pool monitoring when the service has timeouts, meltdowns, and other problems.
-
Thread pools do not support the passing of runtime variables, such as MDC contexts.
-
When a project is closed, a large number of running thread pool tasks are discarded.
-
Thread pool running, task execution stopped, don't know the problem.
Hippo-4J through the JDK thread pool enhancements, as well as extending the three-party framework underlying thread pools and other features for business systems to improve online operational security capabilities.
The following functional support is provided:
-
Global Control - Managing Application Thread Pool Instances.
-
Dynamic changes - dynamically changing thread pool parameters at application runtime.
-
Notify alarms - Four built-in alarm notification policies.
-
Run Monitoring - Real-time view of thread pool runtime data.
-
Feature extensions - support for thread pooling task passing contexts, etc.
-
Multiple Modes - Two built-in usage modes: Configuration Center Mode and No Middleware Mode.
-
Container Management - Tomcat, Jetty, Undertow container thread pool runtime view and thread count changes.
-
Framework adaptation - Dubbo, Hystrix, Polaris, RabbitMQ, RocketMQ and other consumer thread pool runtime data view and thread count changes.
For local presentation purposes, see Quick start.
Demo Environment: http://console.hippo4j.cn/index.html.
More companies with access are welcome to register at registration address, registration is only for product promotion.
Thanks to all the developers who contributed to the project. If interested in contributing, refer to good first issue.