We are having the following problem.
A lot of tmp queues are created and a file, named as the tmp queue, is cretated under this path:
Several files are crated ( more than 5Gb).
The tmp queue is configurated as the default.
This situation is only becouse there are a lot of messages coming in and the number of these messages is more than the dafult or can there be others causes?
This is an example of a tmp quese which have a file on the swp directory.
Swap files contain non-persistent messages which cannot be held in the queue cache. It is an overflow storage. You can only avoid it by a) faster consuming or b) producing less messages. As long as your consuming rate of messages is lower than the producing rate, you'll create a backlog of messages which is first stored in the queue's memory cache and, if that is full, stored in swap files. These swap files are managed by the router and automatically deleted when they are empty.
This issue is due to the originator which sends, in specific period of time, a lot of messages.
Is it possible to configure the queue so that when the number of bytes or messages in a tmp_queue is up a threashold the messages are discarded?
1- The persistence-mode is set to "all". Does it mean "persistent"?
Is this the reason why swiftmq writes the tmp files?
2- It seems that the max-messages parameter is ignored. If you look at the picture in the first post you will see 500 which is the default.