<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:20 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-391] Controller went out of memory after connecting 40 openflow switches in fully mesh topology</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-391</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;1) Run karaf&lt;br/&gt;
2) Enable the below features&lt;br/&gt;
feature:install odl-openflowplugin-flow-services&lt;br/&gt;
feature:install odl-dlux-all&lt;br/&gt;
feature:install odl-l2switch-all&lt;br/&gt;
feature:install odl-l2switch-switch-ui&lt;br/&gt;
feature:install odl-l2switch-switch-rest&lt;/p&gt;

&lt;p&gt;3) Using mininet connect 40 switches in fully mesh topology&lt;br/&gt;
4) Controller console is unresponsive for few minutes.&lt;br/&gt;
5) Then it throws the below exception.&lt;br/&gt;
Exception in thread &quot;odl-stat-rpc-oper-thread-0&quot; java.lang.OutOfMemoryError: Java heap space&lt;br/&gt;
        at java.util.Arrays.copyOf(Arrays.java:2367)&lt;br/&gt;
        at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)&lt;br/&gt;
        at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)&lt;br/&gt;
        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)&lt;br/&gt;
        at java.lang.StringBuilder.append(StringBuilder.java:132)&lt;br/&gt;
        at java.lang.Throwable.toString(Throwable.java:481)&lt;br/&gt;
        at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:97)&lt;br/&gt;
        at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:118)&lt;/p&gt;


&lt;p&gt;6) I see all 40 openflow sessions.&lt;br/&gt;
netstat -ant | grep 6633 | grep  ESTABLISHED | wc -l&lt;br/&gt;
40&lt;/p&gt;

&lt;p&gt;7) But rest call shows me only 20 nodes.&lt;br/&gt;
&lt;a href=&quot;http://10.11.200.254:8181/restconf/operational/opendaylight-inventory:nodes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://10.11.200.254:8181/restconf/operational/opendaylight-inventory:nodes&lt;/a&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27659">OPNFLWPLUG-391</key>
            <summary>Controller went out of memory after connecting 40 openflow switches in fully mesh topology</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="sandeep.gangadharan@hp.com">SANDEEP GANGADHARAN</assignee>
                                    <reporter username="sandeep.gangadharan@hp.com">SANDEEP GANGADHARAN</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Mar 2015 23:20:36 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:27 +0000</updated>
                            <resolved>Wed, 16 Mar 2016 09:20:45 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="56666" author="sandeep.gangadharan@hp.com" created="Tue, 31 Mar 2015 23:20:36 +0000"  >&lt;p&gt;Attachment log.zip has been added with description: attaching karaf logs&lt;/p&gt;</comment>
                            <comment id="56660" author="kramesha@cisco.com" created="Thu, 7 May 2015 22:56:54 +0000"  >&lt;p&gt;I hope you are running against Lithium, since there were a couple of memory optimizations done at the Datastore clustering end.&lt;/p&gt;

&lt;p&gt;I have run 255 switches, single mininet with a full mesh against 3 controllers and it ran fine.&lt;/p&gt;

&lt;p&gt;How much memory is given to the controller. Can you connect jconsole to your nodes and check?&lt;/p&gt;

&lt;p&gt;thanks&lt;br/&gt;
Kamal&lt;/p&gt;</comment>
                            <comment id="56661" author="sandeep.gangadharan@hp.com" created="Thu, 7 May 2015 23:17:00 +0000"  >&lt;p&gt;(In reply to Kamal Rameshan from comment #1)&lt;br/&gt;
&amp;gt; I hope you are running against Lithium, since there were a couple of memory&lt;br/&gt;
&amp;gt; optimizations done at the Datastore clustering end.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I have run 255 switches, single mininet with a full mesh against 3&lt;br/&gt;
&amp;gt; controllers and it ran fine.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; How much memory is given to the controller. Can you connect jconsole to your&lt;br/&gt;
&amp;gt; nodes and check?&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; thanks&lt;br/&gt;
&amp;gt; Kamal&lt;/p&gt;

&lt;p&gt;I reported this issue on 31st March. I have not tried it on latest builds. Which build are you running this?&lt;/p&gt;

&lt;p&gt;Regards&lt;br/&gt;
Sandeep&lt;/p&gt;</comment>
                            <comment id="56662" author="abhijit2511" created="Mon, 1 Jun 2015 16:55:33 +0000"  >&lt;p&gt;Should not be an issue any longer - needs to be retested.&lt;/p&gt;</comment>
                            <comment id="56667" author="sandeep.gangadharan@hp.com" created="Tue, 2 Jun 2015 17:30:27 +0000"  >&lt;p&gt;Attachment karaf.zip has been added with description: Karaf logs on build 2175&lt;/p&gt;</comment>
                            <comment id="56663" author="abhijit2511" created="Tue, 10 Nov 2015 01:40:35 +0000"  >&lt;p&gt;Sandeep,&lt;/p&gt;

&lt;p&gt;Can you share the script to create a fully mesh 40 switch topology?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Abhijit&lt;/p&gt;</comment>
                            <comment id="56664" author="sania.zara@namal.edu.pk" created="Mon, 7 Dec 2015 04:33:32 +0000"  >&lt;p&gt;I tried to reproduce this bug using Lithium SR2 and the controller dint crash. I monitored the memory consumption using JConsole and I dint notice any increase in the heap size. I&apos;m attaching the script that I used to create a 40 switch fully mesh topology.&lt;/p&gt;</comment>
                            <comment id="56668" author="sania.zara@namal.edu.pk" created="Mon, 7 Dec 2015 04:33:32 +0000"  >&lt;p&gt;Attachment FullyMesh40.py has been added with description: Script to create a fully mesh topology of 40 switches.&lt;/p&gt;</comment>
                            <comment id="56665" author="jozef.bacigal@pantheon.tech" created="Wed, 16 Mar 2016 09:20:45 +0000"  >&lt;p&gt;Long time no response, if persist open a new bug please.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13964" name="FullyMesh40.py" size="551" author="sania.zara@namal.edu.pk" created="Mon, 7 Dec 2015 04:33:32 +0000"/>
                            <attachment id="13963" name="karaf.zip" size="37877" author="sandeep.gangadharan@hp.com" created="Tue, 2 Jun 2015 17:30:27 +0000"/>
                            <attachment id="13962" name="log.zip" size="421173" author="sandeep.gangadharan@hp.com" created="Tue, 31 Mar 2015 23:20:36 +0000"/>
                    </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>2930</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=2930]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10361"><![CDATA[Lithium-RC0]]></customfieldvalue>

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

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