JVM configuration

In Chapter 4, Configuring a Cluster, configuration of the java virtual machine (specifically, garbage collection) was covered at length. While we won't waste time repeating the same information here, we'll add some quick guidelines that echo what was covered in Chapter 4, Configuring a Cluster:

  • Be sure to monitor your nodes' garbage-collection logs. If your nodes are exhibiting long, stop the world (STW) pauses, there are adjustments that can be made to mitigate that.
  • It’s almost always a good idea to set the max heap size (-Xmx) and the initial heap size (-Xms) to be the same. This way, performance will not be impacted as the heap resizes itself.
  • If you're not experienced with JVM tuning, configure your nodes to use ...

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.