You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2019/05/17 14:42:00 UTC
[jira] [Commented] (HADOOP-16248) MutableQuantiles leak memory
under heavy load
[ https://issues.apache.org/jira/browse/HADOOP-16248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16842225#comment-16842225 ]
Hudson commented on HADOOP-16248:
---------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16567 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/16567/])
HADOOP-16248. MutableQuantiles leak memory under heavy load. (stevel: rev 4cb3da6ac703b10de59a8ca371fe957a4a338601)
* (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java
> MutableQuantiles leak memory under heavy load
> ---------------------------------------------
>
> Key: HADOOP-16248
> URL: https://issues.apache.org/jira/browse/HADOOP-16248
> Project: Hadoop Common
> Issue Type: Bug
> Components: metrics
> Affects Versions: 2.9.2
> Reporter: Alexis Daboville
> Assignee: Alexis Daboville
> Priority: Major
> Fix For: 3.0.4, 3.2.1, 2.9.3, 3.1.3
>
> Attachments: HADOOP-16248.00.patch, mutable-quantiles-leak.png, mutable-quantiles.patch
>
>
> In some circumstances (high GC, high CPU usage, creating lots of
> S3AFileSystem) it is possible for MutableQuantiles::scheduler [1] to fall
> behind processing tasks that are submitted to it; because tasks are
> submitted on a regular schedule, the unbounded queue backing the
> {{ExecutorService}} might grow to several gigs [2]. By using
> {{scheduleWithFixedDelay}} instead, we ensure that under pressure this leak won't
> happen. In order to mitigate the growth, a simple fix [3] is proposed, simply replacing {{scheduler.scheduleAtFixedRate}} by {{scheduler.scheduleWithFixedDelay}}.
> [1] it is single threaded and shared across all instances of {{MutableQuantiles}}: [https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableQuantiles.java#L66-L68]
> [2] see attached mutable-quantiles-leak.png.
> [3] mutable-quantiles.patch
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org