<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:27:50 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>[ODLPARENT-175] add -XX:+DisableExplicitGC to ODL Karaf JVM options to prevent explicit System.gc()</title>
                <link>https://jira.opendaylight.org/browse/ODLPARENT-175</link>
                <project id="10149" key="ODLPARENT">odlparent</project>
                    <description>&lt;p&gt;I&apos;m looking at a Java Flight Recording obtained from (internal) scale lab testing, and see:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;23.5&#160;% of the garbage collections were caused by System.gc(). Calling System.gc() might not be optimal, since it can cause an unnecessary amount of garbage collections. The garbage collectors usually handles this fine by themselves without being explicitly called.&lt;/p&gt;

&lt;p&gt;To fix this, remove unnecessary System.gc() calls in the code. If the calls are made by libraries where you can&apos;t change the source code, you can instead use the command line flag &apos;-XX:+DisableExplicitGC&apos;. This flag makes the JVM ignore all System.gc() calls.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/search?q=org%3Aopendaylight+%22System.gc%28%29%22&amp;amp;type=Code&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Searching for System.gc()&lt;/a&gt; in ODL code shows a few places where we do this, but most are in tests, or in old projects like nic and vtn; one is in netvirt.&lt;/p&gt;

&lt;p&gt;This issue proposes that we add -XX:+DisableExplicitGC to ODL Karaf JVM options to prevent explicit System.gc() - I don&apos;t see the disadvantage, so better safe than sorry, and prevent future problems.&lt;/p&gt;</description>
                <environment></environment>
        <key id="31001">ODLPARENT-175</key>
            <summary>add -XX:+DisableExplicitGC to ODL Karaf JVM options to prevent explicit System.gc()</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="skitt">Stephen Kitt</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Nov 2018 17:19:04 +0000</created>
                <updated>Thu, 27 Dec 2018 11:01:47 +0000</updated>
                            <resolved>Thu, 27 Dec 2018 11:01:47 +0000</resolved>
                                                    <fixVersion>3.1.5</fixVersion>
                    <fixVersion>4.0.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="65554" author="vorburger" created="Mon, 12 Nov 2018 17:23:44 +0000"  >&lt;p&gt;&amp;gt;  one is in netvirt&lt;/p&gt;

&lt;p&gt;strike that, I meant &lt;a href=&quot;https://github.com/opendaylight/vpnservice/blob/master/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/oam/BgpCounters.java&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/vpnservice/blob/master/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/oam/BgpCounters.java&lt;/a&gt; but that is in the old vpnservice, in netvirt this has already been removed.&lt;/p&gt;

&lt;p&gt;Curious then - unclear what is actually doing this (in our scale tests) - must be something from a library?!&lt;/p&gt;</comment>
                            <comment id="65568" author="skitt@redhat.com" created="Tue, 13 Nov 2018 09:37:29 +0000"  >&lt;p&gt;Given&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;If the calls are made by libraries where you can&apos;t change the source code, you can instead use the command line flag &apos;-XX:+DisableExplicitGC&apos;. This flag makes the JVM ignore all System.gc() calls.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I thought that &#8220;must be something from a library&#8221; was the original reason you were asking for this!&lt;/p&gt;</comment>
                            <comment id="65569" author="vorburger" created="Tue, 13 Nov 2018 10:03:15 +0000"  >&lt;p&gt;Merged &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/77708/,&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;c/77708,&lt;/a&gt;&#160;but suggest we clarify Fix Version of this, actually rolling to projects (Neon? Fluorine? Oxygen?) and d/s.&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03kbb:</customfieldvalue>

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