Tuning The Transaction Service - Sun Microsystems Sun GlassFish Enterprise Server 2.1 Tuning Manual

Performance tuning guide
Hide thumbs Also See for Sun GlassFish Enterprise Server 2.1:
Table of Contents

Advertisement

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
Transaction Service Settings
59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Sun GlassFish Enterprise Server 2.1 and is the answer not in the manual?

Table of Contents