@MXBeanDescription(value="MBean that provides access to Ignite transactions.") public interface TransactionsMXBean
Modifier and Type | Method and Description |
---|---|
String |
getActiveTransactions(Long minDuration,
Integer minSize,
String prj,
String consistentIds,
String xid,
String lbRegex,
Integer limit,
String order,
boolean detailed,
boolean kill) |
long |
getLongOperationsDumpTimeout()
Returns a timeout (in millis) for printing to log long-running
transactions as well as transactions that cannot receive locks for all
their keys for a long time.
|
long |
getLongTransactionTimeDumpThreshold()
Returns threshold timeout in milliseconds for long transactions, if transaction exceeds it,
it will be dumped in log with information about how much time did
it spent in system time (time while aquiring locks, preparing, commiting, etc.)
|
double |
getTransactionTimeDumpSamplesCoefficient()
Returns the coefficient for samples of completed transactions that will be dumped in log.
|
int |
getTransactionTimeDumpSamplesPerSecondLimit()
Returns the limit of samples of completed transactions that will be dumped in log per second,
if
getTransactionTimeDumpSamplesCoefficient() is above 0.0 . |
int |
getTxKeyCollisionsInterval() |
boolean |
getTxOwnerDumpRequestsAllowed()
Shows if dump requests from local node to near node are allowed, when long running transaction
is found.
|
long |
getTxTimeoutOnPartitionMapExchange()
Gets transaction timeout on partition map exchange.
|
void |
setLongOperationsDumpTimeout(long timeout)
Setting a timeout (in millis) for printing to log long-running
transactions as well as transactions that cannot receive locks for all
their keys for a long time.
|
void |
setLongTransactionTimeDumpThreshold(long threshold)
Sets threshold timeout in milliseconds for long transactions, if transaction exceeds it,
it will be dumped in log with information about how much time did
it spent in system time (time while aquiring locks, preparing, commiting, etc.)
|
void |
setTransactionTimeDumpSamplesCoefficient(double coefficient)
Sets the coefficient for samples of completed transactions that will be dumped in log.
|
void |
setTransactionTimeDumpSamplesPerSecondLimit(int limit)
Sets the limit of samples of completed transactions that will be dumped in log per second,
if
getTransactionTimeDumpSamplesCoefficient() is above 0.0 . |
void |
setTxKeyCollisionsInterval(int timeout)
Set timeout interval for tx key contention analysis.
|
void |
setTxOwnerDumpRequestsAllowed(boolean allowed)
Sets if dump requests from local node to near node are allowed, when long running transaction
is found.
|
void |
setTxTimeoutOnPartitionMapExchange(long timeout)
Sets transaction timeout on partition map exchange.
0 means transactions will never be rolled back on partition map exchange.
|
@MXBeanDescription(value="Returns or kills transactions matching the filter conditions.") String getActiveTransactions(@MXBeanParameter(name="minDuration",description="Minimum duration (seconds).") Long minDuration, @MXBeanParameter(name="minSize",description="Minimum size.") Integer minSize, @MXBeanParameter(name="prj",description="Projection (servers|clients).") String prj, @MXBeanParameter(name="consistentIds",description="Consistent ids (separated by comma).") String consistentIds, @MXBeanParameter(name="xid",description="Transaction XID.") String xid, @MXBeanParameter(name="lbRegex",description="Label regexp.") String lbRegex, @MXBeanParameter(name="limit",description="Limit a number of transactions collected on each node.") Integer limit, @MXBeanParameter(name="order",description="Order by DURATION|SIZE.") String order, @MXBeanParameter(name="detailed",description="Show detailed description, otherwise only count.") boolean detailed, @MXBeanParameter(name="kill",description="Kill matching transactions (be careful).") boolean kill)
minDuration
- Minimum duration.minSize
- Minimum size.prj
- Projection.consistentIds
- Consistent ids.xid
- Xid.lbRegex
- Label regex.limit
- Limit.order
- Order.detailed
- Detailed.kill
- Kill.@MXBeanDescription(value="Returns transaction timeout on partition map exchange in milliseconds.") long getTxTimeoutOnPartitionMapExchange()
TransactionConfiguration.getTxTimeoutOnPartitionMapExchange()
@MXBeanDescription(value="Sets transaction timeout on partition map exchange in milliseconds.") void setTxTimeoutOnPartitionMapExchange(@MXBeanParameter(name="timeout",description="Transaction timeout on partition map exchange in milliseconds.") long timeout)
Default value is TransactionConfiguration.TX_TIMEOUT_ON_PARTITION_MAP_EXCHANGE
.
timeout
- Transaction timeout on partition map exchange in milliseconds.TransactionConfiguration.setTxTimeoutOnPartitionMapExchange(long)
@MXBeanDescription(value="Shows if dump requests from local node to near node are allowed, when long running transaction is found. If allowed, the compute request to near node will be made to get thread dump of transaction owner thread.") boolean getTxOwnerDumpRequestsAllowed()
true
if allowed, false
otherwise.@MXBeanDescription(value="Shows if dump requests from local node to near node are allowed, when long running transaction is found. If allowed, the compute request to near node will be made to get thread dump of transaction owner thread.") void setTxOwnerDumpRequestsAllowed(@MXBeanParameter(name="allowed",description="Whether to allow.") boolean allowed)
allowed
- whether to allow@MXBeanDescription(value="Returns threshold timeout in milliseconds for long transactions, if transaction exceeds it, it will be dumped in log with information about how much time did it spent in system time (time while aquiring locks, preparing, commiting, etc.)and user time (time when client node runs some code while holding transaction). Returns 0 if not set. No transactions are dumped in log if this parameter is not set.") long getLongTransactionTimeDumpThreshold()
@MXBeanDescription(value="Sets threshold timeout in milliseconds for long transactions, if transaction exceeds it, it will be dumped in log with information about how much time did it spent in system time (time while aquiring locks, preparing, commiting, etc.) and user time (time when client node runs some code while holding transaction). Can be set to 0 - no transactions will be dumped in log in this case.") void setLongTransactionTimeDumpThreshold(@MXBeanParameter(name="threshold",description="Threshold timeout.") long threshold)
threshold
- Threshold.@MXBeanDescription(value="Returns the coefficient for samples of completed transactions that will be dumped in log.") double getTransactionTimeDumpSamplesCoefficient()
@MXBeanDescription(value="Sets the coefficient for samples of completed transactions that will be dumped in log.") void setTransactionTimeDumpSamplesCoefficient(@MXBeanParameter(name="coefficient",description="Samples coefficient.") double coefficient)
coefficient
- Coefficient.@MXBeanDescription(value="Returns the limit of samples of completed transactions that will be dumped in log per second, if {@link #getTransactionTimeDumpSamplesCoefficient} is above <code>0.0</code>. Must be integer value greater than <code>0</code>.") int getTransactionTimeDumpSamplesPerSecondLimit()
getTransactionTimeDumpSamplesCoefficient()
is above 0.0
.
Must be integer value greater than 0
.@MXBeanDescription(value="Sets the limit of samples of completed transactions that will be dumped in log per second, if {@link #getTransactionTimeDumpSamplesCoefficient} is above <code>0.0</code>. Must be integer value greater than <code>0</code>.") void setTransactionTimeDumpSamplesPerSecondLimit(@MXBeanParameter(name="limit",description="Samples per second limit.") int limit)
getTransactionTimeDumpSamplesCoefficient()
is above 0.0
.
Must be integer value greater than 0
.limit
- Limit value.@MXBeanDescription(value="Setting a timeout (in millis) for printing to log long-running transactions as well as transactions that cannot receive locks for all their keys for a long time. Set less than or equal {@code 0} to disable.") void setLongOperationsDumpTimeout(@MXBeanParameter(name="timeout",description="Timeout threshold (in millis) for printing to log long-running transactions.") long timeout)
0
to disable.timeout
- Frequency of output of long (running longer than this
time) transactions to log.@MXBeanDescription(value="Returns a timeout (in millis) for printing to log long-running transactions as well as transactions that cannot receive locks for all their keys for a long time. Returns {@code 0} or less if not set.") long getLongOperationsDumpTimeout()
0
or less if not set.@MXBeanParametersNames(value="timeout") @MXBeanDescription(value="Timeout interval (in millis) for printing tx key contention queue size info. Each transaction besides OPTIMISTIC SERIALIZABLE capture locks on all enlisted keys, for some reasons per key lock queue may rise. This property sets the interval during which keys and appropriate queue size statistics has been collected.") void setTxKeyCollisionsInterval(int timeout)
timeout
- Interval in millis.@MXBeanDescription(value="Returns a timeout (in millis) for printing tx key contention queue size info. Each transaction besides OPTIMISTIC SERIALIZABLE capture locks on all enlisted keys, for some reasons per key lock queue may rise. Returns the interval during which keys and appropriate queue size statistics has been collected.") int getTxKeyCollisionsInterval()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024