反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Tomcat configuration JVM parameters

  • Recent Updates: August 30, 2022
  • I. Description

    The default configuration after Tomcat installation usually does not work stably, and it needs to be optimized. In this chapter, we will introduce how to configure JVM parameters in Tomcat.

    II. Configure JVM parameters

    Open Tomcat's JVM configuration file: %tomcat%/bin/catalina.sh(catalina.bat in Windows), and directly add parameters to the file.

    For example, if we want to configure the JVM memory, we can add the following parameters before cygwin=false of the file:

    JAVA_OPTS='-Xms512m -Xmx1024m'

    Where XMS is the initialization memory and Xmx is the maximum memory available. If "m" is added, it means MB, otherwise it is KB. JVM memory can be configured according to the size of its own server.

    III. UseGCOverheadLimit parameter

    Problem phenomenon:

    If a gc overhead limit exceeded error occurs in the log during the use of FineBI.

    Problem analysis:

    You can add the parameter-XX:-UseGCOverheadLimit to Tomcat's jvm configuration, such as:

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

    The error is that the GC time is consumed too much when the memory is insufficient. Adding parameters turns off the GC time detection feature. When the memory is insufficient, the jvm does not throw GC overhead limit exceeded, but throws Java heap space and generates a dump file to analyze the cause of the problem.

    Attachment List


    Theme: Deployment Integration
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

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

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

    不再提示

    10s后关闭