cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain HARDOUIN <romain.hardo...@urssaf.fr>
Subject RE: Memory issue
Date Wed, 21 May 2014 05:35:27 GMT
Hi,

You have to define limits for the user. 
Here is an example for the user cassandra:

# cat /etc/security/limits.d/cassandra.conf 
cassandra   -   memlock     unlimited
cassandra   -   nofile      100000

best,

Romain

opensaf dev <opensafdev@gmail.com> a écrit sur 21/05/2014 06:59:05 :

> De : opensaf dev <opensafdev@gmail.com>
> A : user@cassandra.apache.org, 
> Date : 21/05/2014 07:00
> Objet : Memory issue
> 
> Hi guys,
> 
> I am trying to run Cassandra on CentOS as an user X other then root 
> or cassandra. When I run as user cassandra, it starts and runs fine.
> But, when I run under user X, I am getting the below error once 
> cassandra started and system freezes totally.
> 
> Insufficient memlock settings:
> WARN [main] 2011-06-15 09:58:56,861 CLibrary.java (line 118) 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.
> 
> 
> I have tried the tips available online to change the memlock and 
> other limits both for users cassadra and X, but did not solve the 
problem.
> 

> What else I should consider when I run cassandra other then user 
> cassandra/root.
> 
> 
> Any help is much appreciated.
> 
> 
> Thanks
> Dev
> 

Mime
View raw message