than cache misses, then option B is an appropriate choice. You might still have to change the
max-cache-size and cache-resize-quantity to get the best result.
If the cache hits are too low and cache misses are very high, then the application is not reusing
the bean instances and hence increasing the cache size (using max-cache-size) will not help
(assuming that the access pattern remains the same). In this case you might use commit option
C. If there is no great dierence between cache-hits and cache-misses then tune
max-cache-size, and probably cache-idle-timeout-in-seconds.
Java Message Service Settings
The Type attribute that determines whether the Java Message Service (JMS) is on local or
remote system aects performance. Local JMS performance is better than remote JMS
performance. However, a remote cluster can provide failover capabilities and can be
administrated together, so there may be other advantages of using remote JMS. For more
information on using JMS, see
Chapter 4, “Conguring Java Message Service Resources,” in Sun
GlassFish Enterprise Server 2.1 Administration Guide
.
Transaction Service Settings
The transaction manager makes it possible to commit and roll back distributed transactions.
A distributed transactional system writes transactional activity into transaction logs so that they
can be recovered later. But writing transactional logs has some performance penalty.
Monitoring the Transaction Service
Transaction Manager monitoring is disabled by default. Enable monitoring of the transaction
service with the Admin Console at Congurations > cong-name > Monitoring.
You can also enable monitoring with these commands:
set serverInstance.transaction-service.monitoringEnabled=true
reconfig serverInstance
Viewing Monitoring Information
When you have enabled monitoring of the transaction service, view results
■
With Admin Console at Standalone Instances > server-name (Monitor | Monitor). Select
transaction-service from the View dropdown.
■
With this command:
JavaMessageServiceSettings
SunGlassFishEnterpriseServer2.1PerformanceTuningGuide • January200958