Overview
Version
Report Server Version | Functional Change |
---|---|
11.0 | - |
11.0.32 | Optimized trigger logic and prompt. |
Function Description
Problems such as thread blocking may occur when you access project resources, which often lead to project downtime.
Fanruan provides the resource scheduling thread circuit breaker function to provide underpinning method of fault tolerance for thread blocking problems and reduce the risk of downtime.
Description
Function Enabling
If you want to enable the resource scheduling thread circuit breaker function, you should select the corresponding opening steps according to your situation as the steps to enable the function are different for different versions of FineReport.
FineReport Version | Enabling Procedure |
---|---|
Version 11.0.9 and Lower Versions | You need to install the Circuit Breaker of Resource Schedule plugin of version V1.4.3 and above to enable the resource scheduling thread circuit breaker function. You can click to download plugin: Circuit Breaker of Resource Schedule For details about how to install the plugin in the designer, see Designer Plugin Management. For details about how to install the plugin on the server, see Server Plugin Management. ![]() |
Version 11.0.30 and Higher Versions | 1. Log in to the decision-making system as the admin and choose System Management > System Setting > General. 2. Enable Thread Circuit Breaker in Downtime Prevention Configuration. ![]() |
Function Entry
When the function is enabled, the following conditions take effect automatically.
1. Replacing the original http thread pool with an asynchronous thread pool.
2. Threads are considered to be highly loaded when the CPU load exceeds 80% or when the Report thread pool threads are used more than 85%.
Thread blocking deadlock and long execution thread detection is triggered every 15 seconds when threads are highly loaded.
If more than 3 threads are blocked in the same session, session closure will be triggered.
A thread deadlock will directly interrupt the deadlocked thread. A long execution thread will trigger the shutdown.
After threads are terminated, the message "The extremely high system memory pressure triggers the system anti-downtime protection. The current template calculation has been suspended. Try again later." will be displayed.