On Tue, Jul 24, 2018 at 4:04 AM, Dennis Lovely <d...@aegisco.com> wrote:
> you define the max size of your heap (-Xmx), but you do not define the max
> size of your offheap (MaxMetaspaceSize for jdk 8, PermSize for jdk7), so you
> could occupy all of the memory on the instance.

Yes I think we should set up a MaxMetaspaceSize.
I am still going to try to find out why the ram is being used.

> you should also take into account that the memory size per stack (Xss) is 
> -ontop-
> of what you define for the heap, and offheap, so number of spawned threads
> could be a culprit as well, if you tune your offheap size and keep seeing the 
> same
> trouble.  id figure out approximately how many thread stacks are getting 
> created,
> times that by 256k, add that to your heap size, and subtract that number from 
> the total
> amount of memory available to the host to come to a proper offheap size.

I have checked the amount of spawned threads (visible with `nodetool
tpstats` or `ps -T -p <pid>`) and it's too low to be the cause of all
the memory consumption. I have about 650 threads so it's less than 1GB
memory used.

Thank you for the suggestions Dennis.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
For additional commands, e-mail: user-h...@cassandra.apache.org

Reply via email to