5 Message Compression In Oracle Exalogic Elastic Cloud Environments

WebLogic Server 12.1.3 provides the ability to configure message compression for JMS Store I/O operations which may provide significant performance improvements in Oracle Exalogic environments.

By selecting an appropriate message body compression option, JMS store I/O performance may improve for:

  • Persistent messages that are read from or written to disk.

  • Persistent and non-persistent messages are paged in or paged out when JMS paging is enabled.

The following sections provide information on how to configure message compression:

For general tuning information on JMS message compression, see "Compressing Messages" in Tuning Performance of Oracle WebLogic Server.

Selecting a Message Compression Option

This section provides information on the types of message compression available for use when message body compression is enabled.

Note:

The performance of each compression option is dependent on the operating environment, data type, and data size. Oracle recommends users test their environments to determine the most appropriate compression option.

Table 5-1 Message Body Compression Options

Compression Type Description

GZIP DEFAULT_COMPRESSION

Use GZIP_DEFAULT_COMPRESSION to enable message compression using the JDK GZIP API with DEFAULT_COMPRESSION level. See java.util.zip package.

GZIP BEST_COMPRESSION

Use GZIP_BEST_COMPRESSION to enable message compression using the JDK GZIP API with BEST_COMPRESSION level. See java.util.zip package.

GZIP BEST_SPEED

Use GZIP_BEST_SPEED to enable message compression using the JDK GZIP API with BEST_SPEED level. See java.util.zip package.

LZF

Use LZF to enable message compression using Open Source LZF. See https://github.com/ning/compress.


Message Compression for JMS Servers in Exalogic Environments

To configure message body compression for JMS servers:

  1. If you have not done so, create a JMS Server, see "Create JMS servers" in the Oracle WebLogic Server Administration Console Online Help

  2. Use the instructions to "Configure general JMS server properties" in the Oracle WebLogic Server Administration Console Online Help. Update the following Advanced JMS server attributes for your environment:

    1. Optionally, select Store Message Compression Enabled to enable the JMS store to perform message body compression. See "StoreMessageCompressionEnabled" in MBean Reference for Oracle WebLogic Server.

    2. Optionally, select Paging Message Compression Enabled to enable the JMS paging store to perform message body compression on persistent and non-persistent messages. See "PagingMessageCompressionEnabled" in MBean Reference for Oracle WebLogic Server.

    3. In Message Compression Options, specify the type of message compression used. See "MessageCompressionOptions" in MBean Reference for Oracle WebLogic Server.

Message Compression for Store-and-Forward Sending Agents in Exalogic Environments

To configure message body compression for SAF Sending Agents:

  1. If you have not done so, create a SAF Sending Agent, see "Create Store-and-Forward agents" in the Oracle WebLogic Server Administration Console Online Help

  2. Use the instructions to "Configure SAF agent general properties" in the Oracle WebLogic Server Administration Console Online Help. Update the following Advanced Sending Agent attributes for your environment:

    1. Optionally, select Store Message Compression Enabled to enable the JMS store to perform message body compression. See "StoreMessageCompressionEnabled" in MBean Reference for Oracle WebLogic Server.

    2. Optionally, select Paging Message Compression Enabled to enable the JMS paging store to perform message body compression on persistent and non-persistent messages. See "PagingMessageCompressionEnabled" in MBean Reference for Oracle WebLogic Server.

    3. In Message Compression Options, specify the type of message compression used. See "MessageCompressionOptions" in MBean Reference for Oracle WebLogic Server.