<?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: InvokeHTTP randomly hangs in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/305823#M222574</link>
    <description>&lt;P&gt;I've had some success in stabilising InvokeHTTP by adding a "Connection" property and setting its value to "close". As I understand it, this will effectively disable HTTP keepalives in the underlying libraries.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-11-12 10-20-54.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29458iC7DD9D0D2AB89E20/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-11-12 10-20-54.png" alt="Screenshot from 2020-11-12 10-20-54.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 10:30:09 GMT</pubDate>
    <dc:creator>lw47</dc:creator>
    <dc:date>2020-11-12T10:30:09Z</dc:date>
    <item>
      <title>InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296184#M218139</link>
      <description>&lt;P&gt;I have a NiFi flow [on a 2 processor machine using 8/5 thread counts] where the InvokeHTTP block is no longer processing files from the queue [shown below]:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-19 at 12.04.24 copy.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27549iD429C1279AE3E95D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-05-19 at 12.04.24 copy.png" alt="Screenshot 2020-05-19 at 12.04.24 copy.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see there are 8 processes running but these seem to be stuck for hours and the only way out of it is manually stopping and terminating the block. This results in the following log message:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-05-18 08:31:06,228 ERROR [Timer-Driven Process Thread-12 &amp;lt;Terminated Task&amp;gt;] o.a.nifi.processors.standard.InvokeHTTP InvokeHTTP[id=f2f13d29-016b-1000-293d-c0cb04835881] Routing to Failure due to exception: java.net.SocketTimeoutException: timeout: java.net.SocketTimeoutException: timeout
java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:593)
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:601)
	at okhttp3.internal.http2.Http2Stream.takeResponseHeaders(Http2Stream.java:146)
	at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:120)
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
	at okhttp3.RealCall.execute(RealCall.java:69)
	at org.apache.nifi.processors.standard.InvokeHTTP.onTrigger(InvokeHTTP.java:791)
	at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
	at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1162)
	at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:209)
	at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
	at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Before stopping the process, I had a look into the&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;nifi-bootstrap.log&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;file and noticed a number of similar messages. I'm not sure whether these are related since no direct reference to InvokeHTTP is made.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"NiFi Web Server-556239" Id=556239 TIMED_WAITING  on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@2f7a83f7
	at sun.misc.Unsafe.park(Native Method)
	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
	at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:392)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll(QueuedThreadPool.java:653)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.access$800(QueuedThreadPool.java:48)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:717)
	at java.lang.Thread.run(Thread.java:748)

"OkHttp ConnectionPool" Id=213155 TIMED_WAITING  on okhttp3.ConnectionPool@72d6189
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:460)
	at okhttp3.ConnectionPool$1.run(ConnectionPool.java:67)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
	Number of Locked Synchronizers: 1
	- java.util.concurrent.ThreadPoolExecutor$Worker@7b6a1485

"Okio Watchdog" Id=556238 TIMED_WAITING  on java.lang.Class@2b4512c0
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:460)
	at okio.AsyncTimeout.awaitTimeout(AsyncTimeout.java:361)
	at okio.AsyncTimeout$Watchdog.run(AsyncTimeout.java:312)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Any help/insights on this would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 10:37:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296184#M218139</guid>
      <dc:creator>keithg</dc:creator>
      <dc:date>2020-05-19T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296190#M218143</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78143"&gt;@keithg&lt;/a&gt;&amp;nbsp;Can you update the post with the scheduling settings for InvokeHttp? &amp;nbsp;Also would nice to see &amp;nbsp;some specific details about the nifi environment (min/max memory settings, nifi node spec, disk config, etc) and setting for min/max threads?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without taking those things in consideration, I would assume you are overloading capability resulting in instability you are experiencing. &amp;nbsp;If you slow down the scheduling and consume the incoming queue at a slower rate, does the timeout persist?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 11:52:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296190#M218143</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-05-19T11:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296207#M218154</link>
      <description>&lt;P&gt;These are the scheduling settings:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-19 at 17.39.54.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27551i1BCEE38DAC9964D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-05-19 at 17.39.54.png" alt="Screenshot 2020-05-19 at 17.39.54.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NiFi 1.9.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2 cores&lt;BR /&gt;4GB RAM [available to docker container running NiFi]&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8 timer driver threads&lt;BR /&gt;5 event driven threads&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;java.arg.2&lt;/SPAN&gt;&lt;SPAN&gt;=-Xms1024m&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;java.arg.3&lt;/SPAN&gt;&lt;SPAN&gt;=-Xmx1024m&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 May 2020 17:03:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296207#M218154</guid>
      <dc:creator>keithg</dc:creator>
      <dc:date>2020-05-19T17:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296312#M218184</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78143"&gt;@keithg&lt;/a&gt;&amp;nbsp; If you change the 1 sec to 15 sec or 30 sec does it become more stable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the schedule set to 1 sec, invokeHttp will execute 1600 connections as fast as possible. &amp;nbsp;This opens up quite a bit of room for either exceeding the capabilities of your environment (not enough nodes, ram or cores) or the upstream service you are connecting too (actual network issues with the workload).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you only have 2 cores, you need to sensitive to tuning the flow, and most likely need to go slower (ie not 1 sec). &amp;nbsp;You should also investigate documented NiFi Performance Tuning Steps, adding a lot more cores, adding more ram to each node including min ram: 2-6 gb max ram: 4-8-16 gb, and/or adjusting Garbage Collection.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 14:02:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/296312#M218184</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-05-20T14:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/297175#M218634</link>
      <description>&lt;P&gt;Unfortunately the issue is still happening even after drastically reducing the scheduled execution time. What is strange is that replacing this block with an ExecuteStreamCommand block (which calls a Python function that does this same thing) does not seem to exhibit the same problem. Can you think of any reason as to why this is the case?&lt;BR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 16:28:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/297175#M218634</guid>
      <dc:creator>keithg</dc:creator>
      <dc:date>2020-06-03T16:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/297382#M218671</link>
      <description>&lt;P&gt;Do you have the concurrency of the python set to 8 too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With only 2 cores, and concurrency set to 8, &amp;nbsp;you are still in realms of pushing the limits of stability with the number of active threads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I am building a flow, i never touch concurrency until I am ready to run very specific unit tests against each processor where I am adjusting scheduling, queue properties, and concurrency. &amp;nbsp; This is done with nifi clusters with 10s,50s,100s of cores. &amp;nbsp;With a dev system of 1,2, or 3 nodes and very small number of cores I do not do any tuning, just logical testing without time or speed expectations because it will break....&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 12:42:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/297382#M218671</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-06-04T12:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/297519#M218740</link>
      <description>&lt;P&gt;It has the same amount of threads and it does not hang. I did notice however that there were a number of timeouts, is it possible that InvokeHTTP is not timing out as intended? (the InvokeHTTP block was left using the default timeouts).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There seems to be something more to this when a different process block with identical load and similar functionality does not exhibit this behaviour. Limiting the InvokeHTTP block to a single thread with a lower execution rate also exhibits the problem.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 21:48:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/297519#M218740</guid>
      <dc:creator>keithg</dc:creator>
      <dc:date>2020-06-06T21:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/298310#M219095</link>
      <description>&lt;P&gt;We can reliably reproduce the exact same problem on InvokeHTTP 1.11.4 processor when performing a GET on an internal API. We run Nifi in a VM in GCloud.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried various number of threads, run schedule, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once in a while, it gets stuck forever and we need to terminate the thread or stop/start Nifi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nifi dumps shows the wait on some http2 streaming method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-06-18 14:20:49,214 INFO [main] org.apache.nifi.bootstrap.RunNiFi "Timer-Driven Process Thread-5" Id=57 WAITING on okhttp3.internal.http2.Http
2Stream@740df261  &lt;/LI-CODE&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;It really feels like the timeout properties are not taken into account.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;The solution described by&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78143"&gt;@keithg&lt;/a&gt;&amp;nbsp;is a reliable workaround. Using Python in an ExecuteScript processor is never hanging/freezing.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 14:52:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/298310#M219095</guid>
      <dc:creator>DavidNa</dc:creator>
      <dc:date>2020-06-19T14:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304034#M221844</link>
      <description>&lt;P&gt;I've been able to reproduce this same issue in nifi versions 1.9.2, 1.11.4, and even 1.12.1.&lt;/P&gt;&lt;P&gt;In all failure scenarios that I've tested, I've been running nifi on Java version 1.8.0_265 (openjdk version "1.8.0_265").&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79220"&gt;@DavidNa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78143"&gt;@keithg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using the same Java build (or build 262)?&amp;nbsp; If so, upgrading to Java 11 or downgrading to a Java build before 262 may fix this. I haven't been able to reproduce this issue on build 252.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm uncertain of the cause, but it may be related to this OpenJDK bug since build 262:&lt;/P&gt;&lt;P&gt;&lt;A href="https://bugs.openjdk.java.net/browse/JDK-8249677" target="_blank"&gt;https://bugs.openjdk.java.net/browse/JDK-8249677&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 15:49:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304034#M221844</guid>
      <dc:creator>avi1katz</dc:creator>
      <dc:date>2020-10-07T15:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304037#M221845</link>
      <description>&lt;P&gt;openjdk version "1.8.0_265", yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to upgrade Java, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 16:32:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304037#M221845</guid>
      <dc:creator>DavidNa</dc:creator>
      <dc:date>2020-10-07T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304039#M221847</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79220"&gt;@DavidNa&lt;/a&gt;&amp;nbsp;I've also tested this on Java 11.0.8 (openjdk version "11.0.8" 2020-07-14 LTS) and have found the same issue.&amp;nbsp; But I'm having some success with previous versions of Java 8 (build 232, 252)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 17:09:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304039#M221847</guid>
      <dc:creator>avi1katz</dc:creator>
      <dc:date>2020-10-07T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304216#M221935</link>
      <description>&lt;P&gt;We've also run into exactly this problem. So far we've tested a combination of NiFi and Java versions with mixed success: seems like the issue is a Java one and is present in a few different versions/distributions of Java.&lt;/P&gt;&lt;P&gt;Same symptoms: InvokeHTTP slowly locks up until all threads are locked and the queues back up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Couldn't reproduce on a simple AWS deployment, involing one EC2 instance running an HTTP server serving a small binary file, and another running a single node 2-core nifi cluster. Haven't tested with a larger instance yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="28px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;&lt;STRONG&gt;NiFi 1.9.2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;&lt;STRONG&gt;NiFi 1.11.4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;&lt;STRONG&gt;NiFi 1.12.1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="28px"&gt;&lt;STRONG&gt;Oracle Java 1.8u144&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;works&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;works&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;not tested&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="28px"&gt;&lt;STRONG&gt;OpenJDK 1.8u242&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;&lt;EM&gt;n/t&lt;/EM&gt;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;&lt;EM&gt;n/t&lt;/EM&gt;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;&lt;U&gt;about to test&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="28px"&gt;&lt;STRONG&gt;OpenJDK 1.8u252&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;fails&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;fails&lt;/TD&gt;&lt;TD width="25%" height="28px"&gt;fails&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="28px"&gt;&lt;STRONG&gt;OpenJDK 11.0.7&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD height="28px"&gt;&lt;EM&gt;n/t&lt;/EM&gt;&lt;/TD&gt;&lt;TD height="28px"&gt;&lt;EM&gt;n/t&lt;/EM&gt;&lt;/TD&gt;&lt;TD height="28px"&gt;fails&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="28px"&gt;&lt;STRONG&gt;Amazon Corretto 11.0.8&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD height="28px"&gt;&lt;EM&gt;n/t&lt;/EM&gt;&lt;/TD&gt;&lt;TD height="28px"&gt;&lt;EM&gt;n/t&lt;/EM&gt;&lt;/TD&gt;&lt;TD height="28px"&gt;fails&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 12 Oct 2020 14:05:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304216#M221935</guid>
      <dc:creator>al3xS</dc:creator>
      <dc:date>2020-10-12T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304267#M221959</link>
      <description>&lt;P&gt;To update - the combination of NiFi 1.12.1 and OpenJDK 1.8u242 works fine - left it running overnight with no hanging. I expect NiFi 1.11.4 to also work with this version, and avoid the bleeding edge!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 08:19:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/304267#M221959</guid>
      <dc:creator>al3xS</dc:creator>
      <dc:date>2020-10-13T08:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/305823#M222574</link>
      <description>&lt;P&gt;I've had some success in stabilising InvokeHTTP by adding a "Connection" property and setting its value to "close". As I understand it, this will effectively disable HTTP keepalives in the underlying libraries.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-11-12 10-20-54.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29458iC7DD9D0D2AB89E20/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-11-12 10-20-54.png" alt="Screenshot from 2020-11-12 10-20-54.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 10:30:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/305823#M222574</guid>
      <dc:creator>lw47</dc:creator>
      <dc:date>2020-11-12T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/307121#M223097</link>
      <description>&lt;P&gt;We've been running JDK&amp;nbsp;&lt;SPAN&gt;1.8.0_242 and Nifi 1.12.1 for almost a month now without incidents.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 20:21:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/307121#M223097</guid>
      <dc:creator>DavidNa</dc:creator>
      <dc:date>2020-12-07T20:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/307145#M223114</link>
      <description>&lt;P&gt;Same, since reverting to 242 in October we've been fine on both 1.11.4 and 1.12.1. (prod/test clusters).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Not tried the "Connection: close" option mentioned above!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 08:48:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/307145#M223114</guid>
      <dc:creator>al3xS</dc:creator>
      <dc:date>2020-12-08T08:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP randomly hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/314658#M226134</link>
      <description>&lt;P&gt;We had the hanging concurrent tasks problem running Nifi 1.11.4.&amp;nbsp; Upgrading to 1.13.2 resolved it for us.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 17:35:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-randomly-hangs/m-p/314658#M226134</guid>
      <dc:creator>Jeanne</dc:creator>
      <dc:date>2021-04-14T17:35:09Z</dc:date>
    </item>
  </channel>
</rss>

