File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,11 @@ public long estimateMemoryFootprint() {
423423 if (establishedModelMemory != null && establishedModelMemory > 0 ) {
424424 return establishedModelMemory + PROCESS_MEMORY_OVERHEAD .getBytes ();
425425 }
426- return ByteSizeUnit .MB .toBytes (analysisLimits .getModelMemoryLimit ()) + PROCESS_MEMORY_OVERHEAD .getBytes ();
426+ long modelMemoryLimit = AnalysisLimits .PRE_6_1_DEFAULT_MODEL_MEMORY_LIMIT_MB ;
427+ if (analysisLimits != null && analysisLimits .getModelMemoryLimit () != null ) {
428+ modelMemoryLimit = analysisLimits .getModelMemoryLimit ();
429+ }
430+ return ByteSizeUnit .MB .toBytes (modelMemoryLimit ) + PROCESS_MEMORY_OVERHEAD .getBytes ();
427431 }
428432
429433 /**
You can’t perform that action at this time.
0 commit comments