You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Alexey Markevich (Created) (JIRA)" <ji...@apache.org> on 2011/11/16 16:38:53 UTC

[jira] [Created] (KARAF-1019) Set java memory options only when required

Set java memory options only when required
------------------------------------------

                 Key: KARAF-1019
                 URL: https://issues.apache.org/jira/browse/KARAF-1019
             Project: Karaf
          Issue Type: Improvement
          Components: karaf-os-integration
    Affects Versions: 2.2.4
         Environment: Windows 2003 @ amd64
jdk1.6.0_29 x64
            Reporter: Alexey Markevich


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


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: set_java memory_options_only_when_required.patch
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment:     (was: karaf.bat)
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152005#comment-13152005 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

More than removing the default memory options, I would prefer to increase the default MaxPermSize value. Without memory options, it could be really risky with Karaf.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Andreas Pieber (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152014#comment-13152014 ] 

Andreas Pieber commented on KARAF-1019:
---------------------------------------

I second JB on that one; IMHO increasing the default values is ways better than removing them (even optionally) and hope that the external setup is correctly to handle the requirements...
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: karaf
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154981#comment-13154981 ] 

Alexey Markevich commented on KARAF-1019:
-----------------------------------------

Compromise solution: keep general memory options as is; set PermSize params only if specified.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: karaf.bat
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151891#comment-13151891 ] 

Alexey Markevich commented on KARAF-1019:
-----------------------------------------

Some implementation was done using OS detection:
https://github.com/Talend/tesb-rt-se/tree/master/talend-esb/src/main/bin
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Environment: 
Windows 2003 @ amd64
ubuntu-11.10-desktop-amd64
jdk1.6.0_29 x64

  was:
Windows 2003 @ amd64
jdk1.6.0_29 x64

    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167466#comment-13167466 ] 

Alexey Markevich commented on KARAF-1019:
-----------------------------------------

In revision #1210651 difference from #1210345: missing
-set DEFAULT_JAVA_OPTS=-server -Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -XX:PermSize=%JAVA_PERM_MEM% -XX:MaxPermSize=%JAVA_MAX_PERM_MEM% -Dderby.system.home="%KARAF_DATA%\derby" -Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote
+set DEFAULT_JAVA_OPTS=-server -Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -Dderby.system.home="%KARAF_DATA%\derby" -Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote

                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162642#comment-13162642 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

Fixed on trunk: revision 1210345.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Glen Mazza (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152607#comment-13152607 ] 

Glen Mazza commented on KARAF-1019:
-----------------------------------

The business case for explicitly setting these memory options in startup scripts is probably very similar for both Karaf and Tomcat, so perhaps the latter's much longer experience might be instructive.  From what I can see Tomcat doesn't explicitly set these options, instead the user optionally declares an OS environment variable like so:

export CATALINA_OPTS="-Xms128m -Xmx1024m -XX:MaxPermSize=256m"

and Tomcat automatically reads those in on startup.  (Perhaps most users don't bother making settings such as these until they have a perm gen or other memory error, and then they configure it.)  What's also nice with Tomcat is that the memory settings aren't at the JVM-level but just the Tomcat-level instead, i.e., you can start other Java programs and the above settings would be ignored.

I don't have a strong position on this either way, but should we go with Alexey's preference of not explicitly making these settings it probably wouldn't be that horrifying to the user community, as Tomcat's heavy user base has been accustomed to this for years.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: karaf
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Assigned JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-1019:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-os-integration
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152084#comment-13152084 ] 

Alexey Markevich commented on KARAF-1019:
-----------------------------------------

One more useful link:
http://java.sun.com/performance/reference/whitepapers/tuning.html#section4.1.1
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Issue Comment Edited] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151891#comment-13151891 ] 

Alexey Markevich edited comment on KARAF-1019 at 11/17/11 7:54 AM:
-------------------------------------------------------------------

Some implementation was done using OS detection:
https://github.com/Talend/tesb-rt-se/tree/master/talend-esb/src/main/bin

But I prefer to stay without any additional args if they don't specified - Java RT works fine with defaults (at least for me)
                
      was (Author: amarkevich):
    Some implementation was done using OS detection:
https://github.com/Talend/tesb-rt-se/tree/master/talend-esb/src/main/bin
                  
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163403#comment-13163403 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

Fixed on karaf-2.2.x: revision 1210651.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151467#comment-13151467 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

I'm gonna try to reproduce your issue (I don't have the problem on Unix).

More than vanishing the Java memory options, I would prefer to enhance "OS detection" in the karaf script to define the Java options depending of the OS and JVM.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-os-integration
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: karaf.bat
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-1019.
-----------------------------------------

    Resolution: Fixed
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment:     (was: karaf.bat)
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment:     (was: set_java memory_options_only_when_required.patch)
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167471#comment-13167471 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

Yup, I know Alexey, I saw that ;)

I gonna fix it now.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152695#comment-13152695 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

Tomcat and Karaf are not the same at all, especially because Tomcat is not OSGi powered, and so don't use an OSGi framework.

In Tomcat, the memory options are exactly done in the same way as Karaf. Using CATALINA_OPTS is not a good practice, the JAVA_OPTS should be used.

As in Karaf, it doesn't affect the others Java programs as the JAVA_OPTS is a local variable in the catalina.sh, as in the karaf.sh.

I'm agree to remove the MaxPermSize (and let the user eventually override it), but not the Xms/Xmx.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Andreas Pieber (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152705#comment-13152705 ] 

Andreas Pieber commented on KARAF-1019:
---------------------------------------

I'm against removing those options. Tbh Karaf is different from Tomcat. The possibility to create custom distributions add complete different requirements to Karaf than Tomcat; and those vars, in combination with the setevn files allow a very neat option to configure your app as you like. IF we only remove the default option but still allow the easy configuration via the setenv I'm +/-0; otherwise -1
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162636#comment-13162636 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

The latest patch looks good to min. It doesn't cover the admin script, so I use the same behavior in the admin script.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: karaf.bat
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf.bat, karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Reopened] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Reopened JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reopened KARAF-1019:
-----------------------------------------


karaf.bat doesn't work correctly on Windows.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-1019.
-----------------------------------------

    Resolution: Fixed
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152002#comment-13152002 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

Thanks for the update Alexey.

Let me review it and reproduce your issue.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment:     (was: set_java memory_options_only_when_required_unix.patch)
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: set_java memory_options_only_when_required_unix.patch
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: karaf.bat
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Closed] (KARAF-1019) Set java memory options only when required

Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear closed KARAF-1019.
---------------------------------

    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich updated KARAF-1019:
------------------------------------

    Attachment: patch.txt
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Work started] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Work started JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on KARAF-1019 started by Jean-Baptiste Onofré.

> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167475#comment-13167475 ] 

Jean-Baptiste Onofré commented on KARAF-1019:
---------------------------------------------

Fixed on karaf-2.2.x: revision 1213215.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> ubuntu-11.10-desktop-amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>              Labels: patch
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf, karaf.bat, karaf.bat, patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1019) Set java memory options only when required

Posted by "Jean-Baptiste Onofré (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-1019:
----------------------------------------

      Component/s:     (was: karaf-os-integration)
                   karaf-core
    Fix Version/s: 3.0.0
                   2.2.5
    
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1019) Set java memory options only when required

Posted by "Alexey Markevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152074#comment-13152074 ] 

Alexey Markevich commented on KARAF-1019:
-----------------------------------------

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

-XX:MaxPermSize=64m	Size of the Permanent Generation.  [5.0 and newer: 64 bit VMs are scaled 30% larger; 1.4 amd64: 96m; 1.3.1 -client: 32m.]

I see two ways:
1. Detect arch like at https://github.com/Talend/tesb-rt-se/tree/master/talend-esb/src/main/bin
2. Keep JVM to take care about optimal values.
                
> Set java memory options only when required
> ------------------------------------------
>
>                 Key: KARAF-1019
>                 URL: https://issues.apache.org/jira/browse/KARAF-1019
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.2.4
>         Environment: Windows 2003 @ amd64
> jdk1.6.0_29 x64
>            Reporter: Alexey Markevich
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>         Attachments: karaf, karaf.bat, karaf.bat, set_java memory_options_only_when_required.patch, set_java memory_options_only_when_required_unix.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira