Help Center/ CodeArts Check/ FAQs/ General Issues/ Why Am I Seeing Error CC.00040010.400?/ Sonarqube Engine Check Failure: elasticSearch Fails to Be Started
Updated on 2026-08-10 GMT+08:00

Sonarqube Engine Check Failure: elasticSearch Fails to Be Started

Symptom

Cause Analysis

The maximum number of threads in the system is too small.

Solution

  1. Log in to the executor where the check task is executed as the root user.
  2. Run the following commands to check the maximum number of threads in the system:

    ulimit -Hu
    ulimit -Su

  3. Run the vim /etc/security/limits.conf command to open the file.
  4. Add the following configuration commands. The configuration takes effect after you log out and log in again.

    * soft nproc 4096
    * hard nproc 4096

    Note that the command must start with an asterisk (*).

  5. Press Esc to return to the common mode.
  6. Enter :wq to save and exit.
  7. Run the following commands to check whether the number of files that can be opened is changed to 4096:

    ulimit -Hn
    ulimit -Sn