¿Qué significan estas advertencias de Cassandra? No se puede bloquear la memoria JVM y MemoryMeter sin inicializar

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

Estoy usando Cassandra 1.1.2.

preguntado el 31 de julio de 12 a las 13:07

1 Respuestas

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 Dom Oracle JRE, and Cassandra prefers it if you want MemoryMeter to run successfully.


Para agregar 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).

Respondido 02 ago 12, 16:08

How can I check the installation of Jamm? I see that cassandra comes with jamm-0.2.5.jar In it's lib folder. I've checked the jdk version, it is Java(TM) SE Runtime Environment (build 1.6.0_24-b07) - Julias

export JAVA_OPTIONS=-javaagent:$TITAN_HOME/lib/jamm-0.2.5.jar - Kuzeko

A complete walkthrough for ENOMEM is here docs.datastax.com/en/archived/cassandra/2.0/cassandra/… also do not forget sysctl -p - Kuzeko

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.