cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ertio Lew <ertio...@gmail.com>
Subject Cassandra consuming too much memory in ubuntu as compared to within windows, same machine.
Date Sat, 04 Jan 2014 16:04:11 GMT
I run a development Cassandra single node server on both ubuntu & windows 8
on my dual boot 4GB(RAM) machine.

I see that cassandra runs fine under windows without any crashes or OOMs
however in ubuntu on same machine, it always gives an OOM message

*$* *sudo service cassandra start*
xss =  -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar
-XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms4G -Xmx4G -Xmn800M
-XX:+HeapDumpOnOutOfMemoryError -Xss256k


Here is the memory usage for empty cassandra server in ubuntu.
*(PID)1169 (USER)cassandr  (PR)20   (NI)0 (VIRT)2639m (RES)1.3g  (SHR)17m S
   (%CPU)1 (%MEMORY)33.9   (TIME)0:53.80    (COMMAND)java*

The memory usage however while running under windows is very low relative
to this.

What is the reason behind this ?

Also how can I prevent these OOMs within Ubuntu? I am running Datastax's
DSC version 2.0.3.

Mime
View raw message