Hi,
For a new project, I want to use Cassandra for the logs.
As it's a little project, I want to limit the RAM use at 512M, so I change MAX_HEAP_SIZE="512M" and HEAP_NEWSIZE="50M", but it still uses more than 680M.
Is it normal?
Best,
Philippe
Hi,
For a new project, I want to use Cassandra for the logs.
As it's a little project, I want to limit the RAM use at 512M, so I change MAX_HEAP_SIZE="512M" and HEAP_NEWSIZE="50M", but it still uses more than 680M.
Is it normal?
Best,
Philippe
If this is about the process size reported by the operating system (using ps, or task list), then the answer is that this is expected.
The Java heap is only part of the memory used by the process. There are other parts that contribute to the overall memory used by a jvm process (like loaded jar files, thread stacks, natively allocated memory through jni, to name a few).
Or are you using some means to determine the size used by the heap specifically (like Runtime.getRuntime().totalMemory())?
Thanks,
Sven
Yes I was talking about the resident memory size.
How can we reduce this size? As we want to limit this VM at 512M without having Cassandra crashing.
Thanks,
Philippe
RSS memory is occupied not only by the heap. It counts in JVM, loaded jars, stack size, non-heap memory, etc. Simply set smaller heap to give JVM some room for these things.