Basic Server Configuration

The JMS server is configured using a property file, which is normalled called msgsvc.properties. This file has several properties, which must be specified prior to starting the server:

Once the msgsvc.properties file has been edited according to the environment, the tables used by JMS server must be created. This is only required the first time, or after each time the tables have been destroyed. The database is initialized using the dbinit command. The JMS server is started and shutdown using the jmqserv command.

Memory Management

The JMS server can be configured to limit the amount of memory used for messages using the msgsvc.memory. This will indirectly limit the total amount of memory used by the server process. When the maximum allowed memory has been exhausted the server will start to page out messages to the database.

While preventing the JMS server from exhausting the memory available to the Java Virtual Machine is a good goal, it is important to match the value of msgsvc.memory to the nature of the application. As an example, if an application fans out from few topic publishers to many topic subscribers, it is better to limit memory using destination properties.

Furthermore, if destinations are limited using the destination.maxUnconsumedMsgNum or destination.maxUnconsumedMsgBytes properties, the value of msgsvc.memory should typically be set to accommodate that amount of memory. This is particularly true if flow control is applied during normal operation.

If an application sends messages in large bursts, or if some destinations have message consumers that are inactive for extensive periods of time, the msgsvc.memory property can be a used to ensure that only messages that are actually in use by the server will reside in memory.



Copyright © 2003, 2004 Novell, Inc. All rights reserved. Copyright © 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.