Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-717

standalone.sh duplicates some options in JAVA_OPTS

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 2.0.0.Alpha2
    • 2.0.0.Alpha5
    • Scripts
    • None

    Description

      Description of problem:
      standalone.sh duplicates some options in JAVA_OPTS.

      Steps to Reproduce:

      1. ./standalone.sh

      Actual results:
      ...
      JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:+UseCompressedOops -Xms64m ...
      ...

      Expected results:
      ...
      JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m ...
      ...

      Additional info:
      Option "-server" is set here:

      if [ "$PRESERVE_JAVA_OPTS" != "true" ]; then
         PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS -server"
         ...
         JAVA_OPTS="$PREPEND_JAVA_OPTS $JAVA_OPTS"
      fi
      

      This part of code is in standalone.sh twice.

      Possible solutions:

      • Remove first repetition of if [ "$PRESERVE_JAVA_OPTS" != "true" ]; then ....... fi (like EAP 6)
      • Add PREPEND_JAVA_OPTS="" after JAVA_OPTS="$PREPEND_JAVA_OPTS $JAVA_OPTS" in first repetition of if [ "$PRESERVE_JAVA_OPTS" != "true" ]; then ....... fi

      Attachments

        Issue Links

          Activity

            People

              tomazcerar Toma┼ż Cerar (Inactive)
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: