is there any documentation about proper JNA configuration?
I do not understand few things:
1) Does JNA use JVM heap settings?
2) Do I need to decrease max heap size while using JNA?
3) How do I limit RAM allocated by JNA?
4) Where can I see / monitor row cache size?
5) I’ve configured JNA just for test on my dev computer and so far
I’ve noticed serious performance issues (high cpu usage on heavy write
load), so I must be doing something wrong…. I’ve just copied JNA
jars into Cassandra/lib, without installing any native libs.
Thanks,
Maciej
It sounds like you’re talking specifically about JNA-based row caches.
1) No
2) Yes, other things being equal
3) By configuring the row cache size appropriately
4) JMX on ColumnFamilyStoreMBeans
5) the off-heap cache uses less CPU under writes than the in-heap one (it just invalidates updated rows, instead of updating them in a write-through fashion) so I’d say something else is wrong. Be sure to rule out swapping because of (2).