AFAIK, memory in Java is based on heap from which the memory is allotted to objects dynamically and there is no concept of shared memory.
If there is no concept of s
Peter Lawrey's Java Chronicle project is worth looking at.
These are some tests that I had done a while ago comparing various off-heap and on-heap options.