I am getting an OME with starting Elastic memory (i.e. Enterprise Edition) as follows:
INFO: [192.168.1.5]:5701 [dev] Checking Hazelcast Enterprise license...
Nov 07, 2012 10:55:07 PM com.hazelcast.enterprise.initializer
INFO: [192.168.1.5]:5701 [dev] Licensed type: Trial, Valid until: Sun Dec 09 23:59:59 EST 2012, Max nodes: 10
Nov 07, 2012 10:55:07 PM com.hazelcast.enterprise.initializer
INFO: [192.168.1.5]:5701 [dev] Initializing node off-heap storage.
Nov 07, 2012 10:55:07 PM com.hazelcast.elasticmemory.storage.StorageFactory
INFO: Elastic-Memory off-heap storage total size: 4096 MB
Nov 07, 2012 10:55:07 PM com.hazelcast.elasticmemory.storage.StorageFactory
INFO: Elastic-Memory off-heap storage chunk size: 1 KB
Nov 07, 2012 10:55:07 PM com.hazelcast.elasticmemory.storage.OffHeapStorage
INFO: Total of 4 segments is going to be initialized...
Nov 07, 2012 10:55:07 PM com.hazelcast.elasticmemory.storage.BufferSegment
INFO: BufferSegment[0] starting with chunkCount=1048576
Exception in thread "main" java.lang.OutOfMemoryError: Direct buffer memory
<properties>
<property name="hazelcast.elastic.memory.enabled">true</property>
<property name="hazelcast.elastic.memory.total.size">4G</property>
</properties>
...
$java -d64 -XX:MaxDirectMemorySize=5G -Dhazelcast.config=hazelcast-default.xml -jar ./lib/hazelcast-2.4-ee.jar
Thanks.