Re: clients are getting disconnected

2011-11-09 Thread JacobS
Is the 'one FilePendingMessageCursor (minimum 256K) x Topic Consumer', memory usage by design ? It seems that its a lot of wasted memory, Hundreds Of Megabytes are wasted on those 2 arrays in OpenWireFormat object ( which are all null at the point when the client creates the topic consumers any way

Re: clients are getting disconnected

2011-11-09 Thread Dejan Bosanac
Try tweaking memoryLimit option on destination policy and/or systemUsage Regards -- Dejan Bosanac - http://twitter.com/dejanb - The experts in open source integration and messaging - http://fusesource.com ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nightt

Re: clients are getting disconnected

2011-11-08 Thread JacobS
After some more heap dump investigation I found what is eating all the memory. The dump shows that I have more than 2000 TopicSubscription objects and for each one there is an FilePendingMessageCursor, which consumes 265K (the OpenWireFormat object has 2 arrays each consuming 130K). My question is,

Re: clients are getting disconnected

2011-11-08 Thread JacobS
Can this be related to : ActiveMQ.Advisory.TempQueue,ActiveMQ.Advisory.TempTopic destination ? I added a breakpoint to the creation of FilePendingMessageCursor in the TopicSubscription class and I can see that FilePendingMessageCursor is created 5 times when a client connects ( and creates consume

Re: clients are getting disconnected

2011-11-08 Thread JacobS
I don't use durable topic subscribers at all -- View this message in context: http://activemq.2283324.n4.nabble.com/clients-are-getting-disconnected-tp3999308p4015777.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: clients are getting disconnected

2011-11-08 Thread Dejan Bosanac
They are used for storing temporary messages in destinations and durable subscribers, see http://activemq.apache.org/message-cursors.html Do you have a large number of durable topic subscribers? Regards -- Dejan Bosanac - http://twitter.com/dejanb - The experts in open source in

Re: clients are getting disconnected

2011-11-08 Thread JacobS
I don't have many destinations. what is org.apache.activemq.broker.region.cursors.FilePendingMessageCursor ? it is consuming most of the memory. -- View this message in context: http://activemq.2283324.n4.nabble.com/clients-are-getting-disconnected-tp3999308p4015627.html Sent from the ActiveMQ -

Re: clients are getting disconnected

2011-11-08 Thread Dejan Bosanac
Can you create a test case that reproduces it? Also, are you using a large number of destinations (in addition to large number of connections)? If, you might find this useful http://activemq.apache.org/how-do-i-configure-10s-of-1000s-of-queues-in-a-single-broker-.html Regards -- Dejan Bosanac - h