glassfish
  1. glassfish
  2. GLASSFISH-5430

Provide an option to the "start-database" command to set JVM parameters

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.1peur2
    • Fix Version/s: 3.1.2_b11
    • Component/s: admin
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      When "asadmin start-database" is used to start the embedded JavaDB (Derby),
      there is no way to pass JVM parameters to the JVM used to run the network server
      in. The primary JVM parameters that might be needed are to set the min and max
      heap (ie. -Xmx and -Xms).

      This should be done by adding a new option to the "start-database" command so
      that it could be invoked such as:

      asadmin start-database --jvmoptions="-Xms128m -Xmx256m"

        Activity

        Hide
        onenull added a comment -

        Thanks again guys.

        I am using 3.1.2_b06, and it is an encouraging experience while exploring the possibilities and Java EE 6 concept. It has not failed me or scared me away so far.
        Thanks for the great and free software and your work on it.

        Hope those scaring stories will not happen on me or let me suffer less because you guys are working on ironing those thing out one by one.

        Keeping on trying and Looking forwarding to 3.1.2_b08.

        Ken

        Show
        onenull added a comment - Thanks again guys. I am using 3.1.2_b06, and it is an encouraging experience while exploring the possibilities and Java EE 6 concept. It has not failed me or scared me away so far. Thanks for the great and free software and your work on it. Hope those scaring stories will not happen on me or let me suffer less because you guys are working on ironing those thing out one by one. Keeping on trying and Looking forwarding to 3.1.2_b08. Ken
        Hide
        onenull added a comment -

        I found out Glassfish 3.1.2_b08 was skipped, and b10 was just promoted at 2011-11-15 (http://dlc.sun.com.edgesuite.net/glassfish/3.1.2/promoted/).

        Can I look for the fix in b10?

        Thanks,

        Ken

        Show
        onenull added a comment - I found out Glassfish 3.1.2_b08 was skipped, and b10 was just promoted at 2011-11-15 ( http://dlc.sun.com.edgesuite.net/glassfish/3.1.2/promoted/ ). Can I look for the fix in b10? Thanks, Ken
        Hide
        Tom Mueller added a comment -

        Now planning for b11

        Show
        Tom Mueller added a comment - Now planning for b11
        Hide
        onenull added a comment -

        Thanks Tom.

        I saw the old 3.1.2 build schedule with only 10 builds before final release at Q1 2012, which made me wonder how the team would spend the extra two months.

        Now I see the build schedule expanded to 19 builds before final, what a "release early and release often" policy!

        Only hope the quality and feature of this great software will get better and better.

        Thanks again,

        Ken

        Show
        onenull added a comment - Thanks Tom. I saw the old 3.1.2 build schedule with only 10 builds before final release at Q1 2012, which made me wonder how the team would spend the extra two months. Now I see the build schedule expanded to 19 builds before final, what a "release early and release often" policy! Only hope the quality and feature of this great software will get better and better. Thanks again, Ken
        Hide
        Tom Mueller added a comment -

        Fixed in the trunk with revision 51032.
        Fixed in the 3.1.2 branch with revision 51031.

        The syntax for the new option is as specified in the description.

             --jvmoptions            The JVM options to pass to the JVM
                                     that the database server is started
                                     with.  The default is no options are
                                     passed.  This can be used to set the
                                     JVM memory options for example with
                                     an invocation like:
                                        --jvmooptions="-Xms128m -Xmx512m"
        
        Show
        Tom Mueller added a comment - Fixed in the trunk with revision 51032. Fixed in the 3.1.2 branch with revision 51031. The syntax for the new option is as specified in the description. --jvmoptions The JVM options to pass to the JVM that the database server is started with. The default is no options are passed. This can be used to set the JVM memory options for example with an invocation like: --jvmooptions= "-Xms128m -Xmx512m"

          People

          • Assignee:
            Tom Mueller
            Reporter:
            bbergquist
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: