Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3383

MonitorMemory produces UnsupportedOperationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.14.0, 1.13.1
    • None
    • None

    Description

      [na:1.8.0_111] Caused by: java.lang.UnsupportedOperationException: Usage threshold is not supported at sun.management.MemoryPoolImpl.setUsageThreshold(MemoryPoolImpl.java:114) ~[na:1.8.0_111] at org.apache.nifi.controller.MonitorMemory.onConfigured(MonitorMemory.java:178) ~[na:na] ... 16 common frames omitted
      

      MonitoryMemory checks if memoryPoolBean.isCollectionUsageThresholdSupported()) and if so it eventually calls monitoredBean.setUsageThreshold(calculatedThreshold), but setUsageThreshold then checks isUsageThresholdSupported() so it can throw UnsupportedOperationException.

      Attachments

        1. MonitorMemory Error.png
          92 kB
          Avish Saha

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              bbende Bryan Bende
              Votes:
              1 Vote for this issue
              Watchers:
              4 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 - 1h 50m
                  1h 50m