Sun Microsystems 820434310 manual Tuning the Transaction Service

Models: 820434310

1 128
Download 128 pages 34.03 Kb
Page 59
Image 59
Tuning the Transaction Service

Transaction Service Settings

asadmin get -m serverInstance.transaction-service.*

The following statistics are gathered on the transaction service:

total-tx-completed Completed transactions.

total-tx-rolled-back Total rolled back transactions.

total-tx-inflight Total inflight (active) transactions.

isFrozen Whether transaction system is frozen (true or false)

inflight-tx List of inflight (active) transactions.

Here is a sample of the output using asadmin:

********** Stats for JTS ************

total-tx-completed = 244283 total-tx-rolled-back = 2640 total-tx-inflight = 702 isFrozen = False inflight-tx =

Transaction Id , Status, ElapsedTime(msec)

000000000003C95A_00, Active, 999

Tuning the Transaction Service

This property can be used to disable the transaction logging, where the performance is of utmost importance more than the recovery. This property, by default, won’t exist in the server configuration.

Disable Distributed Transaction Logging

To disable distributed transaction logging with the Admin Console, go to Configurations > config-name> Transaction Service. Click on Add Property, and specify:

Name: disable-distributed-transaction-logging

Value: true

You can also set this property with asadmin, for example:

asadmin set server1.transaction-service.disable-distributed-transaction-logging=true

Setting this attribute to true disables transaction logging, which can improve performance. Setting it to false (the default), makes the transaction service write transactional activity to transaction logs so that transactions can be recovered. If Recover on Restart is checked, this property is ignored.

Set this property to true only if performance is more important than transaction recovery.

Chapter 3 • Tuning the Enterprise Server

59

Page 59
Image 59
Sun Microsystems 820434310 manual Tuning the Transaction Service, Disable Distributed Transaction Logging