<?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: timeline server memory leak? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/317234#M35227</link>
    <description>&lt;P&gt;Same problem for us today.&lt;/P&gt;&lt;P&gt;19G yesterday and 11G today after restart.&lt;/P&gt;&lt;P&gt;Is there a patch available ?&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 09:38:17 GMT</pubDate>
    <dc:creator>gael__urbauer</dc:creator>
    <dc:date>2021-05-27T09:38:17Z</dc:date>
    <item>
      <title>timeline server memory leak?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/137440#M35226</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use HDP 2.4.0, CentOS 6.7, jdk1.8.0_72&lt;/P&gt;&lt;P&gt;I suspect timeline server memory leak.&lt;/P&gt;&lt;P&gt;I filed jira(https://issues.apache.org/jira/browse/YARN-5368)&lt;/P&gt;&lt;P&gt;Because I use HDP, so I post here.&lt;/P&gt;&lt;P&gt;I set -Xmx1024m, but ps command shows 3.5GB of memory usage.&lt;/P&gt;&lt;P&gt;And then memory usage increases everyday.&lt;/P&gt;&lt;P&gt;I'm wondering.
What is the reason?
for example, LevelDB JNI memory leak?&lt;/P&gt;&lt;P&gt;If there is a good metrics for monitoring, could you tell me?&lt;/P&gt;&lt;PRE&gt;# ps aux | grep timelineserver
yarn       6163  2.7  5.3 6630548 3545856 ?     Sl   Jul13 288:20 /usr/java/jdk1.8.0_72/bin/java -Dproc_timelineserver -Xmx1024m -Dhdp.version=2.4.0.0-169 -Dhadoop.log.dir=/var/log/hadoop-yarn/yarn -Dyarn.log.dir=/var/log/hadoop-yarn/yarn -Dhadoop.log.file=yarn-yarn-timelineserver-myhost.log -Dyarn.log.file=yarn-yarn-timelineserver-myhost.log -Dyarn.home.dir= -Dyarn.id.str=yarn -Dhadoop.root.logger=INFO,EWMA,RFA -Dyarn.root.logger=INFO,EWMA,RFA -Djava.library.path=:/usr/hdp/2.4.0.0-169/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.4.0.0-169/hadoop/lib/native:/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir:/usr/hdp/2.4.0.0-169/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.4.0.0-169/hadoop/lib/native:/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir -Dyarn.policy.file=hadoop-policy.xml -Djava.io.tmpdir=/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir -Dhadoop.log.dir=/var/log/hadoop-yarn/yarn -Dyarn.log.dir=/var/log/hadoop-yarn/yarn -Dhadoop.log.file=yarn-yarn-timelineserver-myhost.log -Dyarn.log.file=yarn-yarn-timelineserver-myhost.log -Dyarn.home.dir=/usr/hdp/current/hadoop-yarn-timelineserver -Dhadoop.home.dir=/usr/hdp/2.4.0.0-169/hadoop -Dhadoop.root.logger=INFO,EWMA,RFA -Dyarn.root.logger=INFO,EWMA,RFA -Djava.library.path=:/usr/hdp/2.4.0.0-169/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.4.0.0-169/hadoop/lib/native:/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir:/usr/hdp/2.4.0.0-169/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.4.0.0-169/hadoop/lib/native:/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir -classpath /usr/hdp/current/hadoop-client/conf:/usr/hdp/current/hadoop-client/conf:/usr/hdp/current/hadoop-client/conf:/usr/hdp/2.4.0.0-169/hadoop/lib/*:/usr/hdp/2.4.0.0-169/hadoop/.//*:/usr/hdp/2.4.0.0-169/hadoop-hdfs/./:/usr/hdp/2.4.0.0-169/hadoop-hdfs/lib/*:/usr/hdp/2.4.0.0-169/hadoop-hdfs/.//*:/usr/hdp/2.4.0.0-169/hadoop-yarn/lib/*:/usr/hdp/2.4.0.0-169/hadoop-yarn/.//*:/usr/hdp/2.4.0.0-169/hadoop-mapreduce/lib/*:/usr/hdp/2.4.0.0-169/hadoop-mapreduce/.//*::/usr/hdp/2.4.0.0-169/tez/*:/usr/hdp/2.4.0.0-169/tez/lib/*:/usr/hdp/2.4.0.0-169/tez/conf:/usr/hdp/2.4.0.0-169/tez/*:/usr/hdp/2.4.0.0-169/tez/lib/*:/usr/hdp/2.4.0.0-169/tez/conf:/usr/hdp/current/hadoop-yarn-timelineserver/.//*:/usr/hdp/current/hadoop-yarn-timelineserver/lib/*:/usr/hdp/current/hadoop-client/conf/timelineserver-config/log4j.properties org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer
&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:15:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/137440#M35226</guid>
      <dc:creator>wyukawa</dc:creator>
      <dc:date>2016-07-20T16:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: timeline server memory leak?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/317234#M35227</link>
      <description>&lt;P&gt;Same problem for us today.&lt;/P&gt;&lt;P&gt;19G yesterday and 11G today after restart.&lt;/P&gt;&lt;P&gt;Is there a patch available ?&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 09:38:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/317234#M35227</guid>
      <dc:creator>gael__urbauer</dc:creator>
      <dc:date>2021-05-27T09:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: timeline server memory leak?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/318053#M35228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55966" target="_blank" rel="noopener"&gt;wyukawa&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;As you mentioned this is yarn bug -&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/YARN-5368" target="_self"&gt;YARN-5368&lt;/A&gt; and is fixed in the HDP-2.5.6 version.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;You can try setting the below properties in your environment and check whether it helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;yarn.timeline-service.ttl-ms=604800000 
yarn.timeline-service.rolling-period=daily 
yarn.timeline-service.leveldb-timeline-store.read-cache-size=4194304 
yarn.timeline-service.leveldb-timeline-store.write-buffer-size=4194304 
yarn.timeline-service.leveldb-timeline-store.max-open-files=500&lt;/PRE&gt;&lt;P&gt;NOTE: Kindly replace the values according to your need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the above suggested workaround doesn't help then i would suggest you to upgrade your environment to HDP-2.5.6 version or more. You can refer the below link to check the fixed issues:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.5.6/bk_release-notes/content/fixed_issues.html" target="_self"&gt;https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.5.6/bk_release-notes/content/fixed_issues.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please "Accept as Solution" if my answer was helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 05:46:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/318053#M35228</guid>
      <dc:creator>shobikas</dc:creator>
      <dc:date>2021-06-10T05:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: timeline server memory leak?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/318377#M35229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37895"&gt;@gael__urbauer&lt;/a&gt;&amp;nbsp;, did&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67286"&gt;@shobikas&lt;/a&gt;' solution work for you? Have&amp;nbsp;&lt;SPAN&gt;you found a resolution for your issue? If so, can you please mark the appropriate reply as the solution?&amp;nbsp;It will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 05:43:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/timeline-server-memory-leak/m-p/318377#M35229</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-06-14T05:43:39Z</dc:date>
    </item>
  </channel>
</rss>

