From b5e21e7e633a06b9ebb3cbe181cdb4837db99c9c Mon Sep 17 00:00:00 2001 From: Mahadev Konar Date: Fri, 14 Oct 2011 22:49:19 +0000 Subject: [PATCH] MAPREDUCE-3057. Job History Server goes of OutOfMemory with 1200 Jobs and Heap Size set to 10 GB. (Eric Payne via mahadev) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1183545 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/mapreduce/v2/hs/JobHistory.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 09f6d2c6dc..2e3a564723 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -1623,6 +1623,9 @@ Release 0.23.0 - Unreleased MAPREDUCE-3124. Fixed location of native libs i.e. libhadoop.so for containers. (John George via acmurthy) + MAPREDUCE-3057. Job History Server goes of OutOfMemory with 1200 Jobs + and Heap Size set to 10 GB. (Eric Payne via mahadev) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/JobHistory.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/JobHistory.java index 7e9e67c3c3..4f5749926e 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/JobHistory.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/JobHistory.java @@ -71,7 +71,7 @@ public class JobHistory extends AbstractService implements HistoryContext { private static final int DEFAULT_JOBLIST_CACHE_SIZE = 20000; - private static final int DEFAULT_LOADEDJOB_CACHE_SIZE = 2000; + private static final int DEFAULT_LOADEDJOB_CACHE_SIZE = 5; private static final int DEFAULT_DATESTRING_CACHE_SIZE = 200000; private static final long DEFAULT_MOVE_THREAD_INTERVAL = 3 * 60 * 1000l; //3 minutes private static final int DEFAULT_MOVE_THREAD_COUNT = 3;