Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (20 loc) · 2.76 KB

systemProperties.adoc

File metadata and controls

23 lines (20 loc) · 2.76 KB

System Properties

Below, a number of relevant System Properties are listed.

Note
All boolean properties below are read using net.openhft.chronicle.core.Jvm.getBoolean(java.lang.String), and so are enabled if either -Dflag or -Dflag=true or -Dflag=yes
Table 1. System properties
Property Key Default Description Java Variable Name (Type)

chronicle.network.callOnMissedHeartbeatOnDisconnect

false

If enabled, calls onMissedHeartbeat when the connection is abruptly dropped

CALL_MISSED_HEARTBEAT_ON_DISCONNECT (boolean)

client.timeout

500

The overall timeout; number of milliseconds after which a client is timed out if they cannot connect to a server

pausePeriodMs (int)

connectionStrategy.pauseMillisBeforeReconnect

500

Allows control of a backoff strategy, and returns how long in milliseconds to pause before attempting reconnect

pauseMillisBeforeReconnect (long)

connectionStrategy.pause.max.secs

5

Controls the maximum time the ConnectionStrategy.connect method is paused for

maxPauseSec (long)

connectionStrategy.pause.min.secs

5

Controls the minimum time the ConnectionStrategy.connect method is paused for

minPauseSec (long)

connectionStrategy.socketConnectionTimeoutMs

1

Amount of time waiting for a socket to open i.e. if the strategy is to retry every x seconds, each individual attempt will timeout after connectionStrategy.socketConnectionTimeoutMS and it will stop retrying after client.timeout

socketConnectionTimeoutMs (int)

disable.tcp.nodelay

false

This disables Nagle’s algorithm for connections. When true, the connection will optimise for low packet latency at the cost of overall traffic

DISABLE_TCP_NODELAY (boolean)

tcp.client.buffer.size

4 MiB

Sets the value for SO_RCVBUF

tcpBufferSize (int)

TcpEventHandler.targetWriteSize

1024

Determines the size of what is trying to be written to the ByteBuffer to check if ByteBuffer has capacity

TARGET_WRITE_SIZE (int)

tcp.event.monitor.secs

10

Sets how often the network stats listener will be notified of the network statistics, and the window over which they are measured.

MONITOR_POLL_EVERY_SEC (int)

tcp.failover.time

2_000 MS

Amount of time before the TCP session timeout is triggered

failoverTimeout (long)

tcp.nbr.warning.nanos

20_000_000L

Threshold before warning is triggered that non-blocking socket is being read to

NBR_WARNING_NANOS (long)

tcp.nbw.warning.nanos

20_000_000L

Threshold before warning is triggered that non-blocking socket is being written to

NBW_WARNING_NANOS (long)