Active MQ performance tuning

2016-03-01 Thread vishva
Hi, I have configured activemq on one of my servers. Whenever my Apache- Tomee server 1.7.2 receives a request, i make a call to activemq to poll for an object. I am getting around 500 calls per second. When I start my server, I start getting following exception in around 1 hr. javax.jms.JMSExcept

Re: activemq consumer does not return data even when queue not empty

2016-03-01 Thread vishva
Thanks artnaseef, for pointing me in the right direction.The issue was mainly because it was running under JTA transaction, and hence the consumers were not releasing the connection. So after around 50-100 polls, all the connections were exhausted. I was able to fix it by making TransactionSuppor

activemq consumer does not return data even when queue not empty

2016-02-27 Thread vishva
I wrote a sample code to add elements to activemq, and then retrieve them. I was successfully able to add around 1000 elements, but while retrieving the elements, somehow code gets stuck after retrieving around 50 - 200 elements, even when the queue has a lot of elements. Following is the code i u