Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-382

[Lithium redesign] OOM errors, CPU 100% with 128 connected switches

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: Linux
      Platform: Other

    • 2869

    Description

      1) Run karaf
      2) Enable the below features
      feature:install odl-openflowplugin-flow-services
      feature:install odl-dlux-all
      feature:install odl-l2switch-all
      feature:install odl-l2switch-switch-ui
      feature:install odl-l2switch-switch-rest

      3) Using mininet connect 300 switches in linear topology
      4) Controller crashed.
      4) Switch connections move to CLOSE_WAIT state.
      5) karaf console showed below exception
      java.io.IOException: Exception in opening zip file: /root/odl/distribution-karaf-0.3.0-SNAPSHOT/data/cache/org.eclipse.osgi/bundles/26/1/bundlefile
      at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:291)
      at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:87)
      at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:100)
      at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:73)
      at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:245)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:542)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
      at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      at jline.internal.Log.warn(Log.java:114)
      at jline.internal.TerminalLineSettings.getProperty(TerminalLineSettings.java:97)
      at jline.UnixTerminal.getWidth(UnixTerminal.java:75)
      at jline.console.ConsoleReader.drawBuffer(ConsoleReader.java:834)
      at jline.console.ConsoleReader.drawBuffer(ConsoleReader.java:853)
      at jline.console.ConsoleReader.putString(ConsoleReader.java:793)
      at jline.console.ConsoleReader.readLine(ConsoleReader.java:2533)
      at jline.console.ConsoleReader.readLine(ConsoleReader.java:2162)
      at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.readAndParseCommand(ConsoleImpl.java:280)
      at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:207)
      at java.lang.Thread.run(Thread.java:744)
      at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:126)
      at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:117)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)
      at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:115)
      Caused by: java.io.FileNotFoundException: /root/odl/distribution-karaf-0.3.0-SNAPSHOT/data/cache/org.eclipse.osgi/bundles/26/1/bundlefile (Too many open files)
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:215)
      at java.util.zip.ZipFile.<init>(ZipFile.java:145)
      at java.util.zip.ZipFile.<init>(ZipFile.java:159)
      at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:274)
      ... 30 more

      ===============================================================
      Note:
      With Helium SR2 version the same test case passed
      Just connecting 300 switches without any links works fine.

      ===============================================================

      Attachments

        1. dump.png
          dump.png
          199 kB
        2. dump2.png
          dump2.png
          205 kB
        3. log.zip
          718 kB
        4. openflow_multipartRequest_memoryLeak.jpg
          openflow_multipartRequest_memoryLeak.jpg
          379 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              sandeep.gangadharan@hp.com SANDEEP GANGADHARAN
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: