<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:59:53 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>[GENIUS-90] Suspected memory leak in InterfacemgrProvider</title>
                <link>https://jira.opendaylight.org/browse/GENIUS-90</link>
                <project id="10126" key="GENIUS">genius</project>
                    <description>&lt;p&gt;HPROF analysis with MAT in the context of &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1756&quot; title=&quot;OOM due to huge Map in ShardDataTree&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1756&quot;&gt;&lt;del&gt;CONTROLLER-1756&lt;/del&gt;&lt;/a&gt; is showing 4 MB used up in org.opendaylight.genius.interfacemanager.InterfacemgrProvider, at a stage when (according to Sridhar/Sai) the system should be &quot;at rest&quot; - so this looks suspicious.. so I&apos;m guessing something is probably not really done right there.&lt;/p&gt;

&lt;p&gt;Now 4 MB is not huge in the large scale of things, so this isn&apos;t a Blocker, but it still doesn&apos;t look quite right that in a &quot;Dominator Tree&quot; in MAT after a lot of cluster related shit this class (only, nothing else in genius or anywhere in netvirt) does visibly stick out as consuming a surprising amount of memory - it should, ideally, not hold on to permanent state (whatever it is) like this?&lt;/p&gt;

&lt;p&gt;In theory, I suspect that this would over time, gradually and slowly, probably cause OOMs.  Not sure under what exact conditions (lots and lots of interfaces?), but if we have some unbound Map or whatever somewhere in there, it would be good to have a look at it (PERHAPS using a real &lt;span class=&quot;error&quot;&gt;&amp;#91;infrautils&amp;#93;&lt;/span&gt; Cache, instead of a Map; if that&apos;s it).&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="19871">GENIUS-90</key>
            <summary>Suspected memory leak in InterfacemgrProvider</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</type>
                                                <status id="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="Karthika_rp">Karthika Panneer</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Sep 2017 13:21:48 +0000</created>
                <updated>Wed, 22 Jan 2020 05:35:37 +0000</updated>
                                            <version>Carbon</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="35992" author="vorburger" created="Thu, 7 Sep 2017 13:52:03 +0000"  >&lt;p&gt;&amp;gt; if we have some unbound Map or whatever somewhere in there, &lt;/p&gt;

&lt;p&gt;Yeah that&apos;s the problem here - on spending a few more minutes staring at MAT, I can clearly see that of the said 4 MB most is in 2 of the 3 ConcurrentHashMap (dunno which 2 of the 3, and does not matter).&lt;/p&gt;

&lt;p&gt;&amp;gt; (instead) using a real &lt;span class=&quot;error&quot;&gt;&amp;#91;infrautils&amp;#93;&lt;/span&gt; Cache, instead of a Map&lt;/p&gt;

&lt;p&gt;That would be the right thing to do here.  It&apos;s not super trivial (else I would have just done it now!) because InterfacemgrProvider&apos;s logic has explicit remove methods for entries in 3 Maps, so converting that to be a real Cache instead needs a bit more thought, together with someone who knows that that code is actually doing.&lt;/p&gt;</comment>
                            <comment id="60282" author="vorburger" created="Wed, 29 Nov 2017 17:33:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=thapar&quot; class=&quot;user-hover&quot; rel=&quot;thapar&quot;&gt;thapar&lt;/a&gt; is &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/65188/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/65188/&lt;/a&gt;&#160;the fix for this? I&apos;ve ignored it so far because it did not have a +1 - is it final and should I be reviewing it?&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>9115</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=9115]]></customfieldvalue>

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

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