[
https://issues.apache.org/jira/browse/UNOMI-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Griffon updated UNOMI-729:
--------------------------------
Description:
As now karaf is not supporting the parameter {{JAVA_MAX_MEM}}
https://issues.apache.org/jira/browse/KARAF-7071
that Unomi is using as default configuration in the {{setenv}}
https://github.com/apache/unomi/blob/c1e70fe9fa1b53308e24e42197f858a9313e9cd5/package/src/main/resources/bin/setenv#L62
As the parameter was initially added to support the embed Elastic search, we
can remove it.
We also need to update the documentation to match that change:
https://unomi.apache.org/manual/latest/#_deploying_into_an_existing_karaf_server
h2. Testing
Run jCustomer, ensure using any tool (jconsole for example) that the max heap
matches the setting. A way to increase the heap usage is to import geonames
entries.
was:
As now karaf is not supporting the parameter {{JAVA_MAX_MEM}}
https://issues.apache.org/jira/browse/KARAF-7071
that Unomi is using as default configuration in the {{setenv}}
https://github.com/apache/unomi/blob/c1e70fe9fa1b53308e24e42197f858a9313e9cd5/package/src/main/resources/bin/setenv#L62
We have to change that parameter to KARAF_OPTS values
{code}
export KARAF_OPTS="$KARAF_OPTS -Xmx2g"
{code}
We also need to update the documentation to match that change:
https://unomi.apache.org/manual/latest/#_deploying_into_an_existing_karaf_server
h2. Testing
Run jCustomer, ensure using any tool (jconsole for example) that the max heap
matches the setting. A way to increase the heap usage is to import geonames
entries.
> Remove unsupported usage of JAVA_MAX_MEM
> ----------------------------------------
>
> Key: UNOMI-729
> URL: https://issues.apache.org/jira/browse/UNOMI-729
> Project: Apache Unomi
> Issue Type: Improvement
> Affects Versions: unomi-1.6.0
> Reporter: David Griffon
> Priority: Major
> Fix For: unomi-2.3.0, unomi-1.9.0
>
>
> As now karaf is not supporting the parameter {{JAVA_MAX_MEM}}
> https://issues.apache.org/jira/browse/KARAF-7071
> that Unomi is using as default configuration in the {{setenv}}
> https://github.com/apache/unomi/blob/c1e70fe9fa1b53308e24e42197f858a9313e9cd5/package/src/main/resources/bin/setenv#L62
> As the parameter was initially added to support the embed Elastic search, we
> can remove it.
> We also need to update the documentation to match that change:
> https://unomi.apache.org/manual/latest/#_deploying_into_an_existing_karaf_server
> h2. Testing
> Run jCustomer, ensure using any tool (jconsole for example) that the max heap
> matches the setting. A way to increase the heap usage is to import geonames
> entries.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)