<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:41 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>[CONTROLLER-710] Increasing RAM usage over time</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-710</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;A number of devs have observed increasing RAM usage over time, in (at lest) some cases at a very substantial rate.&lt;/p&gt;

&lt;p&gt;An easy way to replicate this is to run WCBench&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; against ODL for a while, then use the included `stats.py` script to build a graph of used RAM per run (`./stats.py -g ram`, the RAM data will be collected automatically). &lt;/p&gt;

&lt;p&gt;It&apos;s possible that this has to do with logging being enabled. It&apos;s also possible that this isn&apos;t harmful (unused RAM is wasted RAM). I&apos;m not trying to wave a &quot;serious problem&quot; flag, just to document this behavior and hopefully get someone (maybe me when I have time) to give it some attention.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: &lt;a href=&quot;https://github.com/dfarrell07/wcbench&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/dfarrell07/wcbench&lt;/a&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25264">CONTROLLER-710</key>
            <summary>Increasing RAM usage over time</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="dfarrell07">Daniel Farrell</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Aug 2014 18:51:11 +0000</created>
                <updated>Mon, 30 Oct 2017 15:41:43 +0000</updated>
                            <resolved>Tue, 5 May 2015 07:07:29 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="48916" author="dfarrell07" created="Wed, 20 Aug 2014 18:51:11 +0000"  >&lt;p&gt;Attachment Increasing RAM usage.png has been added with description: Graph that shows increasing RAM usage over time, produced by WCBench&lt;/p&gt;</comment>
                            <comment id="48910" author="abhijit2511" created="Wed, 20 Aug 2014 19:53:34 +0000"  >&lt;p&gt;Daniel - any reason you think this is openflowplugin rather than the controller?&lt;/p&gt;</comment>
                            <comment id="48911" author="abhijit2511" created="Wed, 20 Aug 2014 19:55:33 +0000"  >&lt;p&gt;Changed to assign to controller.&lt;/p&gt;</comment>
                            <comment id="48912" author="dfarrell07" created="Wed, 20 Aug 2014 20:13:00 +0000"  >&lt;p&gt;&amp;gt; Daniel - any reason you think this is openflowplugin rather than the controller?&lt;/p&gt;

&lt;p&gt;I asked CASP3R about this, he suggested openflowplugin. Honestly not sure.&lt;/p&gt;</comment>
                            <comment id="48917" author="jmedved@cisco.com" created="Wed, 27 Aug 2014 02:14:04 +0000"  >&lt;p&gt;Attachment Screen Shot 2014-08-26 at 7.04.49 PM.png has been added with description: Profiler screen shot&lt;/p&gt;</comment>
                            <comment id="48913" author="jmedved@cisco.com" created="Wed, 27 Aug 2014 02:19:08 +0000"  >&lt;p&gt;Hi Daniel,&lt;/p&gt;

&lt;p&gt;I hooked up the controller to a profiler and let it run cbench (dropAllPacketsRpc) for an extended period of time. Please see the output in the attached screenshot. You can see the old gen memory slowly growing. Heap is being grabage collected regularly. Also, you can see that there is no major garbage collections happening.&lt;/p&gt;

&lt;p&gt;At around 1h58 minutes I manually triggered garbage collection from the profiler. You can see a major GC happening (the graph at the bottom of the screenshot), and all memory coming down to pretty much where it was at the beginning of the cbench run.&lt;/p&gt;

&lt;p&gt;I built the controller from today&apos;s master on the openflow plugin project, and  used the following jvm parameters for the run: &lt;/p&gt;

&lt;p&gt;&amp;gt; ./run.sh -Xmx4G -XX:+UseG1GC -XX:MaxPermSize=512m&lt;/p&gt;

&lt;p&gt;I also set the logging level to ERROR and removed the &apos;simple forwarding&apos; and &apos;arp handler&apos; bundles from the distribution before running the test (they interfere with the test - although the loopback is set with dropAllPacketsRpc, these components still get packet_in notifications and I am not sure what they are doing). The controller was running natively on a Mac, cbench was running in a Linux VM on the same Mac as the controller.&lt;/p&gt;

&lt;p&gt;Another observation is that performance remains stable (i.e. i see no performance degratiation ove rthe course of 2 hours).&lt;/p&gt;</comment>
                            <comment id="48914" author="dfarrell07" created="Wed, 19 Nov 2014 18:07:49 +0000"  >&lt;p&gt;I&apos;m not seeing this in Helium 0.2.1. Lots of details on this WCBench wiki page&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: &lt;a href=&quot;https://github.com/dfarrell07/wcbench/wiki/Helium-0.2.1-Performance-Results#results-0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/dfarrell07/wcbench/wiki/Helium-0.2.1-Performance-Results#results-0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48915" author="carolsand@gmail.com" created="Mon, 4 May 2015 20:11:35 +0000"  >&lt;p&gt;This bug is part of the project to Move all ADSAL associated component bugs to ADSAL&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13407" name="Increasing RAM usage.png" size="162137" author="dfarrell07" created="Wed, 20 Aug 2014 18:51:11 +0000"/>
                            <attachment id="13408" name="Screen Shot 2014-08-26 at 7.04.49 PM.png" size="129997" author="jmedved@cisco.com" created="Wed, 27 Aug 2014 02:14:04 +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>1591</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=1591]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></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|i02m2v:</customfieldvalue>

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