版本 5.9.0

启动activemq 报错

信息如下:

Temporary Store limit is 51200 mb, whilst the temporary data directory: /home/julong/apache-activemq-5.9.0/data/localhost/tmp_storage only has 6030 mb of usable space - resetting to maximum available 6030 mb.  

意思是空间不足了 ,找到 conf文件夹修改 如下配置 storeUsage 的值 和tempUsage 这两个都改小一点

<systemUsage>
<systemUsage>
<memoryUsage>
<memoryUsage percentOfJvmHeap="70" />
</memoryUsage>
<storeUsage>
<storeUsage limit="100 gb"/>
</storeUsage>
<tempUsage>
<tempUsage limit="50 gb"/>
</tempUsage>
</systemUsage>
</systemUsage>

修改之后重新启动服务

[julong@localhost bin]$ ./activemq console
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /home/julong/.activemqrc)

INFO: Invoke the following command to create a configuration file
./activemq setup [ /etc/default/activemq | /home/julong/.activemqrc ]

INFO: Using java '/usr/etc/jdk1.7.0_55/bin/java'
INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
Java Runtime: Oracle Corporation 1.7.0_55 /usr/etc/jdk1.7.0_55/jre
Heap sizes: current=1005568k free=995061k max=1005568k
JVM args: -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal -Djava.security.auth.login.config=/home/julong/apache-activemq-5.9.0/conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/home/julong/apache-activemq-5.9.0/tmp -Dactivemq.classpath=/home/julong/apache-activemq-5.9.0/conf; -Dactivemq.home=/home/julong/apache-activemq-5.9.0 -Dactivemq.base=/home/julong/apache-activemq-5.9.0 -Dactivemq.conf=/home/julong/apache-activemq-5.9.0/conf -Dactivemq.data=/home/julong/apache-activemq-5.9.0/data
Extensions classpath:
[/home/julong/apache-activemq-5.9.0/lib,/home/julong/apache-activemq-5.9.0/lib/camel,/home/julong/apache-activemq-5.9.0/lib/optional,/home/julong/apache-activemq-5.9.0/lib/web,/home/julong/apache-activemq-5.9.0/lib/extra]
ACTIVEMQ_HOME: /home/julong/apache-activemq-5.9.0
ACTIVEMQ_BASE: /home/julong/apache-activemq-5.9.0
ACTIVEMQ_CONF: /home/julong/apache-activemq-5.9.0/conf
ACTIVEMQ_DATA: /home/julong/apache-activemq-5.9.0/data
Loading message broker from: xbean:activemq.xml
INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@2513014: startup date [Thu Sep 16 22:17:32 CST 2021]; root of context hierarchy
INFO | PListStore:[/home/julong/apache-activemq-5.9.0/data/localhost/tmp_storage] started
INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/home/julong/apache-activemq-5.9.0/data/kahadb]
INFO | KahaDB is version 5
INFO | Recovering from the journal ...
INFO | Recovery replayed 20 operations from the journal in 0.08 seconds.
INFO | Apache ActiveMQ 5.9.0 (localhost, ID:localhost.localdomain-33183-1631801856682-0:1) is starting
INFO | Listening for connections at: tcp://localhost.localdomain:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector openwire started
INFO | Listening for connections at: amqp://localhost.localdomain:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector amqp started
INFO | Listening for connections at: stomp://localhost.localdomain:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector stomp started
INFO | Listening for connections at: mqtt://localhost.localdomain:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector mqtt started
INFO | Listening for connections at ws://localhost.localdomain:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
INFO | Connector ws started
INFO | Apache ActiveMQ 5.9.0 (localhost, ID:localhost.localdomain-33183-1631801856682-0:1) started
INFO | For help or more information please see: http://activemq.apache.org
WARN | Store limit is 10240 mb, whilst the data directory: /home/julong/apache-activemq-5.9.0/data/kahadb only has 6030 mb of usable space - resetting to maximum available disk space: 6030 mb
INFO | Welcome to hawtio 1.2-M23 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
INFO | Starting hawtio authentication filter, JAAS realm: "activemq" authorized role: "admins" role principal classes: "org.apache.activemq.jaas.GroupPrincipal"
INFO | Using file upload directory: /home/julong/apache-activemq-5.9.0/tmp/uploads
INFO | jolokia-agent: Using access restrictor classpath:/jolokia-access.xml
INFO | ActiveMQ WebConsole available at http://localhost:8161/
INFO | Initializing Spring FrameworkServlet 'dispatcher'