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

elasticSearch fails to be started: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535].

Cause Analysis

The number of files that can be opened by a process at the same time 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 number of files that can be opened:

    ulimit -Hn
    ulimit -Sn

  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 nofile 65536
    * hard nofile 65536

    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 65536:

    ulimit -Hn
    ulimit -Sn