# Machine learning 6.7 - elastic cloud - out of memory

**URL:** <https://discuss.elastic.co/t/machine-learning-6-7-elastic-cloud-out-of-memory/179668>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [May 5, 2019, 11:27am UTC](https://discuss.elastic.co/t/machine-learning-6-7-elastic-cloud-out-of-memory/179668 "2019-05-05T11:27:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ustrauss](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@ustrauss](https://discuss.elastic.co/u/ustrauss)\
**Post date:** [May 5, 2019, 11:27am UTC](https://discuss.elastic.co/t/machine-learning-6-7-elastic-cloud-out-of-memory/179668/1 "2019-05-05T11:27:29Z")

</div>

Hi,  
We are running ML on elastic cloud 6.7.  
We're trying to run a few ml jobs but we're getting an out of memory error when submitting them via the API. In the current configuration that fails, we set a history of 1 month. If we run the same job with a history of 1 day the job opens and runs in real time.  
My question is, if I run the job with 1 day of history, will the model's memory increase with time and it'll fail in 1 months time?

Thanks,  
Uri

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [May 6, 2019, 2:32pm UTC](https://discuss.elastic.co/t/machine-learning-6-7-elastic-cloud-out-of-memory/179668/2 "2019-05-06T14:32:53Z")

</div>

Hello Uri,

It seems that it is safe to assume that you'd likely encounter memory problems later on, but I think I'd need more info before saying things definitively, so I'd like to ask a few clarifying questions:

- What is the exact error message that you're getting from the API. Can you copy/paste it here?
- What is the detector configuration of the job you're submitting?
- If the job configuration uses splitting, what is the cardinality of the fields used for splitting (as this affects the anticipated memory footprint of the job)
- what is the size of the node that you're submitting the ML job to? How many other jobs are open or active on that node?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 3, 2019, 2:33pm UTC](https://discuss.elastic.co/t/machine-learning-6-7-elastic-cloud-out-of-memory/179668/3 "2019-06-03T14:33:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
