Apache Ignite Heap size recommendation

12/17/2019

I have a Kubernetes setup of 7 Apache Ignite servers and over 100 clients.

With my current Apache Ignite configuration, I am seeing the following line of log for the servers:

java.lang.OutOfMemoryError: Java heap space

Below is the memory configuration Apache Ignite server:

  • Pod memory limit: 2Gb
  • Xmx: 768m

I would like to know what should be the optimum Memory configuration for the Apache Ignite cluster

-- ho wing kent
ignite
kubernetes

1 Answer

12/17/2019

It depends on what you're trying to do -- persistence and SQL tend to use more heap space for example -- but both 2Gb and 768Mb are much smaller than I'd expect for an in-memory database.

The tuning guide suggests 10Gb as a starting point:

-server
-Xms10g
-Xmx10g
-XX:+AlwaysPreTouch
-XX:+UseG1GC
-XX:+ScavengeBeforeFullGC
-XX:+DisableExplicitGC
-- Stephen Darlington
Source: StackOverflow