karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-3411) windows startup scripts don't handle setenv.bat correctly
Date Thu, 18 Dec 2014 13:32:14 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251647#comment-14251647
] 

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

I agree with Krzystof: the DEFAULT_JAVA_OPTS are the default setting by Karaf, the end users
should not use it.
The JAVA_OPTS variable should be used by end users.

> windows startup scripts don't handle setenv.bat correctly
> ---------------------------------------------------------
>
>                 Key: KARAF-3411
>                 URL: https://issues.apache.org/jira/browse/KARAF-3411
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.4.1
>         Environment: Windows Any
>            Reporter: Alexander Sahler
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 4.0.0, 3.0.3, 2.4.1
>
>         Attachments: patch_karaf.bat, patch_servicemix.bat
>
>
> When setting variables in setenv.bat they don't find their way to JAVA_DEFAULT_OPTS.
This is due to the variable overwrite in line 231.
> {noformat}
> set DEFAULT_JAVA_OPTS=%JAVA_MODE% -Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -Dderby.system.home="%KARAF_DATA%\derby"
-Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote -XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass
> {noformat}
> Instead it should be:
> {noformat}
> set DEFAULT_JAVA_OPTS=%JAVA_MODE% %DEFAULT_JAVA_OPTS% -Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM%
-Dderby.system.home="%KARAF_DATA%\derby" -Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote
-XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
> {noformat}
> to keep the previous contents of DEFAULT_JAVA_OPTS.
> The same applies for karaf.bat.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message