|
Measures reported by GfTransactionTest
A transaction is a series of discreet actions in an application that must all complete successfully. By enclosing one or more actions in an indivisible unit of work, a transaction ensures data integrity and consistency.
If all these actions complete successfully, the transaction is committed. If any action fails, all changes from the preceding steps are rolled back. This type of event is called a rollback. A normal transaction ends in either a committed state or a rolled back state.
The transaction manager makes it possible to commit and roll back distributed transactions.
By monitoring the transaction manager, you can determine the transaction load on the GlassFish Enterprise server, detect transaction rollbacks, and receive regular updates on transaction status. The GfTransactionTest test does all the above.
The measures made by this test are as follows:
| Measurement |
Description |
Measurement Unit |
Interpretation |
| Active_transactions |
Indicates the number of transactions that were active on the server during the last measurement period. |
Number |
This is a good indicator of the transaction load on the server. |
| Rollback_count |
Indicates the number of transactions that were rolled back during the last measurement period. |
Number |
Rollbacks are resource-intensive operations. Ideally therefore, the value of this measure should be low. |
| Commited_count |
Indicates the number of transactions that were committed during the last measurement period. |
Number |
|
| Transaction_state |
Indicates whether the transactions are currently in a frozen state or not. |
|
If a transaction that you intend to rollback is active, then you will have to freeze that transaction before attempting the rollback. Freezing a transaction avoids the possibility of that transaction completing before the rollback request is issued.
This measure reports the value True if the transaction is currently frozen and reports the value False if the transaction is currently active.
The numeric values that correspond to the measure values described above are listed in the table below:
| Measure Value |
Numeric Value |
| True |
1 |
| False |
0 |
Note:
This measure reports the Measure Values listed in the table above to indicate the state of transactions. However, in the graph of this measure, the transaction state is indicated using only the Numeric Values listed in the above table. |
|