[
https://issues.apache.org/jira/browse/FELIX-4367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13856558#comment-13856558
]
rohit commented on FELIX-4367:
------------------------------
The issue seems to be related to use of MemoryPoolMXBean.setUsageThreshold() .
Memory Usage plugin sets the configured threshold percentage in supported
beans and waits for notifications. A zero value should not generate any
notification. In case some other code in the system sets a different value of
usage threshold in the bean, plugin starts receiving notifications and memory
dumps are created.
As a fix, on receiving notification memory dumps are created only when
threshold percentage is non zero.
Attaching the patch [^FELIX-4367.patch]
> Memory Usage plugin creates dump when threshold is configured to 0
> ------------------------------------------------------------------
>
> Key: FELIX-4367
> URL: https://issues.apache.org/jira/browse/FELIX-4367
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-memoryusage-plugin-1.0.4
> Reporter: rohit
> Attachments: FELIX-4367.patch
>
>
> Memory usage plugin created memory dumps even when it was disabled by
> configuring threshold percentage value to zero. This has been reproduced
> when felix runs in embedded mode in any application server.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)