cube-js / cube

📊 Cube — The Semantic Layer for Building Data Applications
https://cube.dev
Other
17.85k stars 1.77k forks source link

Cubejs server is not releasing memory #3059

Open ifokeev opened 3 years ago

ifokeev commented 3 years ago

Describe the bug Cubejs is not releasing the memory because of some internal cache mechanics. I tried local/redis queues and it's pretty the same. Redis is not releasing the memory too (I gave cubejs own Redis server).

To Reproduce Query the data all the time and work with cubejs quering big datasets (50K+ rows)

Expected behavior I'm expecting releasing of the memory after the query/data expired

Version: 0.26.60

Additional context May be related https://github.com/cube-js/cube.js/issues/2333

hassankhan commented 3 years ago

Hi @ifokeev :wave:

Could you try updating to the latest version (v0.27.46 at time of writing)? Thanks in advance 😀

guangzh3n commented 2 years ago

Hi, any update for this?

I am using 0.29.37, but memory still not release.

image

rpaik commented 2 years ago

👋 a quick reminder that we will be replacing Redis with Cube Store as announced in this blog post.

hiratab commented 2 years ago

Is it solved when we set the Cube to use the Cube Store? During my tests I can see that the memory still increasing over time even if I set Cube to work with Cube Store and an external Redis.

paveltiunov commented 2 years ago

@guangzh3n @hiratab By default Node.js won't be releasing most of RSS memory back to the operating system once allocated. So it'd usually be normal behavior. Are you experiencing any OOM because of that? If so, please feel free to reproduce it in Cube Cloud https://cubecloud.dev/auth/signup. This will allow our engineering team to snapshot Cube memory in an environment precisely tweaked for production usage to see if there're memory leaks.