Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-279

nioEventLoopGroup thread proliferation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.9.0
    • Driver-S7
    • None

    Description

      Dear developers,

      I did a stability test with the plc4x 0.8.0 and pool2 library.

      The test is just reading continuously a couple of DataBlock from a S7 Siemens 1200 PLC.

      During the test I have used VisualVM like profiler to inspect the use of the Heap and the threads and I found something strange.

      The test runs for a couple of days and I have sampled the threads in a couple of snapshot found that the number of running nioEventLoopGroup thread increase and doesn't seems to be bounded by a limit.

      These are the total of the Threads of the applications at 2021-01-31 at 11.34.15; the total number is 246 and the number of nioEventLoopGroup is 192

      These are the total of the Threads of the applications at 2021-02-01 at 09.14.02; the total number is 358 and the number of nioEventLoopGroup is 305

       Form the profiler two of this thread are:

       

       

      It seems a leakage and seems a dangerous one. 

      I think the problem is inside the pool2 library but I am note sure. 

      What do you think? 

      Regards,

      S.

       

       

      Attachments

        1. Screenshot 2021-02-01 at 09.19.07.png
          36 kB
          Stefano Bossi
        2. Screenshot 2021-02-01 at 09.20.42.png
          48 kB
          Stefano Bossi
        3. Screenshot 2021-02-01 at 20.20.08.png
          77 kB
          Stefano Bossi
        4. Screenshot 2021-02-01 at 20.20.08.png
          77 kB
          Stefano Bossi
        5. Screenshot 2021-02-01 at 20.20.08.png
          77 kB
          Stefano Bossi
        6. Screenshot 2021-02-01 at 21.57.50.png
          27 kB
          Stefano Bossi
        7. Screenshot 2021-02-01 at 21.57.50.png
          27 kB
          Stefano Bossi
        8. Threads total 2021-01-31 at 11.34.15.png
          65 kB
          Stefano Bossi
        9. Threads total 2021-02-01 at 09.14.02.png
          33 kB
          Stefano Bossi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fox_pluto Stefano Bossi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: