All Products
Search
Document Center

Enterprise Distributed Application Service:Configure Tomcat

Last Updated:Mar 11, 2026

When you deploy a WAR or JAR application on a Container Service Kubernetes cluster or ACK Serverless cluster, Enterprise Distributed Application Service (EDAS) provides built-in Tomcat settings. Configure the application port, context path, thread pool size, and character encoding to match your runtime requirements -- either during application creation or when updating an existing deployment.

Tomcat parameters

The following table describes the parameters available in the Tomcat Configuration panel.

ParameterDescriptionDefault
Application PortThe port that Tomcat listens on. Valid range: 1024--65535. Ports below 1024 require root permissions, which the container does not grant.8080
Tomcat ContextThe context path for your application. Three options: Package Name (uses the JAR or WAR file name), Root Directory (sets the path to /), or Custom (specify a value in the Custom Path field).--
Maximum ThreadsThe maximum number of request-processing threads. Maps to the Tomcat maxThreads attribute in server.xml.400
Tomcat EncodingThe character encoding for URI parameters. Valid values: UTF-8, ISO-8859-1, GBK, GB2312.ISO-8859-1
Use Advanced SettingsEdit the server.xml file directly. Available only for WAR package deployments.--
Warning

Maximum Threads directly affects application performance and stability. Set this value based on load testing results rather than arbitrary estimates.

Set Tomcat parameters for a new application

  1. Log on to the EDAS console.

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

  3. In the top navigation bar, select a region. In the upper part of the page, select a namespace.

  4. In the upper-left corner, click Create Application.

  5. In the Basic Information step, configure the following parameters and click Next.

    Note

    If you select Custom as the runtime environment, Tomcat Configuration does not appear on the Advanced Settings tab. The Custom option uses the Tomcat configuration bundled with your application image.

    ParameterAction
    Cluster TypeSelect Kubernetes Clusters.
    Application Runtime EnvironmentSelect one of the following: Java (JAR package, Dubbo or Spring Boot), Tomcat (WAR package, Dubbo or Spring), or EDAS-Container (HSF) (WAR or FatJar, High-speed Service Framework with Ali-Tomcat and Pandora).
  6. In the Configurations step, set the environment, basic information, deployment method, and resource parameters, and then click Next.

  7. In the Advanced Settings step, click Tomcat Configuration, select Custom Configuration, and then click Edit.

  8. In the Application Settings dialog box, set the parameters described in Tomcat parameters and click OK.

  9. Click Create Application.

  10. On the Creation Completed page, review the settings in Basic Information, Configurations, and Advanced Settings, and then click Create Application.

Update Tomcat parameters for an existing application

Important

Updating the Tomcat configuration restarts the application. Perform this operation during off-peak hours.

  1. Log on to the EDAS console.

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

  3. In the top navigation bar, select a region. In the upper part of the page, select a namespace.

  4. From the Cluster Type drop-down list, select Container Service or Serverless Kubernetes Cluster.

  5. Find the target application and click its name.

  6. On the Overview or Basic information page, choose Deploy > Deploy in the upper-right corner.

  7. On the Select Deployment Mode page, select a deployment mode and click Start Deployment.

  8. Set the application environment and deployment package information. In the Advanced Settings step, click Tomcat Configuration, select Custom Configuration, and then click Edit.

  9. In the Edit Tomcat Configuration dialog box, set the parameters described in Tomcat parameters and click OK.

Verify the configuration

After deployment completes, verify that the Tomcat configuration is active:

  • Check the change list: In the left-side navigation pane of the application details page, click Change List. If the Change Status column shows Succeeded, the configuration is in effect.

  • Check pod status: On the Application Overview page, click Running Pods (Click View) next to Running Status. In the Pod section, check the Status column. A green dot indicates the application is running with the updated configuration.