<?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 NIFI: How to turn on GC logging for NiFi? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/192853#M62084</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are having difficulties with cluster nodes periodically becoming disconnected from the cluster. The kind of errors we are seeing in the logs are the same as the ones mentioned in this question: &lt;A href="https://community.hortonworks.com/questions/93694/nifi-10-node-suddenly-disconnected-and-connected.html" target="_blank"&gt;https://community.hortonworks.com/questions/93694/nifi-10-node-suddenly-disconnected-and-connected.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The suggestion in that question is that the problem is related to problems communication with Zookeeper (which is running fine in our system) and could possibly be related to Garbage Collection within NiFi causing an interruption to processing.&lt;/P&gt;&lt;P&gt;I would therefore like to gather some evidence as to how long GC is taking, but I can't see any GC information in the NiFi logs.&lt;/P&gt;&lt;P&gt;Can you tell me if it's possible to switch on logging of garbage collection within NiFi, and if not, suggest a way of monitoring GC, bearing in mind that it would not be possible for me to download and install some third-party monitoring tool on our system.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 20:31:02 GMT</pubDate>
    <dc:creator>richard_d_corfi</dc:creator>
    <dc:date>2017-05-31T20:31:02Z</dc:date>
    <item>
      <title>NIFI: How to turn on GC logging for NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/192853#M62084</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are having difficulties with cluster nodes periodically becoming disconnected from the cluster. The kind of errors we are seeing in the logs are the same as the ones mentioned in this question: &lt;A href="https://community.hortonworks.com/questions/93694/nifi-10-node-suddenly-disconnected-and-connected.html" target="_blank"&gt;https://community.hortonworks.com/questions/93694/nifi-10-node-suddenly-disconnected-and-connected.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The suggestion in that question is that the problem is related to problems communication with Zookeeper (which is running fine in our system) and could possibly be related to Garbage Collection within NiFi causing an interruption to processing.&lt;/P&gt;&lt;P&gt;I would therefore like to gather some evidence as to how long GC is taking, but I can't see any GC information in the NiFi logs.&lt;/P&gt;&lt;P&gt;Can you tell me if it's possible to switch on logging of garbage collection within NiFi, and if not, suggest a way of monitoring GC, bearing in mind that it would not be possible for me to download and install some third-party monitoring tool on our system.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 20:31:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/192853#M62084</guid>
      <dc:creator>richard_d_corfi</dc:creator>
      <dc:date>2017-05-31T20:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI: How to turn on GC logging for NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/192854#M62085</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16104/richarddcorfield.html" nodeid="16104"&gt;@Richard Corfield&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can get GC output logs out of NiFi by adding the following lines to NiFi's bootstrap.conf file:&lt;/P&gt;&lt;PRE&gt;java.arg.20=-XX:+PrintGCDetails

java.arg.21=-XX:+PrintGCTimeStamps

java.arg.22=-XX:+PrintGCDateStamps

java.arg.23=-Xloggc:&amp;lt;file&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The last entry allows you to specific a separate log file for this output to be written in to rather then stdout.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 20:44:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/192854#M62085</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-31T20:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI: How to turn on GC logging for NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/192855#M62086</link>
      <description>&lt;P&gt;Thank you. I've tested this on our Dev system and it looks like it's exactly what we need.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 21:30:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/192855#M62086</guid>
      <dc:creator>richard_d_corfi</dc:creator>
      <dc:date>2017-05-31T21:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI: How to turn on GC logging for NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/281471#M62087</link>
      <description>&lt;P&gt;Thank you for your solution. It works wonders.&lt;/P&gt;&lt;P&gt;In the meantime I don't think there is a default housekeeping process.&lt;/P&gt;&lt;P&gt;Do you know how to control the rollover of the GC logs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:24:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/281471#M62087</guid>
      <dc:creator>DavidR</dc:creator>
      <dc:date>2019-10-28T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI: How to turn on GC logging for NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/281499#M62088</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70071"&gt;@DavidR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Typically you would only enable GC debug logging to investigate and issue and not leave these properties in all the time.&lt;BR /&gt;&lt;BR /&gt;If you intend on leaving these in all the time, i suggest removing the following line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;java.arg.23=-Xloggc:&amp;lt;file&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With no log file defined the GC logs will go directly in to the nifi-bootstrap.log.&lt;/P&gt;&lt;P&gt;You can then easily control/configure log rotation and retention for the NiFi bootstrap log in the logback.xml file found in the NiFi conf directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 19:05:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/281499#M62088</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-10-28T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI: How to turn on GC logging for NiFi?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/281552#M62089</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your input. It works and It was invaluable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 11:21:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-How-to-turn-on-GC-logging-for-NiFi/m-p/281552#M62089</guid>
      <dc:creator>DavidR</dc:creator>
      <dc:date>2019-10-29T11:21:18Z</dc:date>
    </item>
  </channel>
</rss>

