active mq start
Corporation 1.8.0_211 C:\Program Files\Java\jdk1.8.0_211\jre
==================================================================================================================================
ERROR | Failed to start Apache ActiveMQ (localhost, ID:SUJIE10-55704-1597277598596-0:1)
java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use: JVM_Bind
at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:28)
==================================================================================================================================
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1748)
==================================================================================================================================
at org.apache.activemq.console.Main.main(Main.java:115)
Caused by: java.io.IOException: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use: JVM_Bind
at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:34)
==================================================================================================================================
at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2275)
... 40 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
==================================================================================================================================
at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:143)
... 46 more
INFO | Apache ActiveMQ 5.16.0 (localhost, ID:SUJIE10-55704-1597277598596-0:1) is shutting down
INFO | Connector openwire stopped
INFO | Connector amqp stopped
INFO | Connector stomp stopped
INFO | Connector mqtt stopped
INFO | Connector ws stopped
INFO | PListStore:[C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data\localhost\tmp_storage] stopped
INFO | Stopping async queue tasks
INFO | Stopping async topic tasks
INFO | Stopped KahaDB
INFO | Apache ActiveMQ 5.16.0 (localhost, ID:SUJIE10-55704-1597277598596-0:1) uptime 0.662 seconds
INFO | Apache ActiveMQ 5.16.0 (localhost, ID:SUJIE10-55704-1597277598596-0:1) is shutdown
INFO | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@71318ec4: startup date [Thu Aug 13 08:13:16 CST 2020]; root of context hierarchy
WARN | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use: JVM_Bind
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
==================================================================================================================================
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
at org.apache.activemq.console.Main.main(Main.java:115)
PS C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin> netstat -aon|findstr "8161"
PS C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin> netstat -aon|findstr "8161"
PS C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin> netstat -aon|findstr "61616"
PS C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin> netstat -lntp | grep 8161
grep : 无法将“grep”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确
,然后再试一次。
所在位置 行:1 字符: 17
+ netstat -lntp | grep 8161
+ ~~~~
+ CategoryInfo : ObjectNotFound: (grep:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin> netstat -aon|findstr "5672"
TCP 0.0.0.0:5672 0.0.0.0:0 LISTENING 7996
TCP 0.0.0.0:25672 0.0.0.0:0 LISTENING 7996
TCP [::]:5672 [::]:0 LISTENING 7996
PS C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin> tasklist|findstr "7996"
erl.exe 7996 Services 0 16,224 K
PS C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin> .\activemq start
Java Runtime: Oracle Corporation 1.8.0_211 C:\Program Files\Java\jdk1.8.0_211\jre
Heap sizes: current=1005056k free=989327k max=1005056k
JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\conf\login.config -Dactivemq.classpath=C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\conf;C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\../conf;C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\../conf; -Dactivemq.home=C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\.. -Dactivemq.base=C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\.. -Dactivemq.conf=C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\conf -Dactivemq.data=C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data -Djava.io.tmpdir=C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data\tmp
Extensions classpath:
[C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\lib,C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\lib\camel,C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\lib\optional,C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\lib\web,C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\lib\extra]
ACTIVEMQ_HOME: C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..
ACTIVEMQ_BASE: C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..
ACTIVEMQ_CONF: C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\conf
ACTIVEMQ_DATA: C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data
Loading message broker from: xbean:activemq.xml
INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@71318ec4: startup date [Thu Aug 13 08:16:08 CST 2020]; root of context hierarchy
INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data\kahadb]
INFO | KahaDB is version 7
INFO | PListStore:[C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data\localhost\tmp_storage] started
INFO | Apache ActiveMQ 5.16.0 (localhost, ID:SUJIE10-55818-1597277769904-0:1) is starting
INFO | Listening for connections at: tcp://SUJIE10:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector openwire started
INFO | Listening for connections at: amqp://SUJIE10:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector amqp started
INFO | Listening for connections at: stomp://SUJIE10:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector stomp started
INFO | Listening for connections at: mqtt://SUJIE10:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector mqtt started
INFO | Starting Jetty server
INFO | Creating Jetty connector
WARN | ServletContext@o.e.j.s.ServletContextHandler@4df5bcb4{/,null,STARTING} has uncovered http methods for path: /
INFO | Listening for connections at ws://SUJIE10:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector ws started
INFO | Apache ActiveMQ 5.16.0 (localhost, ID:SUJIE10-55818-1597277769904-0:1) started
INFO | For help or more information please see: http://activemq.apache.org
WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data\kahadb only has 51144 mb of usable space. - resetting to maximum available disk space: 51144 mb
WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The data directory: C:\App\apache-activemq-5.16.0-bin\apache-activemq-5.16.0\bin\..\data only has 51144 mb of usable space. - resetting to maximum available disk space: 51144 mb
INFO | ActiveMQ WebConsole available at http://127.0.0.1:8161/
INFO | ActiveMQ Jolokia REST API available at http://127.0.0.1:8161/api/jolokia/