ElasticSearch in Python #27 - Change Heap size

Опубликовано: 28 Июнь 2026
на канале: 3CodeCamp
171
7

Hello everyone! Elasticsearch is a powerful tool, but it can be resource-intensive by default. If you're like me and using it for small projects, you’ll want to configure it to consume less memory. In this video, I’ll show you how to do just that.

By default, Elasticsearch allocates 50% of your system's available memory. For instance, my system has 16GB of RAM, so whenever I start the container, Elasticsearch uses 8GB. This slows down my PC significantly and can even cause it to freeze due to memory exhaustion.

For small projects and local setups, allocating just 1–2GB is usually sufficient.

In this series, we focus on using the Python client to interact with Elasticsearch.

Here is the link to the GitHub repository:
https://github.com/ImadSaddik/Elastic...

Useful links:
https://www.elastic.co/guide/en/elast...

Don't forget to like, subscribe, and leave a comment if you have any questions or feedback!

Support us at:
  / 3codecamp  

⭐️ Contents ⭐️
(00:00) Intro + slides
(04:13) The end

#3_code_campers #ElasticSearch #ElasticSearchPython