<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:51:59 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-22] out of memory error during northbound integration tests</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-22</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;13:17:55.427 &lt;span class=&quot;error&quot;&gt;&amp;#91;System Bundle Shutdown&amp;#93;&lt;/span&gt; ERROR o.o.c.s.i.internal.ReadService - Received a pluginReader without any protocolPluginType provided&lt;br/&gt;
13:17:55.430 &lt;span class=&quot;error&quot;&gt;&amp;#91;System Bundle Shutdown&amp;#93;&lt;/span&gt; ERROR o.o.c.s.i.i.FlowProgrammerService - Received a pluginFlowProgrammer without any protocolPluginType provided&lt;br/&gt;
GossipRouter started at Wed Jul 03 13:17:55 CDT 2013&lt;br/&gt;
Listening on port 12001 bound on address 0.0.0.0/0.0.0.0&lt;br/&gt;
Backlog is 1000, linger timeout is 2000, and read timeout is 0&lt;br/&gt;
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &quot;Gogo shell&quot;&lt;br/&gt;
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &quot;org.opendaylight.controller.logging.bridge.internal.LogListenerImpl@3a84e994&quot;&lt;br/&gt;
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &quot;Timer-5,ISPN,rorschach-40550&quot;&lt;/p&gt;

&lt;p&gt;I&apos;m attaching a bit more logging information in case somebody else will understand this a bit better. Otherwise, I&apos;ll try to dig into it a bit later and I can run things with -DskipTests in the meantime which seems to work.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="24576">CONTROLLER-22</key>
            <summary>out of memory error during northbound integration tests</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="ppallamr@cisco.com">Prasanth Pallamreddy</assignee>
                                    <reporter username="colindixon">Colin Dixon</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Jul 2013 19:23:20 +0000</created>
                <updated>Tue, 25 Jul 2023 08:22:45 +0000</updated>
                            <resolved>Tue, 5 May 2015 15:17:18 +0000</resolved>
                                                                    <component>adsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="47308" author="colin@colindixon.com" created="Fri, 5 Jul 2013 19:23:20 +0000"  >&lt;p&gt;Attachment out-of-memory-error.txt has been added with description: Full output of northbound integration test with error&lt;/p&gt;</comment>
                            <comment id="47298" author="colin@colindixon.com" created="Fri, 5 Jul 2013 19:24:03 +0000"  >&lt;p&gt;To add some data to Colin&apos;s report. I&apos;ve run into Northbound integration test build failures a lot also (Mac OSX). Normally I keep building it and eventually it will build. I tested from a fresh Mac this week and was never able to get past northbound/integration. I pulled the latest JDK and it did the first try, but it did subsequently fail in an  Eclipse assemble-it.&lt;/p&gt;

&lt;p&gt;Attaching a mvn debug and an mvn stacktrace. Hit me on IRC if anyone has any ideas or needs a box that can replicate the issue every time.&lt;/p&gt;

&lt;p&gt;Mem alloc ENV:&lt;br/&gt;
export JVM_ARGS=&quot;-Xmx2048m -XX:MaxPermSize=2048m&quot; &lt;/p&gt;


&lt;p&gt;Stack Trace Failure:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; Final Memory: 92M/219M&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; ------------------------------------------------------------------------&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.15:integration-test (default) on project northbound.integrationtest: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.15:integration-test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Command was/bin/sh -c cd /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest &amp;amp;&amp;amp; /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefirebooter1904471709675583702.jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire3782088130151249964tmp /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire_64358786517243491700tmp&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; -&amp;gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;Help 1&amp;#93;&lt;/span&gt;&lt;br/&gt;
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.15:integration-test (default) on project northbound.integrationtest: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.15:integration-test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?&lt;br/&gt;
Command was/bin/sh -c cd /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest &amp;amp;&amp;amp; /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefirebooter1904471709675583702.jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire3782088130151249964tmp /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire_64358786517243491700tmp&lt;br/&gt;
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)&lt;br/&gt;
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)&lt;br/&gt;
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)&lt;br/&gt;
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)&lt;br/&gt;
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)&lt;br/&gt;
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)&lt;br/&gt;
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)&lt;br/&gt;
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)&lt;br/&gt;
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)&lt;br/&gt;
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)&lt;br/&gt;
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)&lt;br/&gt;
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)&lt;br/&gt;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br/&gt;
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br/&gt;
at java.lang.reflect.Method.invoke(Method.java:597)&lt;br/&gt;
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)&lt;br/&gt;
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)&lt;br/&gt;
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)&lt;br/&gt;
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)&lt;br/&gt;
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.15:integration-test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?&lt;br/&gt;
Command was/bin/sh -c cd /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest &amp;amp;&amp;amp; /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefirebooter1904471709675583702.jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire3782088130151249964tmp /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire_64358786517243491700tmp&lt;br/&gt;
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)&lt;br/&gt;
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)&lt;br/&gt;
... 19 more&lt;br/&gt;
Caused by: java.lang.RuntimeException: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?&lt;br/&gt;
Command was/bin/sh -c cd /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest &amp;amp;&amp;amp; /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefirebooter1904471709675583702.jar /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire3782088130151249964tmp /Users/leslieannedamon/Downloads/brent/controller/opendaylight/northbound/integrationtest/target/surefire/surefire_64358786517243491700tmp&lt;br/&gt;
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:485)&lt;br/&gt;
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:352)&lt;br/&gt;
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:158)&lt;br/&gt;
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:883)&lt;br/&gt;
at                                                                                      org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:747)&lt;br/&gt;
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:645)&lt;br/&gt;
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)&lt;br/&gt;
... 20 more&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Re-run Maven using the -X switch to enable full debug logging.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; For more information about the errors and possible solutions, &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
&amp;#8211; &lt;br/&gt;
Brent Salisbury&lt;/p&gt;</comment>
                            <comment id="47299" author="ppallamr@cisco.com" created="Mon, 15 Jul 2013 21:20:36 +0000"  >&lt;p&gt;The surefire plugin by default uses a &apos;forked booter&apos; which launches a separate jvm. This jvm does not inherit the default settings of maven. The default permgen allocation of ~64-72mb is not adequate. I see the following message on enabling memory debugging.&lt;/p&gt;

&lt;p&gt; PSPermGen       total 79808K, used 79490K [0x000000010ec70000, 0x0000000113a60000, 0x0000000113e70000)&lt;br/&gt;
  object space 79808K, 99% used [0x000000010ec70000,0x0000000113a109a0,0x0000000113a60000)&lt;/p&gt;

&lt;p&gt;I was able to get the tests to run successfully by increasing the permgen size to 128mb.&lt;/p&gt;

&lt;p&gt;-DargLine=&quot;-XX:MaxPermSize=128m&quot;&lt;/p&gt;</comment>
                            <comment id="47300" author="colin@colindixon.com" created="Mon, 15 Jul 2013 21:48:58 +0000"  >&lt;p&gt;Thanks Prasanth.&lt;/p&gt;

&lt;p&gt;Can we find a way to put this--&lt;del&gt;and ideally also the MAVEN_OPTS config that works&lt;/del&gt;--into the build files so that when people check things out it works?&lt;/p&gt;</comment>
                            <comment id="47301" author="mirehak@cisco.com" created="Tue, 16 Jul 2013 07:15:59 +0000"  >&lt;p&gt;Greetings,&lt;br/&gt;
jvm arguments for tests ran by maven can be put into pom, under sure-fire plugin configuration, e.g.:&lt;/p&gt;

&lt;p&gt;    &amp;lt;build&amp;gt;&lt;br/&gt;
        &amp;lt;plugins&amp;gt;&lt;br/&gt;
            &amp;lt;plugin&amp;gt;&lt;br/&gt;
                &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&lt;br/&gt;
                &amp;lt;artifactId&amp;gt;maven-surefire-plugin&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
                &amp;lt;configuration&amp;gt;&lt;br/&gt;
                    &amp;lt;argLine&amp;gt;-Xmx2048m -XX:MaxPermSize=2048m&amp;lt;/argLine&amp;gt;&lt;br/&gt;
                    &amp;lt;redirectTestOutputToFile&amp;gt;true&amp;lt;/redirectTestOutputToFile&amp;gt;&lt;br/&gt;
                &amp;lt;/configuration&amp;gt;&lt;br/&gt;
            &amp;lt;/plugin&amp;gt;&lt;br/&gt;
        &amp;lt;/plugins&amp;gt;&lt;br/&gt;
    &amp;lt;/build&amp;gt;&lt;/p&gt;</comment>
                            <comment id="47302" author="colin@colindixon.com" created="Tue, 16 Jul 2013 16:33:43 +0000"  >&lt;p&gt;For whatever reason, when I add -DargLine=&quot;-XX:MaxPermSize=128m&quot;, that works, but when I add the &amp;lt;argLine&amp;gt; command to the configuration of surefire that does not work.&lt;/p&gt;</comment>
                            <comment id="47303" author="ppallamr@cisco.com" created="Tue, 16 Jul 2013 16:44:33 +0000"  >&lt;p&gt;1) The permgen usage appears to be excessive. I monitored the memory usage and the test comes very close to the 128mb. We can increase the permgen size to 256mb (to be safe) to allow the builds to succeed - however, the NorthBoundIT test needs to be investigated since it seems to be loading a lot of bundles. &lt;/p&gt;

&lt;p&gt;2) Regarding the MAVEN_OPTS setting, the env variable is picked up by the local installation of maven and the build files have no control. There are two solutions to this - &lt;br/&gt;
a) Include a default setEnv.sh|cmd script which sets the environment variables&lt;br/&gt;
b) update our docs &amp;amp; README with instructions to setup proper env variable.&lt;/p&gt;

&lt;p&gt;I will try to submit a change for the surefire configuration.&lt;/p&gt;

&lt;p&gt;Colin: The surefire configuration needs to go into the opendaylight/commons/opendaylight/pom.xml&lt;/p&gt;

&lt;p&gt;The following works for me - &lt;/p&gt;

&lt;p&gt;diff --git a/opendaylight/commons/opendaylight/pom.xml b/opendaylight/commons/opendaylight/pom.xml&lt;br/&gt;
index 98e1d1a..1bb49a1 100644&lt;br/&gt;
&amp;#8212; a/opendaylight/commons/opendaylight/pom.xml&lt;br/&gt;
+++ b/opendaylight/commons/opendaylight/pom.xml&lt;br/&gt;
@@ -325,6 +325,9 @@&lt;br/&gt;
         &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;&lt;br/&gt;
         &amp;lt;artifactId&amp;gt;maven-surefire-plugin&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
         &amp;lt;version&amp;gt;${surefire.version}&amp;lt;/version&amp;gt;&lt;br/&gt;
+        &amp;lt;configuration&amp;gt;&lt;br/&gt;
+          &amp;lt;argLine&amp;gt;-XX:MaxPermSize=256m&amp;lt;/argLine&amp;gt;&lt;br/&gt;
+        &amp;lt;/configuration&amp;gt;&lt;br/&gt;
       &amp;lt;/plugin&amp;gt;&lt;br/&gt;
     &amp;lt;/plugins&amp;gt;&lt;br/&gt;
     &amp;lt;pluginManagement&amp;gt;&lt;/p&gt;</comment>
                            <comment id="47304" author="colin@colindixon.com" created="Tue, 16 Jul 2013 20:50:19 +0000"  >&lt;p&gt;Prasanth,&lt;/p&gt;

&lt;p&gt;I don&apos;t know why, but on my Mac I&apos;m seeing that if I add the exact change you described down to the same git hash then I still see the OutOfMemoryError, but running it with command line argument -DargLine=&quot;-XX:MaxPermSize=128m&quot;, it succeeds.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure why, but the pom.xml change is not getting propagated.&lt;/p&gt;</comment>
                            <comment id="47309" author="colin@colindixon.com" created="Tue, 16 Jul 2013 20:50:19 +0000"  >&lt;p&gt;Attachment permgen-oom-still-there.txt has been added with description: out of memory errorr persists despite pom.xml change&lt;/p&gt;</comment>
                            <comment id="47305" author="ppallamr@cisco.com" created="Tue, 16 Jul 2013 21:22:24 +0000"  >&lt;p&gt;Colin,&lt;br/&gt;
The failsafe plugin configuration needs to be updated with the same memory settings. A few others have seem the same issue and I had to revisit my change -&lt;/p&gt;

&lt;p&gt;I have submitted a patch at &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/605/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/605/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="47306" author="ppallamr@cisco.com" created="Thu, 18 Jul 2013 17:02:22 +0000"  >&lt;p&gt;The fix has been reviewed and merged. Please see &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/605/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/605/&lt;/a&gt; for details.&lt;/p&gt;</comment>
                            <comment id="47307" author="carolsand@gmail.com" created="Tue, 5 May 2015 15:17:18 +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="13330" name="out-of-memory-error.txt" size="20232" author="colindixon" created="Fri, 5 Jul 2013 19:23:20 +0000"/>
                            <attachment id="13331" name="permgen-oom-still-there.txt" size="668595" author="colindixon" created="Tue, 16 Jul 2013 20:50:19 +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>28</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=28]]></customfieldvalue>

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

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