question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cluster keeps eating up memory and not freeing it

See original GitHub issue

CrateDB version: 1.0.2

JVM version:

openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

OS version / environment description: Ubuntu 16.04.1 LTS

Problem description: We are seeing that the crate cluster just keeps allocating memory, especially under heavy querying load. The cluster has almost no ingress load. We are monitoring all cluster nodes with prometheus and as you can see in the picture below on every cpu usage spike, total memory free drops. We have to restart certain nodes (e.g. on 2/21 at ~11 o’clock) before they run into an OOM Exception and the cluster becomes eventually unhealthy. All nodes, except 2, in the cluster have 60gb ram, max heap is set to 30gb for crate. The two smaller nodes have 14gb ram and 7gb heap for crate. These two nodes have been running for some months and we had no problems with them so memory freeing seems to be fine on them!

screenshot from 2017-02-23 07-57-36

The cluster holds only 6Mio rows at 5.8gb.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
seutcommented, Mar 2, 2017

@lukaskroepfl jfyi: I’m currently investigating and fixing memory leaks which are happening on error handling. maybe this is related to your issue as well. will notify you when fixes are merged/available…

0reactions
jodokcommented, Jul 5, 2017

closing due to inactivity. feel free to reopen if the problem reappears.

Read more comments on GitHub >

github_iconTop Results From Across the Web

removing a cluster doesn't free memory · Issue #116 - GitHub
Here is a sample of output that shows memory use creeping up each iteration of the for loop, and then the final rm()...
Read more >
Hyper-V 2016 keeps eating my memory! Free RAM decreases ...
Hi, we have a Hyper-V cluster with 2 nodes. Both nodes have 768 GB RAM, and all VMs together consume ca. 600 GB,...
Read more >
Kubernetes Logging: Tips to Avoid Memory and Resource ...
There's nothing stopping pods from consuming all the free memory on the node. Trust me, you don't want to have a memory leak...
Read more >
Troubleshoot high memory use in an ElastiCache cluster
Redis might not free up memory when keys are removed. Use the MemoryFragmentationRatio metric to monitor the fragmentation ratio.
Read more >
Memory usage keeps increasing without increase in keys
I'm using aerospike build 4.5.2.1 running on Debian 9 VMs. ... is something in my configuration that is causing memory to not be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found