Apache Cassandra™ 2.0

Installing the JNA using the binary tarball

Installing JNA can improve Cassandra memory usage. When installed and configured, Linux does not swap out the JVM, and thus avoids related performance issues.

Procedure

  1. Download jna.jar from https://github.com/twall/jna.
  2. Add jna.jar to install_location/resources/dse/lib (or place it in the CLASSPATH).
  3. Add the following lines in the /etc/security/limits.conf file for the user/group that runs Cassandra:
    $USER soft memlock unlimited
    $USER hard memlock unlimited