A message may get expired based on its Time To Live (TTL) value. For more information on how a message expires, refer Chapter 8: Message Expiry in Fiorano MQ Concepts Guide.
31.10.1 Purging Expired Messages in Queues
Expired messages in the queues can be cleaned up by setting the flag 'IsDbCleanupEnabled' to 'True', by default this is set to 'false'.
To configure this parameter, login through FMQ-JMX in Fiorano Studio. Navigate to JMXConnection > Fiorano > mq > ptp > PTPManager > QueueSubsystem > config. The parameter can be changed here. Refer to the screenshot shown below.
The changes need to be saved and server should be restarted. The frequency with which the server checks for expired messages is again configurable through the parameter CleanupInterval (defaults to 10 minutes). You can configure this value at Subsystem level or at destination levels.
Copies of the expired messages in any of the destinations can be stored in a queue named SYSTEM_DEADMESSAGES_QUEUE. For more information on this queue, refer to Chapter 13: Dead Message Queue.