nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Withers (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (NIFI-6731) Docker container JVM heap not applying
Date Mon, 30 Sep 2019 18:41:00 GMT

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

Ryan Withers edited comment on NIFI-6731 at 9/30/19 6:40 PM:
-------------------------------------------------------------

We found something in the https://github.com/apache/nifi/blob/master/nifi-docker/dockerhub/sh/start.sh
script.  In the version on Master there are checks to add JVM_HEAP parameters to the nifi_bootstrap_file.
 These same checks are not available in the 1.9.2 version.  But from a series of looking through
the code we realized that the changes to this file are slated for nifi 1.10.0 as shown in
the fix verion here: https://issues.apache.org/jira/browse/NIFI-6067.  We found something
in the https://github.com/apache/nifi/blob/master/nifi-docker/dockerhub/sh/start.sh script.
 In the version on Master there are checks to add JVM_HEAP parameters to the nifi_bootstrap_file.
 These same checks are not available in the 1.9.2 version.  But from a series of looking through
the code we realized that the changes to this file are slated for nifi 1.10.0 as shown in
the fix version here: https://issues.apache.org/jira/browse/NIFI-6067.  We're going to make
the adjustments we need and make a note to remove when 1.10.0 comes out.   

We're going to resolve this issue since there looks to be a fix in the works. 


was (Author: withers.ryan@gmail.com):
We found something in the https://github.com/apache/nifi/blob/master/nifi-docker/dockerhub/sh/start.sh
script.  In the version on Master there are checks to add JVM_HEAP parameters to the nifi_bootstrap_file.
 These same checks are not available in the 1.9.2 version.  But from a series of looking through
the code we realized that the changes to this file are slated for nifi 1.10.0 as shown in
the fix verion here: https://issues.apache.org/jira/browse/NIFI-6067.  We found something
in the https://github.com/apache/nifi/blob/master/nifi-docker/dockerhub/sh/start.sh script.
 In the version on Master there are checks to add JVM_HEAP parameters to the nifi_bootstrap_file.
 These same checks are not available in the 1.9.2 version.  But from a series of looking through
the code we realized that the changes to this file are slated for nifi 1.10.0 as shown in
the fix version here: https://issues.apache.org/jira/browse/NIFI-6067.  We're going to make
the adjustments we need and make a note to remove when 1.10.0 comes out.   

> Docker container JVM heap not applying
> --------------------------------------
>
>                 Key: NIFI-6731
>                 URL: https://issues.apache.org/jira/browse/NIFI-6731
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Docker
>    Affects Versions: 1.9.2
>            Reporter: cavemandaveman
>            Priority: Major
>
> The environment variables:
> *NIFI_JVM_HEAP_INIT*
> *NIFI_JVM_HEAP_MAX*
> do not get set properly once the container is running.
>  
> For example, when setting these variables in the docker run command:
> *docker run -d -p 8080:8080 -e NIFI_JVM_HEAP_INIT=2g -e NIFI_JVM_HEAP_MAX=2g apache/nifi:1.9.2*
> then checking [http://localhost:8080/nifi-api/system-diagnostics] shows that *totalHeap*
and *maxHeap* are set to the default 512mb. Also exec-ing into the container and looking
at the bootstrap.conf shows that *java.arg.2* and *java.arg.3* did not get updated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message