There are some advanced configuration properties to tune some aspects of Hazelcast. These can be set as property name and value pairs through configuration xml, configuration API or JVM system property.
Configuration xml
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-2.0.xsd" xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> .... <properties> <property name="hazelcast.property.foo">value</property> .... </properties> </hazelcast>
Configuration API
Config cfg = new Config() ; cfg.setProperty("hazelcast.property.foo", "value");
System Property
Using JVM parameter:
java -Dhazelcast.property.foo=value
Using System class:
System.setProperty("hazelcast.property.foo", "value");
Property Name | Description | Value Type | Default |
---|---|---|---|
hazelcast.mancenter.enabled
|
Enable Hazelcast Management Center service | boolean | true |
hazelcast.memcache.enabled
|
Enable Memcache client request listener service | boolean | true |
hazelcast.rest.enabled
|
Enable REST client request listener service | boolean | true |
hazelcast.logging.type
|
Name of logging framework type to send logging events. | enum | jdk |
hazelcast.map.load.chunk.size
|
Chunk size for MapLoader 's map initialization process (MapLoder.loadAllKeys()) | integer | 1000 |
hazelcast.in.thread.priority
|
Hazelcast Input Thread priority | integer | 7 |
hazelcast.out.thread.priority
|
Hazelcast Output Thread priority | integer | 7 |
hazelcast.service.thread.priority
|
Hazelcast Service Thread priority | integer | 8 |
hazelcast.merge.first.run.delay.seconds
|
Inital run delay of split brain/merge process in seconds | integer | 300 |
hazelcast.merge.next.run.delay.seconds
|
Run interval of split brain/merge process in seconds | integer | 120 |
hazelcast.redo.wait.millis
|
Wait time before a redo operation in milliseconds | integer | 500 |
hazelcast.socket.bind.any
|
Bind node socket address to any local address | boolean | true |
hazelcast.socket.receive.buffer.size
|
Socket receive buffer size in KB | integer | 32 |
hazelcast.socket.send.buffer.size
|
Socket send buffer size in KB | integer | 32 |
hazelcast.socket.keep.alive
|
Socket set keep alive | boolean | true |
hazelcast.socket.no.delay
|
Socket set TCP no delay | boolean | true |
hazelcast.shutdownhook.enabled
|
Enable Hazelcast shutdownhook thread | boolean | true |
hazelcast.wait.seconds.before.join
|
Wait time before join operation | integer | 5 |
hazelcast.max.wait.seconds.before.join
|
Maximum wait time before join operation | integer | 20 |
hazelcast.heartbeat.interval.seconds
|
Heartbeat send interval in seconds | integer | 1 |
hazelcast.max.no.heartbeat.seconds
|
Max timeout of heartbeat in seconds for a node to assume it is dead | integer | 300 |
hazelcast.icmp.enabled
|
Enable ICMP ping | boolean | false |
hazelcast.initial.min.cluster.size
|
Initial expected cluster size to wait before node to start completely | integer | 0 |
hazelcast.initial.wait.seconds
|
Inital time in seconds to wait before node to start completely | integer | 0 |
hazelcast.restart.on.max.idle
|
Restart node if service thread blocked for
hazelcast.max.no.heartbeat.seconds
|
boolean | false |
hazelcast.map.partition.count
|
Distributed map partition count | integer | 271 |
hazelcast.map.max.backup.count
|
Maximum map backup node count | integer | 5 |
hazelcast.map.remove.delay.seconds
|
Remove delay time in seconds for dirty records | integer | 5 |
hazelcast.map.cleanup.delay.seconds
|
Cleanup process delay time in seconds | integer | 10 |
hazelcast.executor.query.thread.count
|
Query executor service max thread count | integer | 8 |
hazelcast.executor.event.thread.count
|
Event executor service max thread count | integer | 16 |
hazelcast.executor.client.thread.count
|
Client executor service max thread count | integer | 40 |
hazelcast.executor.store.thread.count
|
Map store executor service max thread count | integer | 16 |
hazelcast.log.state
|
Log cluster debug state periodically | boolean | false |
hazelcast.jmx
|
Enable JMX agent | boolean | false |
hazelcast.jmx.detailed
|
Enable detailed views on JMX | boolean | false |
hazelcast.mc.map.excludes
|
Comma seperated map names to exclude from Hazelcast Management Center | CSV | null |
hazelcast.mc.queue.excludes
|
Comma seperated queue names to exclude from Hazelcast Management Center | CSV | null |
hazelcast.mc.topic.excludes
|
Comma seperated topic names to exclude from Hazelcast Management Center | CSV | null |
hazelcast.version.check.enabled
|
Enable Hazelcast new version check on startup | boolean | true |
hazelcast.topic.flow.control.enabled
|
Enable waiting for the topic publish until messages are written through the sockets | boolean | true |
hazelcast.mc.max.visible.instance.count
|
Management Center maximum visible instance count | integer | 100 |
hazelcast.elastic.memory.enabled
|
Enable Hazelcast Elastic Memory off-heap storage | boolean | false |
hazelcast.elastic.memory.total.size
|
Hazelcast Elastic Memory storage total size in MB | integer | 128 |
hazelcast.elastic.memory.chunk.size
|
Hazelcast Elastic Memory storage chunk size in KB | integer | 1 |
hazelcast.elastic.memory.shared.storage
|
Enable Hazelcast Elastic Memory shared storage | boolean | false |
hazelcast.enterprise.license.key
|
Hazelcast Enterprise license key | string | null |