Hi, I have a 3 nodes cluster with 18 GB RAM and 2 GB swap. Each node have the following JVMs (Xms=Xmx) : - Zookeeper 2GB - Kafka 12 GB - Kafka mirror-maker DCa 1 GB - Kafka mirror-maker DCb 1 GB
All th JVMs consume 16 GB. It leaves 2 GB for the OS (debian jessie 64 bits). Why i have no swap free on these virtual machines ? #free -m total used free shared buffers cached Mem: 18105 17940 164 0 38 6666 -/+ buffers/cache: 11235 6869 Swap: 2047 2045 2 I've read i should avoid jvm swapping. What is the best way to do that ? - modify swapiness threshold - unmount all swap partition - force the jvm to stay in memory with mlockall ( https://github.com/LucidWorks/mlockall-agent) - Other solution Gabriel.