Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-5709

Add properties sonar.search.javaAdditionalOpts and sonar.web.javaAdditionalOpts

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.1
    • Component/s: None
    • Labels:
      None

      Description

      Default values of sonar.*.javaOpts are quite long, for instance :

      #sonar.web.javaOpts=-Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError \
      #  -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false
      

      That's annoying when adding another JVM property because it requires to duplicate the default settings and to potentially loose changes of default values between SQ versions. For example to enable JVM debug mode, it requires to set :

      sonar.web.javaOpts=-Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
      

      With the new properties it would be much simpler :

      #sonar.web.javaOpts=-Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError \
      #  -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false
      
      sonar.web.javaAdditionalOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
      

        Attachments

          Activity

            People

            • Assignee:
              simon.brandhof Simon Brandhof
              Reporter:
              simon.brandhof Simon Brandhof
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: