# Zammad-elasticsearch 12 GB RAM?

**URL:** https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505
**Category:** Technical assistance
**Created:** [June 18, 2022, 1:22pm UTC](https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505 "2022-06-18T13:22:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![deeztek](https://community.zammad.org/user_avatar/community.zammad.org/deeztek/32/3694_2.png) [@deeztek](https://community.zammad.org/u/deeztek)
#### Post date: [June 18, 2022, 1:22pm UTC](https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505/1 "2022-06-18T13:22:58Z")

</div>

### Infos:

- Used Zammad version: 5.1.
- Used Zammad installation type: docker-compose
- Operating system: Ubuntu
- Browser + version: Chrome

### Expected behavior:

use less than 12 GB of RAM

### Actual behavior:

**238e8d9a3e36 zammad-elasticsearch 0.85% 12.5GiB / 23.54GiB**  
6971f200a212 zammad-backup 7.16% 3.812MiB / 23.54GiB  
edbea33f4095 zammad-websocket 0.10% 164MiB / 23.54GiB  
f2df61409f91 zammad-scheduler 0.01% 189.5MiB / 23.54GiB  
255dd2648928 zammad-nginx 0.00% 6.023MiB / 23.54GiB  
acc1b065903a zammad-railsserver 0.00% 240MiB / 23.54GiB  
51cb8f281fba zammad-init 0.00% 0B / 0B  
9c4ec9bebacd zammad-postgresql 0.03% 73.87MiB / 23.54GiB  
674ea4ddecf3 zammad-memcached 0.05% 18.7MiB / 23.54GiB  
fa424b3ca62b zammad-redis 0.13% 2.906MiB / 23.54GiB

### Steps to reproduce the behavior:

Start the container

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [August 11, 2022, 2:16pm UTC](https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505/2 "2022-08-11T14:16:11Z")

</div>

Since Elasticsearch ~7.17 Elasticsearch takes 50% of your memory by default.  
You can adjust this by configuring the heap size of it - the official elasticsearch documentation should help you - 1-2 GB memory should be reasonable enough.

In my tests you shouldn’t go below that.

---

<div class="post-metadata">

### Author: ![deeztek](https://community.zammad.org/user_avatar/community.zammad.org/deeztek/32/3694_2.png) [@deeztek](https://community.zammad.org/u/deeztek)
#### Post date: [August 11, 2022, 2:32pm UTC](https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505/3 "2022-08-11T14:32:09Z")

</div>

Thanks for the response. Could you tell me where in the docker config I would go to adjust that?

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [August 11, 2022, 2:33pm UTC](https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505/4 "2022-08-11T14:33:43Z")

</div>

No not really sorry. I believe you can set environment variables in docker and that should do the trick.

---

<div class="post-metadata">

### Author: ![deeztek](https://community.zammad.org/user_avatar/community.zammad.org/deeztek/32/3694_2.png) [@deeztek](https://community.zammad.org/u/deeztek)
#### Post date: [August 11, 2022, 2:45pm UTC](https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505/5 "2022-08-11T14:45:30Z")

</div>

Just in case anyone else runs in to this issue the following in docker-compose should fix it:

```auto
    environment:
      - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
```

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [December 9, 2022, 2:45pm UTC](https://community.zammad.org/t/zammad-elasticsearch-12-gb-ram/9505/6 "2022-12-09T14:45:38Z")

</div>

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