反馈已提交

网络繁忙

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.

    Attachment List


    Theme: Felicity 待翻译
    前の記事
    次の記事
    • いいね
    • 良くない
    • 閲覧しただけ

    フィードバック

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭