<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:40 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[OPNFLWPLUG-507] OFHandshake thread leak leads to OOM</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-507</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;this is similar to the following fixed bugs:&lt;br/&gt;
&lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=2394&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=2394&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=2429&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=2429&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The 2429 issue has CI that is passing, so this is another flavor.  The quickest way to reproduce this would be to install odl-openflowplugin-southbound and then execute this linux tool from another system:&lt;/p&gt;

&lt;p&gt;for i in &lt;/p&gt;
{1..40000}
&lt;p&gt;; do nc -w 0 &amp;lt;controller&amp;gt; 6633; done;&lt;/p&gt;

&lt;p&gt;that will &lt;b&gt;very quickly&lt;/b&gt; (to make this a fast reproduction) open and close&lt;br/&gt;
40k TCP connections on port 6633 to the controller.&lt;/p&gt;

&lt;p&gt;you can get a thread count with this command:&lt;/p&gt;

&lt;p&gt;ps --no-headers -o nlwp &amp;lt;controller PID&amp;gt;&lt;/p&gt;

&lt;p&gt;after some time, you can see that the TCP connections are not maintained on the controller (which is what we expect):&lt;/p&gt;

&lt;p&gt;netstat -na | grep 6633&lt;/p&gt;

&lt;p&gt;after aprox 4-5m you should see an OutOfMemoryError.&lt;/p&gt;

&lt;p&gt;with a debugger, you can see that OFHandshake threads are hanging around.&lt;/p&gt;

&lt;p&gt;if you want to be nicer with the test, you can use a non-zero value for the &apos;nc&apos; command above.  Using 1, you can get one TCP connection open/closed every second and watch the thread count increase.&lt;/p&gt;

&lt;p&gt;This was done on the 6/17 RC1 build for Lithium.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27775">OPNFLWPLUG-507</key>
            <summary>OFHandshake thread leak leads to OOM</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="Avishnoi">Anil Vishnoi</assignee>
                                    <reporter username="jluhrsen">Jamo Luhrsen</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Jun 2015 22:18:10 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:35 +0000</updated>
                            <resolved>Fri, 19 Jun 2015 15:59:42 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="57142" author="vishnoianil@gmail.com" created="Fri, 19 Jun 2015 13:47:14 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/22994/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/22994/2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="57143" author="jluhrsen" created="Fri, 19 Jun 2015 15:59:42 +0000"  >&lt;p&gt;verified with the distribution created by the merge job of the patch 22994&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3794</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=3794]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i031kv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>