OutOfMemoryError: Direct buffer memory for Elastic memory

117 views
Skip to first unread message

Qiming He

unread,
Nov 7, 2012, 11:02:25 PM11/7/12
to haze...@googlegroups.com
Hi,

I am getting an OME with starting Elastic memory (i.e. Enterprise Edition) as follows:
Nov 07, 2012 10:55:07 PM com.hazelcast.enterprise.initializer
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

I use hazelcast-default.xml config with following additions:
    <properties>
        <property name="hazelcast.elastic.memory.enabled">true</property>
        <property name="hazelcast.elastic.memory.total.size">4G</property>
    </properties>
...
<license-key>XXXXXXXXXXX</license-key>

My starting script like 
$java -d64 -XX:MaxDirectMemorySize=5G -Dhazelcast.config=hazelcast-default.xml -jar ./lib/hazelcast-2.4-ee.jar

Any thing wrong here?

Thanks.

Qiming He

unread,
Nov 8, 2012, 12:03:32 AM11/8/12
to haze...@googlegroups.com
It seems to be a Windows 7 + JVM problem. No such issue on Linux x86_64. 
Reply all
Reply to author
Forward
0 new messages