Updated on 2026-01-21 GMT+08:00

Starting or Stopping Tomcat

This action aims to start or stop a service in a specified path. In addition, you can monitor metrics and query logs of components after deployment.

Configuring Deployment Actions

  1. Create an application by referring to Creating an Application.
  2. On the Deployment Actions page, add this deployment action based on the service scenario.
  3. Configure the action using the parameters described in the table below.

    Table 1 Parameters for starting or stopping Tomcat

    Parameter

    Description

    Action Name

    Custom action name. Enter 1 to 128 characters. Do not start or end with a space. Use letters, digits, spaces, and these special characters: -_,;:./()

    Environment

    Deployment object. Select an environment whose resource type is host cluster.

    Operation

    Start and Stop are available.

    Absolute Path

    Absolute path of the Tomcat service.

    HTTP Port

    Mandatory when Operation is set to Start.

    HTTP port of the Tomcat service.

    AJP Port

    Mandatory when Operation is set to Start.

    AJP port of the Tomcat service.

    Service Shutdown Port

    Mandatory when Operation is set to Start.

    Shutdown port listened by the Tomcat service.

    Waiting Time

    Mandatory when Operation is set to Start.

    The time required for starting the service. If you select Start for Operation, the system checks the process during the startup to determine whether the service is started successfully. You can adjust the time based on the actual time required for starting the service. If the time is improper, the check result is invalid.

    Action Control

    Whether to enable the settings.

    • Keep running on failure: Continue the task even if this action fails.
    • Execute this action with the sudo permission: Use the sudo permission to deploy this action.

Helpful Links

If you encounter any problems during deployment, see Starting or Stopping Tomcat.