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
 

Friday, April 13, 2018

DevOps Interview questions - Top DevOps Interview questions - Latest DevOps Interview Questions - Part 2

Please find more DevOps interview questions..
  1. What is Test Driven Development? How will you implement TDD?
  2. What is the difference between Agile and DevOps?
  3. What are the tools you integrated in pipeline you build?
  4. What are the different plug-ins you used in Jenkins?
  5. What is microservices? How will you create microservices?
  6. How will you dockerize an application? What are the steps?
  7. Have you configured webhooks in ? How will you do it?
  8. What is Jenkinsfile?
  9. What are the DevOps tools you have used?
  10. Why Git is distributed version control system?
  11. How will you set up communication between two systems without password but secure way?
  12. What do you understand by “Infrastructure as code”? 

How to Create Quality Gate in SonarQube and integrate with GitHub Actions | SonarQube Integration with GitHub Actions | Automate Code Scan using SonarQube In GitHub Actions and Force build to Fail or Pass

Pre-requisites: Make sure SonarQube is up and running Make sure Java Project is setup in GitHub SonarQube is already integrated with GitHub ...