Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15398

NioEventLoopGroup threads leakage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0-alpha3
    • None
    • Docs Required, Release Notes Required

    Description

      I've run a simple test and face OOM on 7 of 100 iterations.
      Seems, thread leakage is a reason.

      Use JVM arg `-Xmx512M` to run the test, otherwise more iterations may be required.

       @RepeatedTest(100)
          public void nodeRestart100Test() throws Exception {
              List<Ignite> grid = startGrid();
      
              IgniteUtils.closeAll(Lists.reverse(grid));
          }
      

      Thread dump shows a huge number of parked NioEventLoopGroup and JRaft-Request-Processor.
      Further investigation shows most of NioEventLoopGroup threads are acceptor threads created in startEndpoint() method of RestModule and ClientModule classes.

      Attachments

        1. screenshot-1.png
          106 kB
          Mirza Aliev
        2. screenshot-2.png
          66 kB
          Mirza Aliev

        Issue Links

          Activity

            People

              maliev Mirza Aliev
              amashenkov Andrey Mashenkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m