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. patch.txt
        20 kB
        Alexey Markevich
      2. karaf.bat
        9 kB
        Alexey Markevich
      3. karaf.bat
        9 kB
        Alexey Markevich
      4. karaf
        10 kB
        Alexey Markevich
      5. karaf
        10 kB
        Alexey Markevich

        Activity

        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jean-Baptiste Onofré made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jean-Baptiste Onofré made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Jean-Baptiste Onofré made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jean-Baptiste Onofré made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Alexey Markevich made changes -
        Labels patch
        Alexey Markevich made changes -
        Attachment patch.txt [ 12504746 ]
        Alexey Markevich made changes -
        Environment Windows 2003 @ amd64
        jdk1.6.0_29 x64
        Windows 2003 @ amd64
        ubuntu-11.10-desktop-amd64
        jdk1.6.0_29 x64
        Alexey Markevich made changes -
        Attachment karaf.bat [ 12504722 ]
        Alexey Markevich made changes -
        Attachment karaf.bat [ 12504721 ]
        Alexey Markevich made changes -
        Attachment karaf.bat [ 12504039 ]
        Alexey Markevich made changes -
        Attachment set_java memory_options_only_when_required_unix.patch [ 12504056 ]
        Alexey Markevich made changes -
        Attachment set_java memory_options_only_when_required.patch [ 12504041 ]
        Alexey Markevich made changes -
        Attachment karaf.bat [ 12504721 ]
        Alexey Markevich made changes -
        Attachment karaf [ 12504720 ]
        Alexey Markevich made changes -
        Attachment set_java memory_options_only_when_required_unix.patch [ 12504056 ]
        Alexey Markevich made changes -
        Attachment karaf [ 12504055 ]
        Alexey Markevich made changes -
        Attachment set_java memory_options_only_when_required.patch [ 12504041 ]
        Alexey Markevich made changes -
        Attachment karaf.bat [ 12504040 ]
        Alexey Markevich made changes -
        Attachment karaf.bat [ 12504039 ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 2.2.5 [ 12317857 ]
        Fix Version/s 3.0.0 [ 12316040 ]
        Component/s karaf-core [ 12313724 ]
        Component/s karaf-os-integration [ 12313731 ]
        Jean-Baptiste Onofré made changes -
        Field Original Value New Value
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Alexey Markevich created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development