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

Do not allow overwrite of some JVM arguments with sonar.*.javaOpts or sonar.*.javaAdditionalOpts

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: None
    • Labels:

      Description

      User can specify JVM arguments for each SQ subprocess using properties sonar.web.javaOpts,sonar.web.javaAdditionalOpts, sonar.ce.javaOpts,sonar.ce.javaAdditionalOpts, sonar.search.javaOpts and/or sonar.search.javaAdditionalOpts.

      Some JVM options are mandatory and always provided by SonarQube to start subprocesses (such as -Djava.io.tmpdir, -Djava.awt.headless=true, -Dfile.encoding=UTF-8 and many more options for the Elasticsearch subprocess).

      Nothing prevents user from also specifying values for these mandatory options and this currently results in them being defined twice when passed to the subprocess.

      Supported JVMs will apply the last option (at least, as of today). Options are passed to the JVM witht the user defined options last. This implies that user can modify options which are assumed by the system to be correct.

      To improve this situation:

      • mandatory options defined by user should be ignored
      • a warning should be displayed listing all ignored options

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: