Issue is:
Persistent messages publish to a direct exchange around 3000 tps, and the bounded queue does not have a consumer. And as expected it reached memory watermark ~1G and then publisher get blocked, which is good. But I would expect at some point RabbitMQ will flush the RAM and let publisher hit more messages. But it keeps blocking connections forever and in queue details I can see all messages are in memory as well as in disk. Is there a way to let RabbitMQ to ask to clear memory. I know I can either purge or hook up the consumer back to drain them. But I am looking at a automated way. Thought vm_memory_high_watermark_paging_ratio does that, which seems does not.
This is RabbitMQ 3.6.6 and client is Java.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send an email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
channel.basicPublish(exName, rk,
new AMQP.BasicProperties.Builder()
.contentType("text/plain")
.deliveryMode(2)
.timestamp(new Date())
.messageId(id)
.build()), body);
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
--MKStaff Software Engineer, Pivotal/RabbitMQ
Policy for the queue.
queue-master-locator: min-masters
ha-mode: all
ha-sync-mode: automatic
Queue declare and bind before publish.
Connection connection = newConnection(n, fac);
Channel channel = connection.createChannel();
channel.queueDeclare(queueName, true, false, false, null);
channel.queueBind(queueName, exchange, routingKey);
public static Connection newConnection(Broker n, ConnectionFactory factory) throws Exception {
factory.setConnectionTimeout(MQ.getConfig().getConnectionTcpTimeout());
factory.setUsername(n.getUsername());
factory.setPassword(n.getPassword());
factory.setVirtualHost(n.getVhost());
factory.setHost(n.getHost());
factory.setPort(n.getPort());
addShutdownExecutor(factory);
return factory.newConnection();
}
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
--MKStaff Software Engineer, Pivotal/RabbitMQ
--MKStaff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/BKuEDVTrp-Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to rabbitm...@googlegroups.com.