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、权限不足,已给添加过权限