activemq

ActiveMQ:Communications link failure问题以及解决办法

荒凉一梦 提交于 2021-02-01 11:21:44
ActiveMQ版本:5.5.1 MQ 所使用的 MySQL 是 InnoDB存储引擎 记录人:@郑昀 现象: 业务表面现象:无。系统现象:无。 日志信息:业务系统发送 MQ 消息时,下面这种错误日志断断续续地一直都有: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 60,001 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago. 原因: ActiveMQ 持久化方案我们选的是 MySQL 。 MySQL 的全局变量 wait_timeout 默认是28800,单位是秒,即8小时。 运维部早先在测试 ActiveMQ 5.5 主从方案时,发现当 Master 宕机后,锁(数据库里的一个排他锁)有可能没有释放,导致 Slave 无法成为 Master( 这是 ActiveMQ 5.5 的 BUG ,已在 5.6.0和5.7.0 修复)。 所以运维部将 wait_timeout 参数调短为了 60秒 ,希望能加速锁释放。

ActiveMQ SSL - Reload truststore with out restart broker

自闭症网瘾萝莉.ら 提交于 2021-01-29 07:29:17
问题 Im using activeMQ as my messages server. In order to keep it secure between the server and the clients (producer/consumer), I added to the activemq.xml a ssl context section that tells the activemq when it starts, with which keystore and truststore file to use. In case the truststore has be updated with a new certifiate, I would like the activemq to reload the truststore without restart the broker itself. Is there any way t do it? I found something similer in the link below but I don't know

Failed to build activemq CMS 3.9.5 with OpenSSL 1.1.1

拥有回忆 提交于 2021-01-29 06:51:50
问题 Readme.txt for ActiveMQ CPP library version 3.9.5 states 1.3 OpenSSL If you wish to use the SSL Transport then you will need to have OpenSSL and its includes installed on your system. We recommend that you use version 1.0.0 or higher for best performance and security, but version from 0.9.8 are also known to work. I'm trying to build activemq cms 3.9.5 with OpenSSL 1.1.1 using Visual Studio project (included into activemq-cpp 3.9.5 distribution) and looks like CRYPTO_malloc_init() is removed

Not able to access admin console for an activemq instance running in a docker container

て烟熏妆下的殇ゞ 提交于 2021-01-28 19:44:49
问题 I have created dockerfile. FROM ubuntu:latest RUN apt-get update && apt-get -y upgrade RUN apt-get -y install curl RUN apt-get -y install default-jre RUN curl -O http://archive.apache.org/dist/activemq/5.16.0/apache-activemq-5.16.0-bin.tar.gz RUN mkdir -p /opt/apache/activemq RUN tar xvzf apache-activemq-5.16.0-bin.tar.gz -C /opt/apache/activemq WORKDIR /opt/apache/activemq/apache-activemq-5.16.0/bin VOLUME /opt/apache/activemq/apache-activemq-5.16.0/conf RUN echo './activemq start && tail -f

ActiveMQ JobScheduler remove message

廉价感情. 提交于 2021-01-28 17:36:35
问题 Is it possible to subscribe from PHP via Stomp to an ActiveMQ broker and access the JobScheduler (and subsequently remove a scheduled message by its jobId)? I have a set of scheduled messages for a queue "PROD" produced from 2 web servers, and upon the occurrence of an event on the same web server (aware of jobIds), would like to remove them from the JobScheduler so that the consumers (written in Java and located on multiple remote servers) don't receive them. I'm using ActiveMQ broker v5.9.1

SpringJMS - How to Disconnect a MessageListenerContainer

可紊 提交于 2021-01-28 08:27:58
问题 I want to disconnect the DefaultMessageListenerContainer for a queue. I am using dmlc.stop(), dmlc.shutdown(). At the time of conneciton 5 consumer threads get connected to queue. when I try to disconnect, 4 of the consumers get disconnected, but 1 consumer remains connected. (See screenshot at the end of thread). Environment 1. ActiveMQ with AMQP 2. SpringJMS with ApacheQpid Problem After calling destroy and stop method, there's still one consumer connected to the queue. Required Solution I

RabbitMQ and ActiveMQ running on the same machine

谁说我不能喝 提交于 2021-01-27 20:45:19
问题 For testing purposes I need ActiveMQ and RabbitMQ running on the same Windows machine. I have both installed, but I can't run them together: I need to stop one service in order to have the other one running. This is the error I get trying to start RabbitMQ having ActiveMQ running: =INFO REPORT==== 17-Feb-2015::14:24:00 === Error description: {could_not_start,rabbit, {bad_return, {{rabbit,start,[normal,[]]}, {'EXIT', {rabbit,failure_during_boot, {boot_step,networking, {case_clause, {error, {

how to set expiry for ActiveMQ.DLQ queue?

♀尐吖头ヾ 提交于 2021-01-27 17:37:28
问题 As a Operation guy (not a developer) and based on http://activemq.apache.org/message-redelivery-and-dlq-handling.html I have tried to set expiry time on the ActiveMQ.DLQ that is integrated into JBoss Fuse 6.2 to ensure that KahaDB's folder wont grow out of disk space but below settings seems do nothing on the queue messages but to copy them over to ActiveMQ.Advisory.Producer.Queue.ActiveMQ.DLQ twice. ... <policyEntry queue=">" producerFlowControl="false"> <deadLetterStrategy>

给产品经理的9千字总结:系统间数据传输关注这些就够了:接口、otter、log4j、SFTP、MQ……

混江龙づ霸主 提交于 2021-01-26 11:41:33
世界最遥远的距离,是我站在你对面,你却在另一台服务器里。 世界最温暖的举例,是我在internet的另一端,而你挑着一筐刚刨出来的数据来看我。 ——做产品的柏拉图 一个系统装再多数据,不与其他系统交互,那也是孤岛系统,孤独没女朋友。 一个系统若很外向,不断撩拨周围的系统,也乐意被撩拨,成为了众系统中的“交际花”,那么这货甚至就是中台的性质。 而更多的系统是介于上述两种极端之间的。像人一样,自己搞生产,也要参与社交——就是系统之间的数据对接。 对接的本质是为了实现数据信息的传输。 在后端产品的世界里,各子系统之间,或与外部系统之间的对接非常常见。 作为产品经理,不仅要知道数据从哪来,还要理清楚获取数据之后的握手方式、运算逻辑、异常规则、容错机制、数据日志等 等。 本文尝试聊聊如下话题: 数据传输的场景和意义 数据传输的方式 数据传输的处理机制 数据传输的注意事项 说明,因为编辑器的问题 一度缺少图片,若需看原文可以点击这里: ******系统间数据传输,产品经理视角的9千字总结:接口、otter、log4j、SFTP、MQ…… ****** 一、 数据传输的场景和意义 1、数据传输的应用场景 1)前端和后端本身无时不刻的数据互动。 2)公司的各个系统之间的信息共享。 比如,式系统部署之后,就需要各个系统模块之间进行数据的配合,比如订单系统的库存扣减数据要同步给备货系统进行采购。 3

ActiveMQ部署步骤和后台管理网站Service Unavailable问题解决笔记

与世无争的帅哥 提交于 2021-01-16 08:42:53
ActiveMQ部署步骤和后台管理网站Service Unavailable问题解决笔记 参考文章: (1)ActiveMQ部署步骤和后台管理网站Service Unavailable问题解决笔记 (2)https://www.cnblogs.com/enjoycode/p/5017941.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/u/4386395/blog/4906129