Configuring JVM Parameters in Tomcat

  • Last update:  2023-04-03
  • Description

    After installation, FineBI may run unstably in Tomcat with default configurations. Therefore, you need to optimize the configuration. This article will introduce how to configure JVM parameters in Tomcat.

    Configuring JVM Parameters

    Open the JVM configuration file catalina.sh under %tomcat%/bin/catalina.sh in Tomcat, and add parameters directly to the file.

    Note:

    The JVM configuration file is named catalina.bat in Windows.

    If you want to configure the JVM memory, you can add the following parameters before the parameter cygwin=false in this file:

    JAVA_OPTS='-Xms512m -Xmx1024m'

    Xms is the initial memory, and Xmx is the max memory limit. m is added here because the unit is MB. If the unit is KB, modify it to KB. You can configure the JVM memory according to the size of your server.

    UseGCOverheadLimit Parameter

    Problem:

    You encounter the error message gc overhead limit exceeded when using FineBI.

    Cause and solution:

    You can add the following parameter of -XX:-UseGCOverheadLimit to Tomcat's JVM configuration.

    JAVA_OPTS='-Xms512m -Xmx1024m -XX:-UseGCOverheadLimit'

    This is because your system lacks memory space, so the GC cycle time is extended. After you add parameters, the GC time detection feature is disabled. In this case, when the memory is insufficient, JVM will not give the message GC overhead limit exceeded, but give the message Java heap space and generate a dump file for better cause analysis.

    附件列表


    主题: Felicity 待翻译
    • 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