荒烟蔓草 2022-06-09 11:52
浏览 107
已结题

linux服务器 使用docker 部署 activemq ,启动后进程自动关闭

linux服务器 使用docker 部署 activemq ,启动后进程自动关闭

linux版本:CentOS Linux release 7.6.1810 (Core)
activemq版本:apache-activemq-5.16.3.tar.gz
jdk:openjdk version "1.8.0_312"

同样的docker镜像包,在其他服务器上运行正常(经过200+的客户现场验证,程序运行正常),唯独在一台服务器出现进程自动关闭问题

启动命令如下
[root@b23426059782 apache-activemq-5.16.3]# ./bin/activemq start
INFO: Loading '/home/component/apache-activemq-5.16.3//bin/env'
INFO: Using java '/home/component/jdk/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/home/component/apache-activemq-5.16.3//data/activemq.pid' (pid '46029')
[root@b23426059782 apache-activemq-5.16.3]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 11772 1636 pts/0 Ss+ Jun08 0:00 /bin/bash /home/run.sh /home/upgrade.sh
root 181 0.0 0.0 4412 364 pts/0 S+ Jun08 0:00 tail -f /dev/null
root 43565 0.0 0.0 12040 2080 pts/1 Ss 11:08 0:00 bash
root 46029 210 1.8 3952016 148008 pts/1 Sl 11:27 0:06 /home/component/jdk/bin/java -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djav
root 46052 0.0 0.0 49684 1752 pts/1 R+ 11:27 0:00 ps aux
[root@b23426059782 apache-activemq-5.16.3]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 11772 1636 pts/0 Ss+ Jun08 0:00 /bin/bash /home/run.sh /home/upgrade.sh
root 181 0.0 0.0 4412 364 pts/0 S+ Jun08 0:00 tail -f /dev/null
root 43565 0.0 0.0 12040 2080 pts/1 Ss 11:08 0:00 bash
root 46069 0.0 0.0 49684 1752 pts/1 R+ 11:27 0:00 ps aux
启动后进程会运行12秒左右,然后会自动关闭

activemq 启动日志

[root@b23426059782 apache-activemq-5.16.3]# cd data/
[root@b23426059782 data]# cat activemq.log
2022-06-09 11:27:43,350 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@5bc79255: startup date [Thu Jun 09 11:27:43 CST 2022]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
2022-06-09 11:27:44,711 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/home/component/apache-activemq-5.16.3/data/localhost/KahaDB] | org.apache.activemq.broker.BrokerService | main
2022-06-09 11:27:44,836 | INFO | KahaDB is version 7 | org.apache.activemq.store.kahadb.MessageDatabase | main
2022-06-09 11:27:44,873 | INFO | PListStore:[/home/component/apache-activemq-5.16.3/data/localhost/tmp_storage] started | org.apache.activemq.store.kahadb.plist.PListStoreImpl | main
2022-06-09 11:27:45,039 | INFO | Apache ActiveMQ 5.16.3 (localhost, ID:b23426059782-45613-1654745264889-0:1) is starting | org.apache.activemq.broker.BrokerService | main
2022-06-09 11:27:45,074 | INFO | Listening for connections at: tcp://b23426059782:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | main
2022-06-09 11:27:45,078 | INFO | Connector openwire started | org.apache.activemq.broker.TransportConnector | main
2022-06-09 11:27:45,080 | INFO | Apache ActiveMQ 5.16.3 (localhost, ID:b23426059782-45613-1654745264889-0:1) started | org.apache.activemq.broker.BrokerService | main
2022-06-09 11:27:45,082 | INFO | For help or more information please see: http://activemq.apache.org/ | org.apache.activemq.broker.BrokerService | main
2022-06-09 11:27:45,330 | INFO | Apache ActiveMQ 5.16.3 (localhost, ID:b23426059782-45613-1654745264889-0:1) is shutting down | org.apache.activemq.broker.BrokerService | ActiveMQ ShutdownHook
2022-06-09 11:27:45,332 | INFO | Connector openwire stopped | org.apache.activemq.broker.TransportConnector | ActiveMQ ShutdownHook
2022-06-09 11:27:45,333 | INFO | socketQueue interrupted - stopping | org.apache.activemq.transport.tcp.TcpTransportServer | ActiveMQ Transport Server Thread Handler: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
2022-06-09 11:27:45,338 | INFO | Could not accept connection during shutdown : null (null) | org.apache.activemq.broker.TransportConnector | ActiveMQ Transport Server Thread Handler: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
2022-06-09 11:27:45,341 | INFO | PListStore:[/home/component/apache-activemq-5.16.3/data/localhost/tmp_storage] stopped | org.apache.activemq.store.kahadb.plist.PListStoreImpl | ActiveMQ ShutdownHook
2022-06-09 11:27:45,342 | INFO | Stopping async queue tasks | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
2022-06-09 11:27:45,343 | INFO | Stopping async topic tasks | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
2022-06-09 11:27:45,346 | INFO | Stopped KahaDB | org.apache.activemq.store.kahadb.KahaDBStore | ActiveMQ ShutdownHook
2022-06-09 11:27:45,364 | INFO | Apache ActiveMQ 5.16.3 (localhost, ID:b23426059782-45613-1654745264889-0:1) uptime 0.683 seconds | org.apache.activemq.broker.BrokerService | ActiveMQ ShutdownHook
2022-06-09 11:27:45,366 | INFO | Apache ActiveMQ 5.16.3 (localhost, ID:b23426059782-45613-1654745264889-0:1) is shutdown | org.apache.activemq.broker.BrokerService | ActiveMQ ShutdownHook
2022-06-09 11:27:46,378 | INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/ | org.apache.activemq.web.WebConsoleStarter | main
2022-06-09 11:27:46,379 | INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/ | org.apache.activemq.web.WebConsoleStarter | main
2022-06-09 11:27:46,779 | INFO | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@5bc79255: startup date [Thu Jun 09 11:27:43 CST 2022]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | ActiveMQ ShutdownHook

问题处理过程中已经尝试的思路

1、61616端口冲突问题,已检查为发现端口冲突
2、权限不足,已给添加过权限

是否有遇到该问题,烦请告知
  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 6月17日
    • 创建了问题 6月9日

    悬赏问题

    • ¥30 arduino vector defined in discarded section `.text' of wiring.c.o (symbol from plugin)
    • ¥20 关于#c++#的问题:(2)运算二叉树·表达式一般由一个运算符和两个操作数组成:(相关搜索:二叉树遍历)
    • ¥20 如何训练大模型在复杂因素组成的系统中求得最优解
    • ¥15 关于#r语言#的问题:在进行倾向性评分匹配时,使用“match it"包提示”错误于eval(family$initialize): y值必需满足0 <= y <= 1“请问在进行PSM时
    • ¥45 求17位带符号原码乘法器verilog代码
    • ¥20 PySide6扩展QLable实现Word一样的图片裁剪框
    • ¥15 matlab数据降噪处理,提高数据的可信度,确保峰值信号的不损失?
    • ¥15 怎么看我在bios每次修改的日志
    • ¥15 python+mysql图书管理系统
    • ¥15 Questasim Error: (vcom-13)