Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4420

CLONE - standalone.bat sets -client by default and standalone.sh sets -server by default

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 7.1.1.Final
    • Fix Version/s: No Release
    • Component/s: Scripts
    • Labels:
      None

      Description

      standalone.bat sets -client by default if -server or -client isn't specified in JAVA_OPTS
      standalone.sh sets -server by default if -server or -client isn't specified in JAVA_OPTS (with exception for darwin)

      I think EAP should set -server by default.

      Part of standalone.bat

        rem Add -client to the JVM options, if supported (32 bit VM), and not overriden
        echo "%JAVA_OPTS%" | findstr /I \-server > nul
        if errorlevel == 1 (
          "%JAVA%" -client -version 2>&1 | findstr /I /C:"Client VM" > nul
          if not errorlevel == 1 (
            set "JAVA_OPTS=-client %JAVA_OPTS%"
          )
        )
      

      Part of standalone.sh

          CLIENT_VM=false
          if [ "x$CLIENT_SET" != "x" ]; then
              CLIENT_VM=true
          elif [ "x$SERVER_SET" = "x" ]; then
              if $darwin && [ "$JVM_OPTVERSION" = "-d32" ]; then
                  # Prefer client for Macs, since they are primarily used for development
                  CLIENT_VM=true
                  PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS -client"
              else
                  PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS -server"
              fi
          fi
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  brian.stansberry Brian Stansberry
                  Reporter:
                  rsvoboda Rostislav Svoboda
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: