Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

dmngaya avatar image
dmngaya asked ·

Why is a 32 GB heap allocation not recommended?

What can happend if someone use 32GB not 31 GB?

cassandratuning
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

@dmngaya 32GB of heap can fit less objects in it than a 31GB heap due to the way the Java VM object addresses get allocated in a 64-bit system. It's a quirk of Java's memory management.

If you're interested, this blogpost on blog.codecentric.de has sample code and a more detailed explanation of why you can't use the extra space in heap sizes between 31GB and ~45GB. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.