<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to determine java heep size on kafka machines in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202257#M164263</link>
    <description>&lt;P&gt;@Jay I ask all these questions because seems that the default of 1G inst enough , and we have in the past critical errors as the following from kafka.err ( this was very big problem and causes restarting of kafka broker )&lt;/P&gt;&lt;PRE&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "kafka-network-thread-1002-PLAINTEXT-2"
Exception in thread "ExpirationReaper-1002" Exception in thread "ExpirationReaper-1002" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 May 2018 17:24:41 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2018-05-24T17:24:41Z</dc:date>
    <item>
      <title>how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202253#M164259</link>
      <description>&lt;P&gt;&lt;BR /&gt;
we have Hadoop cluster ( version 2.6.4 ) with 3 physical kafka machines&lt;/P&gt;&lt;P&gt;we want to know what is the
values of Xmx and Xms that we need to allocate on the kafka machines&lt;/P&gt;&lt;P&gt;in order to setup the in
the Xmx and Xms on kafka machine we need to configure the
script &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/usr/hdp/2.6.4 /kafka/bin/kafka-server-start &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for now the  default values are ( Xmx is 1G and Xms is 1G )&lt;/P&gt;&lt;PRE&gt;if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
export
KAFKA_HEAP_OPTS="-Xmx1G –Xms1G"
fi

&lt;/PRE&gt;&lt;PRE&gt;[root@kafka01 ~]# free -g
              total        used        free      shared  buff/cache   available
Mem:            251          17          11           0         222         233
Swap:            15           6           9


&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;on each kafka we have 256G&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and we found this link - &lt;A href="https://stackoverflow.com/questions/4667483/how-is-the-default-java-heap-size-determined"&gt;https://stackoverflow.com/questions/4667483/how-is-the-default-java-heap-size-determined&lt;/A&gt;&lt;/P&gt;&lt;P&gt;according to the link in
stackoverflow we can use this formula:&lt;/P&gt;&lt;PRE&gt;[root@kafka01 ~]# java -XX:+PrintFlagsFinal -version | grep HeapSize&lt;/PRE&gt;
&lt;PRE&gt;    uintx ErgoHeapSizeLimit                         = 0                                                                                                                {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx HeapSizePerGCThread                       = 87241520                                                                                                         {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx InitialHeapSize                          := 2147483648                                                                                                       {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx LargePageHeapSizeThreshold                = 134217728                                                                                                        {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx MaxHeapSize                              := 32210157568                                                                                                      {product}&lt;/PRE&gt;
&lt;PRE&gt;openjdk version "1.8.0_65"&lt;/PRE&gt;
&lt;PRE&gt;OpenJDK Runtime Environment (build 1.8.0_65-b17)&lt;/PRE&gt;
&lt;PRE&gt;OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)&lt;/PRE&gt;
&lt;PRE&gt;[root@kafka01 ~]# java -XX:+PrintFlagsFinal -version | grep HeapSize&lt;/PRE&gt;
&lt;PRE&gt;    uintx ErgoHeapSizeLimit                         = 0                                   {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx HeapSizePerGCThread                       = 87241520                            {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx InitialHeapSize                          := 2147483648                          {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx LargePageHeapSizeThreshold                = 134217728                           {product}&lt;/PRE&gt;
&lt;PRE&gt;    uintx MaxHeapSize                              := 32210157568                         {product}&lt;/PRE&gt;
&lt;PRE&gt;openjdk version "1.8.0_65"&lt;/PRE&gt;
&lt;PRE&gt;OpenJDK Runtime Environment (build 1.8.0_65-b17)&lt;/PRE&gt;
&lt;PRE&gt;OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)&lt;/PRE&gt;&lt;P&gt;So the values comes with bytes
and we can calculate them to Giga&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;Xmx = 32G&lt;/P&gt;&lt;P&gt;Xms = 2G&lt;/P&gt;&lt;P&gt;What is the recommendation of
hortonworks about Xmx and Xms ?&lt;/P&gt;&lt;P&gt;Dose hortonworks except the
formula - &lt;STRONG&gt;java -XX:+PrintFlagsFinal -version | grep HeapSize&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In order to get the right values
of Xmx and Xms ?&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 16:39:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202253#M164259</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T16:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202254#M164260</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The command that you are using just shows the values that the JVM has picked the default values and has started with the listed values&lt;/P&gt;&lt;PRE&gt;[root@kafka01 ~]# java -XX:+PrintFlagsFinal -version | grep HeapSize&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;However as you are seeing 32 GB which looks strange because JVM does not start with that huge value by default until you have some Environment variable defined globally like  "_JAVA_OPTIONS" Or "JAVA_OPTIONS"&lt;/P&gt;&lt;P&gt;So please check the output of the same command after unsetting some global variable settings.&lt;/P&gt;&lt;PRE&gt;[root@kafka01 ~]# unset _JAVA_OPTIONS
[root@kafka01 ~]# unset JAVA_OPTIONS
[root@kafka01 ~]# java -XX:+PrintFlagsFinal -version | grep HeapSize
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 17:04:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202254#M164260</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-24T17:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202255#M164261</link>
      <description>&lt;P&gt;hi Jay&lt;/P&gt;&lt;P&gt;we get the same values: ( after unset )&lt;/P&gt;&lt;PRE&gt; java -XX:+PrintFlagsFinal -version | grep HeapSize
    uintx ErgoHeapSizeLimit                         = 0                                   {product}
    uintx HeapSizePerGCThread                       = 87241520                            {product}
    uintx InitialHeapSize                          := 2147483648                          {product}
    uintx LargePageHeapSizeThreshold                = 134217728                           {product}
    uintx MaxHeapSize                              := 32210157568                         {product}
openjdk version "1.8.0_65"
OpenJDK Runtime Environment (build 1.8.0_65-b17)
OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 May 2018 17:16:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202255#M164261</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202256#M164262</link>
      <description>&lt;P&gt;$Jay , anyway what is your personal recommendation for Xmx and Xms values ? ( according to jafka memory size )&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 17:18:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202256#M164262</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T17:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202257#M164263</link>
      <description>&lt;P&gt;@Jay I ask all these questions because seems that the default of 1G inst enough , and we have in the past critical errors as the following from kafka.err ( this was very big problem and causes restarting of kafka broker )&lt;/P&gt;&lt;PRE&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "kafka-network-thread-1002-PLAINTEXT-2"
Exception in thread "ExpirationReaper-1002" Exception in thread "ExpirationReaper-1002" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 May 2018 17:24:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202257#M164263</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T17:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202258#M164264</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kafka relies heavily on the filesystem for storing and caching messages. All data is immediately written to a persistent log on the filesystem without necessarily flushing to disk. Kafka uses heap space very carefully and does not require setting heap sizes more than &lt;STRONG&gt;5GB&lt;/STRONG&gt;. Kafka uses page cache memory as a buffer for active writers and readers, so after you specify JVM size (using -Xmx and -Xms Java options), leave the remaining RAM available to the operating system for page caching.&lt;BR /&gt;&lt;BR /&gt;Add the "&lt;STRONG&gt;KAFKA_HEAP_OPTS&lt;/STRONG&gt;" option inside the "Advanced kafka-env" to a larger value than 1GB (default) and then restart the kafka.&lt;BR /&gt;&lt;STRONG&gt;Ambari UI --&amp;gt; Configs --&amp;gt; Advanced --&amp;gt; "Advanced kafka-env" --&amp;gt; kafka-env template
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# Set KAFKA specific environment variables here.
export KAFKA_HEAP_OPTS="$KAFKA_HEAP_OPTS -Xms3g -Xmx3g"&lt;/PRE&gt;&lt;P&gt;Please note the -Xmx3g and -Xmx3g is just a value i picked up. You can increase the value a bit more based on your requirement / GC log analysis.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;then restart Kafka brokers.&lt;/P&gt;&lt;P&gt;Verify if it is taking correct settings or not as following:&lt;/P&gt;&lt;PRE&gt;# ps -ef | grep -i kafka&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 18:20:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202258#M164264</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-24T18:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202259#M164265</link>
      <description>&lt;P&gt;In addition to above comment there is a very good article available for Kafka Brest practice &amp;amp; tuning you might want to refer to it: &lt;/P&gt;&lt;P&gt;1.  &lt;A href="https://community.hortonworks.com/articles/80813/kafka-best-practices-1.html" target="_blank"&gt;https://community.hortonworks.com/articles/80813/kafka-best-practices-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. &lt;A href="https://community.hortonworks.com/articles/80813/kafka-best-practices-2.html" target="_blank"&gt;https://community.hortonworks.com/articles/80813/kafka-best-practices-2.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 18:25:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202259#M164265</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-24T18:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202260#M164266</link>
      <description>&lt;P&gt;@Jay why not to update the script - &lt;STRONG&gt;/usr/hdp/2.6.4 /kafka/bin/kafka-server-start  &lt;/STRONG&gt;on each kafka&lt;STRONG&gt; ? &lt;/STRONG&gt;and change there the Xmx and Xms&lt;STRONG&gt; &lt;/STRONG&gt;insted to add the new Xmx and Xms inside the ambari in &lt;STRONG&gt;kafka-env template&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 18:57:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202260#M164266</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202261#M164267</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt;&lt;P&gt;&lt;STRONG&gt;Regarding your query:&lt;/STRONG&gt;  Why not to update the script - &lt;STRONG&gt;/usr/hdp/2.6.4 /kafka/bin/kafka-server-start  &lt;/STRONG&gt;on each kafka&lt;STRONG&gt; ?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;  &amp;gt;&amp;gt;&amp;gt; &lt;/STRONG&gt;Editing the sh file on all broker host is also possible but error prown and requires manual efforts on all the hosts.  Ambari provides a better option.&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You have both the options.  Ambari provides a better centralized way to control the configuration and also manage config history, &lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:22:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202261#M164267</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-24T19:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202262#M164268</link>
      <description>&lt;P&gt;@Jay after I update the lines in ambari I get:&lt;/P&gt;&lt;PRE&gt;ps -ef | grep kafka&amp;lt;br&amp;gt;kafka     58614      1 99 11:49 ?        00:00:44 /usr/jdk64/jdk1.8.0_112/bin/java -Xms3g -Xmx3g -Xms3g -Xmx3g -Xms3g -Xmx3g&lt;/PRE&gt;&lt;P&gt;instead to get:&lt;/P&gt;&lt;PRE&gt;ps -ef | grep kafka&amp;lt;br&amp;gt;kafka     58614      1 99 11:49 ?        00:00:44 /usr/jdk64/jdk1.8.0_112/bin/java -Xms3g -Xmx3g &lt;/PRE&gt;</description>
      <pubDate>Thu, 24 May 2018 19:38:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202262#M164268</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T19:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202263#M164269</link>
      <description>&lt;P&gt;@jay&lt;/P&gt;&lt;P&gt;according to the article ( &lt;A href="https://community.hortonworks.com/articles/80813/kafka-best-practices-2.html" target="_blank"&gt;https://community.hortonworks.com/articles/80813/kafka-best-practices-2.html&lt;/A&gt; ) , I see&lt;/P&gt;&lt;H1&gt;Kafka Broker:&lt;/H1&gt;&lt;H2&gt;Java Version&lt;/H2&gt;&lt;P&gt;We recommend latest java 1.8 with G1 collector ( which is default in new version). If you are using Java 1.7 and G1 collector make sure you are on u51 or higher.&lt;/P&gt;&lt;P&gt;A recommended setting for JVM looks like following&lt;/P&gt;&lt;PRE&gt;-Xmx8g -Xms8g -XX:MetaspaceSize=96m -XX:+UseG1GC-XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1HeapRegionSize=16M-XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80&lt;/PRE&gt;&lt;P&gt;lets say that I update the new "-Xmx8g -Xms8g"  &lt;/P&gt;&lt;P&gt;in the script - &lt;STRONG&gt;/usr/hdp/2.6.4 /kafka/bin/kafka-server-start &lt;/STRONG&gt;on each kafka&lt;/P&gt;&lt;PRE&gt;then where I need to add/change other values - "-XX:MetaspaceSize=96m -XX:+UseG1GC-XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1HeapRegionSize=16M-XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80"  ?&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 May 2018 19:43:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202263#M164269</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T19:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202264#M164270</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;please check your environment variables if somewhere you are setting "" variable is defined twice of the script is being invoked 3 times.  &lt;/P&gt;&lt;P&gt;But practically it will not harm.  Because duplicate JVM flags are allowed .. only the last occurrance of the duplicate value takes precedence.&lt;/P&gt;&lt;P&gt;However please try this to fix this: remove the "$KAFKA_HEAP_OPTS" from the previously mentioned line. thenr estart broker.&lt;/P&gt;&lt;PRE&gt;# Set KAFKA specific environment variables here.
export KAFKA_HEAP_OPTS="-Xms3g -Xmx3g"&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:44:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202264#M164270</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-24T19:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine java heep size on kafka machines</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202265#M164271</link>
      <description>&lt;P&gt;@Jay &lt;/P&gt;&lt;P&gt;now I get the right values from ps -ef | grep kafka&lt;/P&gt;&lt;PRE&gt;kafka     74086      1 99 12:53 ?        00:00:15 /usr/jdk64/jdk1.8.0_112/bin/java -Xms3g -Xmx3g -server&lt;/PRE&gt;&lt;P&gt;now is it possible to set the value&lt;/P&gt;&lt;PRE&gt; export KAFKA_HEAP_OPTS="-Xms3g -Xmx3g" &lt;/PRE&gt;&lt;P&gt;by API ?&lt;/P&gt;&lt;P&gt;* we want to automate this process by script bash&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:59:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-determine-java-heep-size-on-kafka-machines/m-p/202265#M164271</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-05-24T19:59:44Z</dc:date>
    </item>
  </channel>
</rss>

