Apache Cassandra™ 2.0

Installing the JNA on Debian or Ubuntu Systems

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


Install the JNA with the following command:
$ sudo apt-get install libjna-java
For Ubuntu 10.04 LTS, update to JNA 3.4 as follows:
  1. Download the jna.jar from https://github.com/twall/jna.
  2. Remove older versions of the JNA from the /usr/share/java/ directory.
  3. Place the new jna.jar file in /usr/share/java/ directory.
  4. Create a symbolic link to the file:
    ln -s /usr/share/java/jna.jar install_location/lib