Resource Scheduling Thread Circuit Breaker

  • Last update:February 19, 2025
  • Overview

    Version

    Report Server VersionFunctional 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 VersionEnabling 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.

    iconNote: 
    If you use the plugin of V1.4.2 and lower versions, the system may report errors. So ensure that you have updated the plugin.


    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.

    资源1.png

    iconNote: 
    When FineReport is upgraded from version 11.0.29 or lower to version 11.0.30 and higher, the Circuit Breaker of Resource Schedule plugin will be disabled automatically and Thread Circuit Breaker is disabled by default. You need to enable Thread Circuit Breaker manually.

    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.

    Attachment List


    Theme: Decision-making Platform
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy