[
https://issues.apache.org/jira/browse/NIFI-7200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17054003#comment-17054003
]
Jens M Kofoed commented on NIFI-7200:
-------------------------------------
[~joewitt], [~Leah Anderson]
I tried to make a small setup and can also see the amount of connections with
TIME_WAIT going up. But I'm using HTTP. Don't see any problems using raw.
Machine A:
Windows 10 with NIFI 1.11.3
A GenerateFlowFile process set with Run schedule: 2 sec, File size 5kB, File
batch 100 -> going into a output port
Machine B:
Windows 10 with NIFI 1.11.3
RPG, setup using HTTP as transfer protocol. Just for fun, I set these settings
for the port:
Batch Settings Count=13, Size=No value set, Duration=1 sec
The data out of the RPG is going into an updateAttribue process with
Automatically terminate relationships for the success.
Now at Machine B in powershell I run the following command: while(1)\{netstat |
Select-String -Pattern "TIME_WAIT" | Measure-Object -Line; sleep 5}
The amount of lines with the TIME_WAIT goes slowly up, to around 1200-1400 for
a couple of minutes and it start going down again. Some times the step between
2 read outs are equal to 13 which is the same value set for the Batch count.
Playing with the batch count and time out vallue for the RPG affect the results
of the amount of TIME_WAIT connections.
So it seems like the connections are not closed correctly and is closed after
the time out value set in the RPG. So if you have multiple connections and the
amount of flow files are big and growing I can see the issue [~ezs] are facing.
> IPv4 socket resource leak
> -------------------------
>
> Key: NIFI-7200
> URL: https://issues.apache.org/jira/browse/NIFI-7200
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Joe Witt
> Priority: Critical
> Attachments: Screen Shot 2020-03-06 at 1.04.57 PM.png, lsof
> test-node2.txt, test-node1-flow.png, test-node1.dump, test-node1.logs.zip,
> test-node2-flow.png, test-node2.dump, test-node2.logs.zip
>
>
> https://issues.apache.org/jira/browse/NIFI-7114?focusedCommentId=17044888&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17044888
--
This message was sent by Atlassian Jira
(v8.3.4#803005)