Updated on 2026-08-10 GMT+08:00

Check Error of the Sonarqube Engine

Symptom

A task checked by the sonarqube engine fails. The log contains "max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]" and indicates that the elasticSearch fails to be started.

Cause Analysis

The default value of vm.max_map_count is too low.

Solution

Method 1:
  1. Log in to the executor where the check task is executed as the root user.
  2. Run the sudo vi /etc/sysctl.conf command to modify the sysctl.conf file.
  3. Add the following code to the file:
    vm.max_map_count=655360
  4. Press Esc to return to the common mode.
  5. Enter :wq to save and exit. After exiting the file, run the sysctl -p command.
  6. Execute the check again.

Method 2:

Log in to the executor and run the echo "vm.max_map_count=655360" >>/etc/sysctl.conf&&sysctl -p command.