Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does these Cassandra warnings mean: Unable to lock JVM memory and MemoryMeter uninitialized

Tags:

cassandra

I'm getting the following warnings on Cassandra - what does it mean? And is it an issue? And how can I solve this?

WARN 15:32:06,772 Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out, especially with mmapped I/O enabled. Increase RLIMIT_MEMLOCK or run Cassandra as root.

WARN 15:33:20,860 MemoryMeter uninitialized (jamm not specified as java agent); assuming liveRatio of 10.0. Usually this means cassandra-env.sh disabled jamm because you are using a buggy JRE; upgrade to the Sun JRE instead

I'm using Cassandra 1.1.2.

like image 691
Julias Avatar asked Jul 31 '12 12:07

Julias


1 Answers

ENOMEM is a Linux Error code for Out Of Memory. Cassandra has used all its virtual memory so the JVM can't lock additional memory resource from the virtual memory.

Jamm (Java Agent for Memory Management) provided MemoryMeter. What I see is that you don't have MemoryMeter installed and setup as an agent, so Cassandra disabled MemoryMeter. Also, MemoryMeter might only work for Sun Oracle JRE, and Cassandra prefers it if you want MemoryMeter to run successfully.


To add Jamm to the Java Agent, add the following argument to the java process (example):

-javaagent:bin/../lib/jamm-0.2.5.jar 

(where the path is the path where the jar resides).

like image 62
Buhake Sindi Avatar answered Sep 20 '22 07:09

Buhake Sindi