You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/02/16 23:33:00 UTC

[jira] [Commented] (NIFI-3383) MonitorMemory produces UnsupportedOperationException

    [ https://issues.apache.org/jira/browse/NIFI-3383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285549#comment-17285549 ] 

ASF subversion and git services commented on NIFI-3383:
-------------------------------------------------------

Commit fd50d6f0429ebbd676da745ba2bd7def81ad66e6 in nifi's branch refs/heads/main from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=fd50d6f ]

NIFI-3383 Check if usage operations are supported in MonitorMemory

This closes #4790

Signed-off-by: Joey Frazee <jf...@apache.org>


> MonitorMemory produces UnsupportedOperationException
> ----------------------------------------------------
>
>                 Key: NIFI-3383
>                 URL: https://issues.apache.org/jira/browse/NIFI-3383
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Bryan Bende
>            Assignee: Matt Burgess
>            Priority: Minor
>         Attachments: MonitorMemory Error.png
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> {code}
> [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
> {code}
> MonitoryMemory checks if memoryPoolBean.isCollectionUsageThresholdSupported()) and if so it eventually calls monitoredBean.setUsageThreshold(calculatedThreshold), but setUsageThreshold then checks isUsageThresholdSupported() so it can throw UnsupportedOperationException. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)