<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:02:03 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>[INFRAUTILS-20] Monitorability of JVM&apos;s native memory usage</title>
                <link>https://jira.opendaylight.org/browse/INFRAUTILS-20</link>
                <project id="10129" key="INFRAUTILS">infrautils</project>
                    <description>&lt;p&gt;while researching around &lt;a href=&quot;https://jira.opendaylight.org/browse/NETVIRT-974&quot; title=&quot;karaf process killed by OS due to OOM condition&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETVIRT-974&quot;&gt;NETVIRT-974&lt;/a&gt;, I stumbled upon some blog posts mentioning how a JVM&apos;s native memory usage can be monitored. I believe it would be useful to have a small utility (in infrautils) which uses the respective Java API, and exposes this e.g. by JMX and CLI, incl. with regular dumping.&lt;/p&gt;

&lt;p&gt;I&apos;ll use &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-19&quot; title=&quot;Coda Hale Dropwizard Metrics integration&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-19&quot;&gt;&lt;del&gt;INFRAUTILS-19&lt;/del&gt;&lt;/a&gt; Metrics for this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="28688">INFRAUTILS-20</key>
            <summary>Monitorability of JVM&apos;s native memory usage</summary>
                <type id="10103" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10311&amp;avatarType=issuetype">New Feature</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Nov 2017 15:37:59 +0000</created>
                <updated>Fri, 24 Sep 2021 18:50:55 +0000</updated>
                            <resolved>Fri, 24 Sep 2021 18:50:55 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="60536" author="vorburger" created="Thu, 21 Dec 2017 01:49:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/66689/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;I&apos;m currently adding BufferPoolMetricSet and MemoryUsageGaugeSet to infrautils.metrics&lt;/a&gt; and it seems this will gives us something related to this, but we would need the options below enabled on start-up, which is probably a bad idea to enable by default because &lt;em&gt;&quot;note that enabling this will cause 5-10% performance overhead&quot;&lt;/em&gt; ...&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;-XX:NativeMemoryTracking=[off | summary | detail]
-XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;so I&apos;m un-assigning myself from this issue as I don&apos;t plan to go beyond what I&apos;m doing today in infrautils.metrics; if we suspect native memory problems in the future based on what we&apos;ll find in metrics, then we can add the JVM startup options above during lab testing to find out more.&lt;/p&gt;</comment>
                            <comment id="69633" author="rovarga" created="Fri, 24 Sep 2021 18:50:55 +0000"  >&lt;p&gt;The JVM already provides a ton of metrics via JMX without the need for any code on our part. Even more JVM-related things are available through Java Flight Recorder, so this really is about knowing how to deploy Java applications.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="28686">NETVIRT-977</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="28687">INFRAUTILS-19</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|i0377r:</customfieldvalue>

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