Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-194

standalone.sh duplicates some options in JAVA_OPTS

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 7.0.0.DR2
    • 7.0.0.DR4
    • 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

              mkopecky@redhat.com Marek Kopecky
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: