|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Need help figuring out how to configure ActiveMQ.xmlJust started using ActiveMQ 5.3
I have 1 producer and 1 consumer on a queue. Right now I have problems where my consumer is busy and can't keep up. After a while ActiveMQ will run out of memory and crash and then my product doesn't work to well. I've tried different methods of using destinationPolicies and can't find any good idea on how to configure it to do what I want. What I want it to do is only use so much memory lets say 128 MB and store the rest to disk. I need strictOrder. If the disk uses more than lets say 1 GB then I want it to not accept any more info from the producers, but keep send to consumers. Once it gets below the limit of it can start sending again. |
|
|
Re: Need help figuring out how to configure ActiveMQ.xmlOn 5 Nov 2009, at 23:43, bnortman wrote: > > Just started using ActiveMQ 5.3 > > I have 1 producer and 1 consumer on a queue. Right now I have > problems where > my consumer is busy and can't keep up. After a while ActiveMQ will > run out > of memory and crash and then my product doesn't work to well. I've > tried > different methods of using destinationPolicies and can't find any > good idea > on how to configure it to do what I want. > > What I want it to do is only use so much memory lets say 128 MB and > store > the rest to disk. I need strictOrder. If the disk uses more than > lets say > 1 GB then I want it to not accept any more info from the producers, > but keep > send to consumers. Once it gets below the limit of it can start > sending > again. > > > -- > View this message in context: http://old.nabble.com/Need-help-figuring-out-how-to-configure-ActiveMQ.xml-tp26224318p26224318.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Are these persistent or non-persistent messages you are sending ? cheers, Rob Rob Davies http://twitter.com/rajdavies I work here: http://fusesource.com My Blog: http://rajdavies.blogspot.com/ I'm writing this: http://www.manning.com/snyder/ |
|
|
Re: Need help figuring out how to configure ActiveMQ.xmlThese are persistent messages.
|
|
|
Re: Need help figuring out how to configure ActiveMQ.xmlOn 6 Nov 2009, at 16:55, bnortman wrote: > > These are persistent messages. > > > > rajdavies wrote: >> >> >> On 5 Nov 2009, at 23:43, bnortman wrote: >> >>> >>> Just started using ActiveMQ 5.3 >>> >>> I have 1 producer and 1 consumer on a queue. Right now I have >>> problems where >>> my consumer is busy and can't keep up. After a while ActiveMQ will >>> run out >>> of memory and crash and then my product doesn't work to well. I've >>> tried >>> different methods of using destinationPolicies and can't find any >>> good idea >>> on how to configure it to do what I want. >>> >>> What I want it to do is only use so much memory lets say 128 MB and >>> store >>> the rest to disk. I need strictOrder. If the disk uses more than >>> lets say >>> 1 GB then I want it to not accept any more info from the producers, >>> but keep >>> send to consumers. Once it gets below the limit of it can start >>> sending >>> again. >>> >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Need-help-figuring-out-how-to-configure-ActiveMQ.xml-tp26224318p26224318.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >> >> Are these persistent or non-persistent messages you are sending ? >> >> cheers, >> >> Rob >> >> Rob Davies >> http://twitter.com/rajdavies >> I work here: http://fusesource.com >> My Blog: http://rajdavies.blogspot.com/ >> I'm writing this: http://www.manning.com/snyder/ >> >> >> >> >> >> >> > > -- > View this message in context: http://old.nabble.com/Need-help-figuring-out-how-to-configure-ActiveMQ.xml-tp26224318p26230828.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > It should work the way you want to out of the box - can you send the configuration you are currently using - and we can take it from there. Btw - are you using transactions, client-acknowledgement ? - anything else about your environment that might be relevant ? thanks, Rob Rob Davies http://twitter.com/rajdavies I work here: http://fusesource.com My Blog: http://rajdavies.blogspot.com/ I'm writing this: http://www.manning.com/snyder/ |
| Free embeddable forum powered by Nabble | Forum Help |