We installed the RTSJ version which should support 64 bit , on Solaris S10X_u8 with 8GB memory .
We expected that we can define heap size greater than 4GB .
But when we run with the following flags : -D64 -Xms4g -Xmx4g
we got the following message :
Invalid maximum heapsize:-Xmx4g
The specified size exceeds the maximum representable size
Could not create the java virtual machine
That should be -d64 (small 'd') The -D arguments define Java property settings.
Also note that in JRTS we don't dynamically grow the heap so you only need one of -Xms or -Xmx to set the heap size.