From dc4246e2194d2c64846c7125f0f164bca1274033 Mon Sep 17 00:00:00 2001 From: skakker Date: Wed, 10 Jan 2018 17:36:45 +0530 Subject: [PATCH] Spark Peak jvm memory Heuristic - (Depends on Custom SHS - Requires peakJvmUsedMemory metric) (#318) --- app-conf/FetcherConf.xml | 4 +- app-conf/HeuristicConf.xml | 8 +- .../fetchers/statusapiv1/statusapiv1.scala | 7 +- .../heuristics/JvmUsedMemoryHeuristic.scala | 124 ++++++++++++++++++ .../legacydata/LegacyDataConverters.scala | 3 +- .../helpJvmUsedMemoryHeuristic.scala.html | 20 +++ .../spark/SparkMetricsAggregatorTest.scala | 3 +- .../heuristics/ExecutorGcHeuristicTest.scala | 3 +- .../heuristics/ExecutorsHeuristicTest.scala | 3 +- .../JvmUsedMemoryHeuristicTest.scala | 112 ++++++++++++++++ 10 files changed, 278 insertions(+), 9 deletions(-) create mode 100644 app/com/linkedin/drelephant/spark/heuristics/JvmUsedMemoryHeuristic.scala create mode 100644 app/views/help/spark/helpJvmUsedMemoryHeuristic.scala.html create mode 100644 test/com/linkedin/drelephant/spark/heuristics/JvmUsedMemoryHeuristicTest.scala diff --git a/app-conf/FetcherConf.xml b/app-conf/FetcherConf.xml index ebaa4bdde..1a6bb4a01 100644 --- a/app-conf/FetcherConf.xml +++ b/app-conf/FetcherConf.xml @@ -51,7 +51,7 @@ To work properly, this fetcher should use the same timezone with the job history server. If not set, the local timezone will be used. --> - + mapreduce com.linkedin.drelephant.mapreduce.fetchers.MapReduceFSFetcherHadoop2 @@ -61,7 +61,7 @@ PST - +