edit-icon download-icon

Configure ECS applications

Last Updated: Feb 01, 2019

This topic describes how to set the JVM and Tomcat parameters as well as Basic Information for applications in the ECS cluster.

Note: the JVM and Tomcat parameters are application parameters. That is, they are valid for the entire application.If JVM and Tomcat parameters are set by group on the Instance Information page, the priority of the parameters is higher than application-level settings.

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Application Management > Applications.

  3. On the Applications page, click the name of the target application.

  4. On the Basic Information page, click Settings in the Application Settings area.

Set the JVM parameters

JVM parameters are container parameters that must be configured when an application is started.Correct configuration of JVM parameters helps reduce the overhead of garbage collection (GC) and thus shorten the server response time and improve throughput.If container parameters are not set, JVM parameters are allocated by default.

  1. In the Application Settings dialog box, click the JVM tab.

  2. Click Memory Configuration, Application, GC Policy, Tool, and Custom to set relevant parameters.Click Save to save the settings.

    Note: Manually restart the application to make the JVM parameters take effect.

Set the Tomcat parameters

You can configure the following parameters for the Tomcat container: port number, application access path, and maximum number of threads.

  1. In the Application Settings dialog box, click the Tomcat tab.

  2. Set the Tomcat parameters and click Configure Tomcat.

    Description of Tomcat parameters:

    ConfigurationDescription
    Application Port The parameter value ranges from 1024 to 65535.The admin authority is used by container configuration and the root authority is required to operate ports with numbers less than 1024.Therefore, enter a port number greater than 1024.If this parameter is not set, the default value 8080 is used.
    Tomcat Context Select an application access path:
    • If you select the Package Name, you do not have to set the Custom Path parameter. The application access path is the name of the WAR package.
    • If you select the Root Directory, you do not have to set the Custom Path parameter. The application access path is /.
    • If you select Custom, you must set the Custom Path parameter.If the “Custom Path” parameter is not set, the default application access path is the same as the name of the WAR package.
    Maximum Threads Set the number of connections to the connection pool. The corresponding parameter is maxThreads, which is 400 by default.This parameter has significant implications for performance. We recommend that this parameter be set under professional guidance.
    Tomcat Encoding Select a Tomcat encoding format: UTF-8, ISO-8859-1, GBK, or GB2312.The default format is ISO-8859-1.

Set basic information

In the Application Settings dialog box, click the Basic Information tab, set the Application Name and Application Description, and then click Modify.

Thank you! We've received your feedback.