java.io.Serializablepublic class ReplicatedEnvironmentStats
extends java.lang.Object
implements java.io.Serializable
The statistics are logically grouped into four categories. Viewing the
statistics through toString() displays
the values in these categories, as does viewing the stats through the
RepJEMonitor
mbean. Viewing the stats with toStringVerbose() will provide more detailed
descriptions of the stats and stat categories.
The current categories are:
| Modifier and Type | Method | Description |
|---|---|---|
long |
getAckWaitMs() |
The total time in milliseconds that the master spent waiting for the
Durability.ReplicaAckPolicy to be satisfied during successful transaction
commits. |
long |
getElapsedTxn95Ms() |
The 95th percentile value of the time in milliseconds spent replaying a
committed or aborted transaction.
|
long |
getElapsedTxn99Ms() |
The 99th percentile value of the time in milliseconds spent replaying a
committed or aborted transaction.
|
long |
getElapsedTxnAvgMs() |
The average time in milliseconds spent replaying a committed or aborted
transaction.
|
long |
getElapsedTxnMaxMs() |
The maximum time in milliseconds spent replaying a committed or aborted
transaction.
|
long |
getLastCommitTimestamp() |
The commit timestamp of the last committed transaction on the master, or
0 if not known or this node is not the master.
|
long |
getLastCommitVLSN() |
The VLSN of the last committed transaction on the master, or 0 if not
known or this node is not the master.
|
int |
getNFeedersCreated() |
The number of Feeder threads since this node was started.
|
int |
getNFeedersShutdown() |
The number of Feeder threads that were shut down, either because this
node, or the Replica terminated the connection.
|
long |
getNMaxReplicaLag() |
Deprecated.
in 18.3, always returns 0.
|
java.lang.String |
getNMaxReplicaLagName() |
Deprecated.
in 18.3, always returns null.
|
long |
getNProtocolBytesRead() |
The number of bytes of Replication Stream read over the network.
|
long |
getNProtocolBytesWritten() |
The number of Replication Stream bytes written over the network.
|
long |
getNProtocolEntriesWrittenOldVersion() |
Returns the number of messages containing log entries that were written
to the replication stream using the previous log format to support
replication to a replica running an earlier version during an upgrade.
|
long |
getNProtocolMessageBatches() |
The number of Replication Stream message batches written to the network.
|
long |
getNProtocolMessagesBatched() |
The number of Replication Stream messages that were written as part
of a message batch instead of being written individually.
|
long |
getNProtocolMessagesRead() |
The number of Replication Stream messages read over the network.
|
long |
getNProtocolMessagesWritten() |
The total number of Replication Stream messages written over the
network.
|
long |
getNReplayAborts() |
The number of abort records which were replayed while the node was in
the Replica state.
|
long |
getNReplayCommitAcks() |
The number of commit log records that needed to be acknowledged to the
Master by this node when it was a Replica.
|
long |
getNReplayCommitNoSyncs() |
The number of commitNoSync() calls executed when satisfying transaction
commit acknowledgment requests from the Master.
|
long |
getNReplayCommits() |
The number of commit log records that were replayed by this node when
it was a Replica.
|
long |
getNReplayCommitSyncs() |
The number of commitSync() calls executed when satisfying transaction
commit acknowledgment requests from the Master.
|
long |
getNReplayCommitWriteNoSyncs() |
The number of commitNoSync() calls executed when satisfying transaction
commit acknowledgment requests from the Master.
|
long |
getNReplayGroupCommitMaxExceeded() |
The number of group commits that were initiated due the
max group size being
exceeded. |
long |
getNReplayGroupCommits() |
The number of group commit operations.
|
long |
getNReplayGroupCommitTimeouts() |
The number of group commits that were initiated due to the
group timeout
interval being exceeded. |
long |
getNReplayGroupCommitTxns() |
The number of replay transaction commits that were part of a group
commit operation.
|
long |
getNReplayLNs() |
The number of data records (creation, update, deletion) which were
replayed while the node was in the Replica state.
|
long |
getNReplayNameLNs() |
The number of NameLN records which were replayed while the node was in
the Replica state.
|
long |
getNTxnsAcked() |
The number of transactions that were successfully acknowledged based
upon the
Durability.ReplicaAckPolicy policy associated with the
transaction commit. |
long |
getNTxnsNotAcked() |
The number of transactions that were not acknowledged as required by the
Durability.ReplicaAckPolicy policy associated with the transaction commit. |
long |
getOutputQueue95DelayMs() |
The 95th percentile value of the time in milliseconds between when the
replay thread places a response in the output queue and when the entry
is read from the queue in preparation for sending it to the feeder by
the output thread.
|
long |
getOutputQueue99DelayMs() |
The 99th percentile value of the time in milliseconds between when the
replay thread places a response in the output queue and when the entry
is read from the queue in preparation for sending it to the feeder by
the output thread.
|
long |
getOutputQueueAvgDelayMs() |
The average time in milliseconds between when the replay thread places a
response in the output queue and when the entry is read from the queue
in preparation for sending it to the feeder by the output thread.
|
long |
getOutputQueueMaxDelayMs() |
The maximum time in milliseconds between when the replay thread places a
response in the output queue and when the entry is read from the queue
in preparation for sending it to the feeder by the output thread.
|
long |
getProtocolBytesReadRate() |
Bytes read throughput, in terms of bytes received from the replication
network channels per second.
|
long |
getProtocolBytesWriteRate() |
Bytes written throughput, in terms of bytes written to the replication
network channels per second.
|
long |
getProtocolMessageReadRate() |
Incoming replication message throughput, in terms of messages received
from the replication network channels per second.
|
long |
getProtocolMessageWriteRate() |
Outgoing message throughput, in terms of message written to the
replication network channels per second.
|
long |
getProtocolReadNanos() |
The number of nanoseconds spent reading from the network channel.
|
long |
getProtocolWriteNanos() |
The number of nanoseconds spent writing to the network channel.
|
long |
getReplayElapsedTxnTime() |
Deprecated.
in 18.3, always returns zero.
|
long |
getReplayMaxCommitProcessingNanos() |
The maximum time taken to replay a transaction commit operation.
|
long |
getReplayMinCommitProcessingNanos() |
The minimum time taken to replay a transaction commit operation.
|
long |
getReplayQueue95DelayMs() |
The 95th percentile value of the time in milliseconds between when the
replica receives a replication entry and when the entry is read from the
replay queue by the replay thread.
|
long |
getReplayQueue99DelayMs() |
The 99th percentile value of the time in milliseconds between when the
replica receives a replication entry and when the entry is read from the
replay queue by the replay thread.
|
long |
getReplayQueueAvgDelayMs() |
The average time in milliseconds between when the replica receives a
replication entry and when the entry is read from the replay queue by
the replay thread.
|
long |
getReplayQueueMaxDelayMs() |
The maximum time in milliseconds between when the replica receives a
replication entry and when the entry is read from the replay queue by
the replay thread.
|
long |
getReplayTotalCommitProcessingNanos() |
The total time spent to replay all commit operations.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplica95DelayMsMap() |
Returns a map from replica node name to the 95th percentile value for
the current period of the delay, in milliseconds, between when a
transaction was committed on the master and when the master learned that
the transaction was processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplica99DelayMsMap() |
Returns a map from replica node name to the 99th percentile value for
the current period of the delay, in milliseconds, between when a
transaction was committed on the master and when the master learned that
the transaction was processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaAvgDelayMsMap() |
Returns a map from replica node name to average for the current period
of the delay, in milliseconds, between when a transaction was committed
on the master and when the master learned that the transaction was
processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaDelayMap() |
Returns a map from replica node name to the most recently known value of
the delay, in milliseconds, between when a transaction was committed on
the master and when the master learned that the transaction was
processed on the replica, if any.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaLastCommitTimestampMap() |
Returns a map from replica node name to the commit timestamp of the last
committed transaction that was processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaLastCommitVLSNMap() |
Returns a map from replica node name to the VLSN of the last committed
transaction that was processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaMaxDelayMsMap() |
Returns a map from replica node name to the maximum value for the
current period of the delay, in milliseconds, between when a transaction
was committed on the master and when the master learned that the
transaction was processed on the replica, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaVLSNLagMap() |
Returns a map from replica node name to the lag, in VLSNs, between the
replication state of the replica and the master, if known.
|
java.util.SortedMap<java.lang.String,java.lang.Long> |
getReplicaVLSNRateMap() |
Returns a map from replica node name to a moving average of the rate, in
VLSNs per minute, that the replica is processing replication data, if
known.
|
java.util.Map<java.lang.String,java.lang.String> |
getTips() |
|
long |
getTotalTxnMs() |
The total time in milliseconds spent in replicated transactions.
|
long |
getTrackerLagConsistencyWaitMs() |
The total time (in msec) for which a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy. |
long |
getTrackerLagConsistencyWaits() |
The number of times a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy. |
long |
getTrackerVLSNConsistencyWaitMs() |
The total time (in msec) for which a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy. |
long |
getTrackerVLSNConsistencyWaits() |
The number of times a Replica held back a
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy. |
long |
getVLSNRate() |
A moving average of the rate replication data is being generated by the
master, in VLSNs per minute, or 0 if not known or this node is not the
master.
|
java.lang.String |
toString() |
Returns a String representation of the stats in the form of
<stat>=<value>
|
java.lang.String |
toStringVerbose() |
Returns a String representation of the stats which includes stats
descriptions in addition to <stat>=<value>
|
public int getNFeedersCreated()
public int getNFeedersShutdown()
getNFeedersCreated()public long getNMaxReplicaLag()
getReplicaVLSNLagMap() to compute the maximum VLSN lag for all replicas.public java.lang.String getNMaxReplicaLagName()
getReplicaVLSNLagMap() to compute the maximum VLSN lag for all replicas.public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaDelayMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaAvgDelayMsMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplica95DelayMsMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplica99DelayMsMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaMaxDelayMsMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaLastCommitTimestampMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaLastCommitVLSNMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaVLSNLagMap()
public java.util.SortedMap<java.lang.String,java.lang.Long> getReplicaVLSNRateMap()
public long getNTxnsAcked()
Durability.ReplicaAckPolicy policy associated with the
transaction commit.public long getNTxnsNotAcked()
Durability.ReplicaAckPolicy policy associated with the transaction commit.
These transactions resulted in InsufficientReplicasException or
InsufficientAcksException.public long getTotalTxnMs()
getAckWaitMs().public long getAckWaitMs()
Durability.ReplicaAckPolicy to be satisfied during successful transaction
commits.getTotalTxnMs()public long getLastCommitVLSN()
public long getLastCommitTimestamp()
public long getVLSNRate()
public long getNReplayCommits()
public long getNReplayCommitAcks()
NReplayCommits statistic, if the Durability
policy used by transactions on the master calls for transaction commit
acknowledgments and the Replica is current with respect to the Master.public long getNReplayCommitSyncs()
public long getNReplayCommitNoSyncs()
public long getNReplayCommitWriteNoSyncs()
public long getNReplayAborts()
public long getNReplayNameLNs()
public long getNReplayLNs()
public long getReplayElapsedTxnTime()
getElapsedTxnAvgMs() to return the average elapsed transaction time.public long getNReplayGroupCommitTimeouts()
group timeout
interval being exceeded.public long getNReplayGroupCommitMaxExceeded()
max group size being
exceeded.public long getNReplayGroupCommitTxns()
public long getNReplayGroupCommits()
public long getReplayMinCommitProcessingNanos()
public long getReplayMaxCommitProcessingNanos()
public long getReplayTotalCommitProcessingNanos()
public long getReplayQueueAvgDelayMs()
public long getReplayQueue95DelayMs()
public long getReplayQueue99DelayMs()
public long getReplayQueueMaxDelayMs()
public long getOutputQueueAvgDelayMs()
public long getOutputQueue95DelayMs()
public long getOutputQueue99DelayMs()
public long getOutputQueueMaxDelayMs()
public long getElapsedTxnAvgMs()
public long getElapsedTxn95Ms()
public long getElapsedTxn99Ms()
public long getElapsedTxnMaxMs()
public long getNProtocolBytesRead()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getNProtocolMessagesRead()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getNProtocolBytesWritten()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getNProtocolMessagesBatched()
getNProtocolMessagesWritten()getNProtocolMessageBatches()public long getNProtocolMessageBatches()
getNProtocolMessagesBatched()public long getNProtocolMessagesWritten()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getProtocolReadNanos()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getProtocolWriteNanos()
If the node has served as both a Replica and Master since it was first started, the number represents the sum total of all Feeder related network activity, as well as Replica network activity.
public long getProtocolMessageReadRate()
If the node has served as both a Replica and Master since it was first started, the number represents the message reading rate over all Feeder related network activity, as well as Replica network activity.
public long getProtocolMessageWriteRate()
If the node has served as both a Replica and Master since it was first started, the number represents the message writing rate over all Feeder related network activity, as well as Replica network activity.
public long getProtocolBytesReadRate()
If the node has served as both a Replica and Master since it was first started, the number represents the bytes reading rate over all Feeder related network activity, as well as Replica network activity.
public long getProtocolBytesWriteRate()
If the node has served as both a Replica and Master since it was first started, the number represents the bytes writing rate over all Feeder related network activity, as well as Replica network activity.
public long getNProtocolEntriesWrittenOldVersion()
public long getTrackerLagConsistencyWaits()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy.public long getTrackerLagConsistencyWaitMs()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the TimeConsistencyPolicy.public long getTrackerVLSNConsistencyWaits()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy.public long getTrackerVLSNConsistencyWaitMs()
Environment.beginTransaction(Transaction,TransactionConfig)
operation to satisfy the CommitPointConsistencyPolicy.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringVerbose()
public java.util.Map<java.lang.String,java.lang.String> getTips()
Copyright (c) 2002, 2019 Oracle and/or its affiliates. All rights reserved.