Sun Microsystems 820434310 manual Java Message Service Settings, Transaction Service Settings

Models: 820434310

1 128
Download 128 pages 34.03 Kb
Page 58
Image 58
Java Message Service Settings

Java Message Service Settings

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 difference 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 affects 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, “Configuring 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 Configurations > config-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-servicefrom the View dropdown.

With this command:

58

Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 2009

Page 58
Image 58
Sun Microsystems 820434310 Java Message Service Settings, Transaction Service Settings, Monitoring the Transaction Service