[jboss-jira] [JBoss JIRA] (WFLY-12167) Memory leak in metrics in standalone-ha configuration
Paul Ferraro (Jira)
issues at jboss.org
Thu Jun 6 14:34:01 EDT 2019
[ https://issues.jboss.org/browse/WFLY-12167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743592#comment-13743592 ]
Paul Ferraro edited comment on WFLY-12167 at 6/6/19 2:33 PM:
-------------------------------------------------------------
The code in ServiceSupplier is correct. Using the new MSC API, the only way to obtain a value provided by an ON_DEMAND service is install a service that depends on the target service. Once the value is retrieved, the mode of the temporary service is set to REMOVE.
However, this removal happens asynchronously. If ServiceSupplier were to block until the temporary service removal is complete, that should address the memory consumption issues (assuming the MSC will not retain a reference to a removed service), though value retrieval will be slower.
was (Author: pferraro):
The code in ServiceSupplier is correct. Using the new MSC API, the only way to obtain a value provided by an ON_DEMAND service is install a service that depends on the target service. Once the value is retrieved, the mode of the temporary service is set to REMOVE.
However, this removal happens asynchronously. If ServiceSupplier were to block until the temporary service removal is complete, that should address the memory consumption issues, though value retrieval will be slower.
> Memory leak in metrics in standalone-ha configuration
> -----------------------------------------------------
>
> Key: WFLY-12167
> URL: https://issues.jboss.org/browse/WFLY-12167
> Project: WildFly
> Issue Type: Bug
> Components: Clustering, MP Metrics, MSC
> Affects Versions: 16.0.0.Final
> Reporter: Bernd Stolle
> Assignee: Richard Opalka
> Priority: Blocker
> Labels: memoryleak
> Attachments: Screenshot 2019-06-06 at 11.07.00.png
>
>
> When started in standalone HA configuration every request to the recently added metrics endpoint ({{<management-if>:9990/metrics}}) lead to an increase in memory consumption until the JVM is slowed down significantly by GC to a point where even the requests to {{/health}} fail within a reasonable timeout (2s) and untlimately lead to OOM.
> The same issue does not occur when WildFly is started in the default standalone configuration (non HA).
> I can provide a (compressed) heap dump if required.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list