Re: Config Maximum heap size for Cassandra

2010-10-28 Thread Peter Schuller
> Is that Casandra problem? > I want Cassandra use memory more effective. How can I do that? I definitely recommend Jonathan's link, but just to specifically answer this: It's not a Cassandra issue, it's how the JVM will tend to behave in particular with the CMS garbage collector. While under the

Re: Config Maximum heap size for Cassandra

2010-10-27 Thread Jonathan Ellis
http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html On Wed, Oct 27, 2010 at 9:30 PM, JKnight JKnight wrote: > Could you tell me why Cassandra use memory more than needed? > > > On Thu, Oct 28, 2010 at 9:15 AM, Nicholas Knight > wrote: >> >> Presumably you're on a 32-bit archite

Re: Config Maximum heap size for Cassandra

2010-10-27 Thread Nicholas Knight
Cassandra needs all the RAM you can give it so it can cache things for optimum performance. If you need it to use less, give it less. -NK On Oct 28, 2010, at 10:30 AM, JKnight JKnight wrote: > Could you tell me why Cassandra use memory more than needed? > > > On Thu, Oct 28, 2010 at 9:15 AM,

Re: Config Maximum heap size for Cassandra

2010-10-27 Thread JKnight JKnight
Could you tell me why Cassandra use memory more than needed? On Thu, Oct 28, 2010 at 9:15 AM, Nicholas Knight wrote: > Presumably you're on a 32-bit architecture (or at least a 32-bit JVM). > 32-bit processes won't be able to address more than "X" amount of memory, > where X would usually be >=

Re: Config Maximum heap size for Cassandra

2010-10-27 Thread Nicholas Knight
Presumably you're on a 32-bit architecture (or at least a 32-bit JVM). 32-bit processes won't be able to address more than "X" amount of memory, where X would usually be >= 2GB, and < 4GB. The reason you can't use a full 4GB is that part of the address space is necessarily reserved by the OS ke

Config Maximum heap size for Cassandra

2010-10-27 Thread JKnight JKnight
Hi all, When I config Maximum heap size -Xmx4G, the memory will consume to 3.5G. When I call Perform GC (jconsole), the used memory reduce to 1G. When I config Maximum heap size -Xmx2G, Cassandra system run well. Is that Casandra problem? I want Cassandra use memory more effective. How can I do