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
- Log in to the executor where the check task is executed as the root user.
- Run the sudo vi /etc/sysctl.conf command to modify the sysctl.conf file.
- Add the following code to the file:
vm.max_map_count=655360
- Press Esc to return to the common mode.
- Enter :wq to save and exit. After exiting the file, run the sysctl -p command.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot