Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6728843

Limit on size of JVM arguments passed to application through -J option

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: deploy
    • Subcomponent:
    • Introduced In Version:
      6u2
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      1.6.0_04

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP Professional, Version 2002, Service Pack 2

      A DESCRIPTION OF THE PROBLEM :
      When passing vm arguments using -J option at command prompt to launch JNLP, the vm arguments are not passed to the application. This restriction is probably on the size of characters present in jnlp command. If the size of arguments are reduced the vm arguments are correctly passed to the application.

      This bug cannot be reproduced in 1.6.0_01

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a jnlp and execute from commad prompt as following

      javaws http://test.new.com:7689 -J-Dprop1=test -J-Dprop2=test2 -J-Dprop3=test3 (char length of 1426 characters from -J-Dprop1 to last property).

      Run the below command completely replacing the jnlp with a valid jnlp and keeping the same arguments.

      javaws http://am1p456lon.ppt.alpinexion.com:5383/JNLPDispatcher/apps/NewAngleRepresentation_v3.x.jnlp -J-Xmx768m -J-Xms128m -J-DApplicationID=NewAngleActions_v3.x -J-DDSOracleAOLUserName=******** -J-DDSOracleAOLReadPassword=*********** -J-DDSAOLOracleURL=jdbc:oracle:OCD:olpu016drty3409.atm.alpineexion.com:9996/test_QA_environment -J-DLogFile=NewAngleActions_0104564user20080721093723log -J-DDSOracleReadUserName=******* -J-DDevelopment=YES -J-DDSOracleWritePassword=******** -J-DProxyAOLHost=am1p456lon.ppt.alpinexion.com:5383 -J-DTestingproxy=am1p456lon.ppt.alpinexion.com:5383 -J-DWriteTestingproxy=am1p456lon.ppt.alpinexion.com:5383 -J-DDSApplication=NewAngle_Representation -J-DWriteDataSource=dbc:oracle:AOL:am1p456lon.ppt.alpinexion.com:5383 -J-DGenerateAOLReport=YES -J-DDSOracleDriver=com.jdbc.oracle.jdbc.Driver -J-DDSEnvironment=AOL/London/Manchester/City/Align/Unit/group/new -J-DDSReleaseIS=NewAngleRepresentation -J-DDSArea=spain -J-Dproxy.region=align.samlink.saphire.com:9435 -J-DLoggingLevel=Debug -J-DLaunchURL=http://am1p456lon.ppt.alpinexion.com:5383/JNLPDispatcher/apps/NewAngleRepresentation_v3.x.jnlp

      Print the properties in application fetching them like System.getProperties(). The above properties will not be present

      Reduce the no of argument (4-5) and repeat the above process. The properties will be present when System.getProperties() is called


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      There should be no limit on the no of vm arguments passed

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : 6u1
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

      Release Regression From : 6u1
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

        Attachments

          Activity

            People

            • Assignee:
              herrick Andy Herrick
              Reporter:
              ndcosta Nelson Dcosta
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: