Startup error of embedded ActiveMQ: Temporary Store limit is 51200 mb

后端 未结 2 877
眼角桃花
眼角桃花 2020-12-17 21:35

I have a Spring web application which will send and listen on a standalone ActiveMQ. When I start the web application, it shows:

20:12:52.684 [localhost-star         


        
相关标签:
2条回答
  • 2020-12-17 22:20

    I had the same problem, but placing an activeMQ.xml somewhere on the server isn't the best idea in this case, I think.

    When I use an embedded active mq server, I want to keep all configuration in one place (especially in my project/war file).

    Now it is possible to set the tempUsage config values directly at broker-bean definition: as described in this link.

    For example:

    <amq:broker useJmx="false" persistent="false">
        <amq:transportConnectors>
            <amq:transportConnector uri="tcp://localhost:0"/>
        </amq:transportConnectors>
        <amq:systemUsage>
            <amq:systemUsage>
                <amq:memoryUsage>
                    <amq:memoryUsage limit="64 mb"/>
                </amq:memoryUsage>
                <amq:storeUsage>
                    <amq:storeUsage limit="512 mb"/>
                </amq:storeUsage>
                <amq:tempUsage>
                    <amq:tempUsage limit="128 mb"/>
                </amq:tempUsage>
            </amq:systemUsage>
        </amq:systemUsage>
    </amq:broker>
    

    (amq - namespace = http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd)

    0 讨论(0)
  • 2020-12-17 22:29

    In your activeMQ.xml you would have some configuration like this

    <systemUsage>
       <systemUsage>
          ....
          <tempUsage>
             <tempUsage limit="50 gb"/>
          </tempUsage>
       </systemUsage>
    </systemUsage>
    

    you need to specify a value which is available on your disk,as error clearly mentions there is only 29021 MB of free space you need to set <tempUsage limit="50 gb"/> to a value lesser than your free space

    you can do something like <tempUsage limit="20 gb"/>

    Hope this helps!

    Good luck!

    0 讨论(0)
提交回复
热议问题