Was this page helpful?
Scylla memory usage might be larger than the data set used.
The data size is 19GB, but Scylla uses 220G memory.
Scylla uses available memory to cache your data. Scylla knows how to dynamically manage memory for optimal performance, for example, if many clients connect to Scylla, it will evict some data from the cache to make room for these connections, when the connection count drops again, this memory is returned to the cache.
To limit the memory usage you can start scylla with
Alternatively, you can specify the amount of memory ScyllaDB should leave to the OS with
--reserve-memory parameter. Keep in mind that the amount of memory left to the operating system needs to suffice external scylla modules, such as
scylla-jmx, which runs on top of JVM.
On Ubuntu, edit the
On Red Hat / CentOS, edit the
SCYLLA_ARGS="--log-to-syslog 1 --log-to-stdout 0 --default-log-level info --collectd-address=127.0.0.1:25826 --collectd=1 --collectd-poll-period 3000 --network-stack posix --memory 2G --reserve-memory 2G