# Disable machine learning process creation

**URL:** <https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913>\
**Category:** Elasticsearch\
**Created:** [January 13, 2020, 10:26pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913 "2020-01-13T22:26:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![musician](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@musician](https://discuss.elastic.co/u/musician)\
**Post date:** [January 13, 2020, 10:26pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/1 "2020-01-13T22:26:13Z")

</div>

I am using Elasticsearch 7.1.1 and noticed that when I start it, a process controller.exe (part of Elasticsearch machine learning) is spawned automatically. How do I disable creation of this process since I do not use machine learning currently?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 13, 2020, 10:31pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/2 "2020-01-13T22:31:55Z")

</div>

I think this process only starts if ML is enabled (which it is by default). I think setting `xpack.ml.enabled: false` will disable it.

---

<div class="post-metadata">

**Author:** ![musician](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@musician](https://discuss.elastic.co/u/musician)\
**Post date:** [January 13, 2020, 11:01pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/3 "2020-01-13T23:01:26Z")

</div>

I tried that but I still see the process controller.exe running. Incidentally, this process goes away when I stop elasticsearch.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 14, 2020, 7:37am UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/4 "2020-01-14T07:37:38Z")

</div>

Interesting. I looked at the code and it seems this process must always run. It is launched very early in the startup of a node, before the security manager is installed, because the security manager prevents us from launching processes later on. Why do you want to stop it?

---

<div class="post-metadata">

**Author:** ![musician](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@musician](https://discuss.elastic.co/u/musician)\
**Post date:** [January 14, 2020, 1:14pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/5 "2020-01-14T13:14:09Z")

</div>

Hi David, I would like it "not to run" because it uses some amount of memory (~1 MB) which may cause a bit of issue. In addition, that may also raise some flags during the audit and we may have tough time explaining the presence even though we do not use the machine learning feature.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 14, 2020, 2:11pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/6 "2020-01-14T14:11:03Z")

</div>

Not really sure how to help, sorry. These don't seem like very strong reasons for wanting this. 1MB of memory isn't much. Our [services](https://www.elastic.co/services) folk have a good deal of experience helping users through stringent audits if that helps.

---

<div class="post-metadata">

**Author:** ![musician](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@musician](https://discuss.elastic.co/u/musician)\
**Post date:** [January 14, 2020, 3:35pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/7 "2020-01-14T15:35:29Z")

</div>

Hi David, Thanks so much for your quick responses - appreciate it very much.

---

<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:** [February 11, 2020, 3:35pm UTC](https://discuss.elastic.co/t/disable-machine-learning-process-creation/214913/8 "2020-02-11T15:35:32Z")

</div>

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