Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Unit Testing with ActiveMQ 5.6.0

I have a series of JUnit tests for an application that I have been building, but when I run them against the 5.6.0 ActiveMQ library, it shows an error:

ERROR  checkSystemUsageLimits, Temporary Store limit is 50000 mb, whilst the temporary data directory: /path/to/temp/storage only has [less than 50,000] mb of usable space

It doesn't cause an error in the unit test, but I don't need 50GB of space for my unit tests. Is there a way that I can reduce the size of the requested size from 50GB to something less? If not, is there a way that I can easily suppress this error?

Edit: I should mention that I'm creating the connection to AMQ using the URL

vm://localhost?broker.persistent=false

So it's not using the activemq.xml config file.

like image 484
pcman312 Avatar asked May 02 '26 05:05

pcman312


1 Answers

You can change your configuration to include a smaller size in

<systemUsage>
    <systemUsage>
        <tempUsage>
            <tempUsage limit="100 mb"/>
        </tempUsage>
    </systemUsage>
</systemUsage>

default config (and links to schema and such) here

like image 148
Brian Henry Avatar answered May 04 '26 17:05

Brian Henry