🔴 FREE LIVE WEBINAR
How to Become a DevOps Engineer in 2027
From Zero to DevOps Champion!
November 21st, 2026 | 9:30 AM CST
Live DevSecOps CI/CD Demo
Career Roadmap • Live Q&A
🚀 REGISTER FOR FREE
🚀 NEW WEEKEND BATCH
AI-Enabled DevSecOps & Cloud Engineering Bootcamp
Starts December 5th, 2026
Sat: 9:30 AM – 11:30 AM CST
Sun: 10:30 AM – 12:30 PM CST
15 Weeks • 70+ Labs • Live Training
EXPLORE BOOTCAMP →
3,500+
Students Trained
25+
Years of IT Experience
70+
Hands-On Labs
🔴 FREE Webinar | Nov 21 Register Free
🚀 New Batch | Dec 5 Explore Bootcamp
🎁 FREE Career Roadmap Get Roadmap

Wednesday, April 18, 2018

Sonarqube memory error - There is insufficient memory for the Java Runtime Environment to continue

There is insufficient memory for the Java Runtime Environment to continue.
 
If you have any errors in sonarQube like below:

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 37531648 bytes for committing reserved memory.
Please apply below fix highlighted in yellow for any memory issus in SonarQube
The fix should be applied in sonar.properties file. you need to add below lines in appropriate places. 1. Login to SonarQube using GitBash or ITerm 2. open the below file and make the changes highligted in yellow color. sudo vi /opt/sonarqube/conf/sonar.properties

#--------------------------------------------------------------------------------------------------
# WEB SERVER
# Web server is executed in a dedicated Java process. By default heap
size is 512Mb.
# Use the following property to customize JVM options.
#    Recommendations:
#

sonar.web.javaOpts=-Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError

#-----------------------------
---------------------------------------------------------------------
# COMPUTE ENGINE
# The Compute Engine is responsible for processing background tasks.
# Compute Engine is executed in a dedicated Java process. Default heap
size is 512Mb.
# Use the following property to customize JVM options.
#    Recommendations:
sonar.ce.javaOpts=-Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError
 

No comments:

Post a Comment

FREE LIVE WEBINAR | How to Become a DevOps Engineer in 2027

 🚀 Your Future in DevOps Starts Here! New Skills. New Opportunities. A New Career Direction. The world of technology is evolving faste...