# Over Memory consumption of Weaviate

**URL:** <https://forum.weaviate.io/t/over-memory-consumption-of-weaviate/1002>\
**Category:** General\
**Tags:** developer-experience\
**Created:** [November 22, 2023, 6:53am UTC](https://forum.weaviate.io/t/over-memory-consumption-of-weaviate/1002 "2023-11-22T06:53:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GaganMehta](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@GaganMehta](https://forum.weaviate.io/u/GaganMehta)\
**Post date:** [November 22, 2023, 6:53am UTC](https://forum.weaviate.io/t/over-memory-consumption-of-weaviate/1002/1 "2023-11-22T06:53:19Z")

</div>

I’ve been engaged in a project for the past few months, and recently, I’ve come across a memory consumption issue. Currently, out of my total 47 GB of memory, one Weaviate instance is utilizing 13.1 GB, which seems higher than expected.

 ![on_docker_Stats](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/1X/f1cfcc108ea220ee2ccefef9f0ed91a042c59ae6.png)

Upon consulting the Weaviate documentation, I discovered a method to calculate memory usage. The precise formula is as follows:

Number of objects \* ( (Length of single vector \* Float value precision in bytes) + (MaxConnections \* Memory used by each vector[no of connections]))

Using this formula:  
2750000 \* ((768 \* 4) + (64 \* 10)) = 9.50 GB

I would appreciate any insights into potential reasons for memory consumption beyond what this calculation suggests.

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 23, 2023, 12:21am UTC](https://forum.weaviate.io/t/over-memory-consumption-of-weaviate/1002/2 "2023-11-23T00:21:55Z")

</div>

as answered in [StackOverflow](https://stackoverflow.com/questions/77527872/over-memory-consumption-of-weaviate/77530694#77530694)

Hi! Duda from Weaviate here 🙂

This is the page where you probably got this information: [Resource Planning | Weaviate - vector database](https://weaviate.io/developers/weaviate/concepts/resources#an-example-calculation)

This is a rough estimative and it may vary with other factors, for example while indexing, it will consume more memory, or depending on some Index configurations, etc.

Also the `maxConnections` estimate doesn’t account for garbage collection.

Let me know if that helps!
