Karaf
  1. Karaf
  2. KARAF-1019

Set java memory options only when required

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.2.5, 3.0.0
    • Component/s: karaf-core
    • Labels:
    • Environment:

      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

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

        Activity

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Alexey Markevich
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development