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 (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/17 08:54:53 UTC

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

    [ 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