Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1019

Set java memory options only when required

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.4
    • 2.2.5, 3.0.0
    • karaf
    • Windows 2003 @ amd64
      ubuntu-11.10-desktop-amd64
      jdk1.6.0_29 x64

    Description

      Related to https://issues.apache.org/jira/browse/KARAF-818
      Using my x64 environment I got PermGen space error.
      Sure - I can change JAVA_MAX_MEM, JAVA_PERM_MEM, JAVA_MIN_MEM, JAVA_MAX_PERM_MEM variables.
      But I found that without memory settings [1] my scenario works fine.
      Is it possible to set java memory options only if variables are present?

      1. set DEFAULT_JAVA_OPTS=-server -Dderby.system.home="%KARAF_DATA%\derby" -Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote

      Attachments

        1. patch.txt
          20 kB
          Alexey Markevich
        2. karaf.bat
          9 kB
          Alexey Markevich
        3. karaf
          10 kB
          Alexey Markevich
        4. karaf
          10 kB
          Alexey Markevich
        5. karaf.bat
          9 kB
          Alexey Markevich

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            amarkevich Alexey Markevich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: