Re: Advice for Scheduler refactor.

2015-05-07 Thread Tim Bain
So are we worried that there may be users who might be better off with the lower memory usage of the original implementation in addition to users such as Kevin for whom the faster implementation is better? Do we need the ability to choose between the implementations, or are the memory concerns min

Re: Queue Delete not working in 5.8

2015-05-07 Thread waydena
Sorry - I don't know if they are temp queues or not. How do I tell? From the ComTypeDefinition that they are created from? -- View this message in context: http://activemq.2283324.n4.nabble.com/Queue-Delete-not-working-in-5-8-tp4696159p4696249.html Sent from the ActiveMQ - User mailing list arc

Re: Queue Delete not working in 5.8

2015-05-07 Thread Tim Bain
So, are they temp queues or not? On May 7, 2015 8:10 AM, "waydena" wrote: > I tried adding the allowTempAutoCreationOnSend="true" setting to the config > file but this actually somehow managed to double up the stale queues - I > had > 7 x DBSYNC-xxx queues before adding temp parameter - now I hav

Re: ActiveMQ 5.11 Dynamic Camel Route - Message Namespaces

2015-05-07 Thread mtod
Just getting back to this. So it's sounds like there's no resolution to this namespace issue. Short of removing name spaces from the messages or not using this feature. Thanks Mike -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-11-Dynamic-Camel-Route-Mess

Re: Advice for Scheduler refactor.

2015-05-07 Thread Kevin Burton
It can be.. but we’re only talking about 50k items. CHM should be fine around that order of items. The problem before was that there were multiple copy on write lists and queues (the Java collection kind) being scanned and purged again. One removed ActiveMQ works fine on large numbers of queues

Re: Advice for Scheduler refactor.

2015-05-07 Thread Rob Davies
Nice! I like what you've done. I originally used ConcurrenthashMap - but found it a bit of a hog, would be interested if you find different? > On 7 May 2015, at 19:58, Kevin Burton wrote: > >> On Thu, May 7, 2015 at 6:30 AM, Tim Bain wrote: >> >> I agree with your approach with the WeakRunn

Re: Advice for Scheduler refactor.

2015-05-07 Thread Kevin Burton
http://i.imgur.com/JyLrIZQ.png here’s a screenshot of the total number of queues per server. It’s pretty clear where I did the upgrade ;) On Thu, May 7, 2015 at 11:58 AM, Kevin Burton wrote: > > > On Thu, May 7, 2015 at 6:30 AM, Tim Bain wrote: > >> I agree with your approach with the WeakRun

Re: Advice for Scheduler refactor.

2015-05-07 Thread Kevin Burton
On Thu, May 7, 2015 at 6:30 AM, Tim Bain wrote: > I agree with your approach with the WeakRunnable; I think that will achieve > the goal without the performance hit of calling purge() after each > cancellation. > > I went ahead with this solution and it seems to be working well in production. Si

Re: KahabDB compatibility issue between ActiveMQ 5.10 and ActiveMQ 5.11

2015-05-07 Thread xabhi
Hi Tim, I don't have any specific idea as to what changed between the versions but i can point you to the part of code that does it. In my mulitKahaDB adapater configuration I have this entry:

Re: Queue Delete not working in 5.8

2015-05-07 Thread waydena
I tried adding the allowTempAutoCreationOnSend="true" setting to the config file but this actually somehow managed to double up the stale queues - I had 7 x DBSYNC-xxx queues before adding temp parameter - now I have 15. The stale queues (some of which will be weeks old) still do not get deleted.

Re: Advice for Scheduler refactor.

2015-05-07 Thread Tim Bain
I agree with your approach with the WeakRunnable; I think that will achieve the goal without the performance hit of calling purge() after each cancellation. If you take on the synchronized keywords, you should consider whether we're worried about concurrent calls to doStart() and doStop(). That s

Re: “Usage" and other performance improvements by avoiding CopyOnWriteArrayList.

2015-05-07 Thread Tim Bain
The other reason a List sometimes gets used is when you want to be able to arbitrarily order the elements. If you're using the natural ordering or can write a comparator, you can use a SortedSet, but if you need them to be reorderable, I don't know of a Collection that allows arbitrary ordering bu

Re: Is it possible to get a list of queues on a remote broker?

2015-05-07 Thread sarge
Can you post your solution Kevin? -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-it-possible-to-get-a-list-of-queues-on-a-remote-broker-tp4682144p4696215.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Queue Delete not working in 5.8

2015-05-07 Thread Tim Bain
Is there any chance the queues that aren't getting GC'd are temp queues? http://activemq.2283324.n4.nabble.com/AMQ-5-5-remove-temporary-destination-td4498959.html indicates that to GC temp destinations you also need to set as well. Tim On May 7, 2015 5:38 AM, "waydena" wrote: > This section in

Re: “Usage" and other performance improvements by avoiding CopyOnWriteArrayList.

2015-05-07 Thread Gary Tully
those changes look ok to me, as in they won't break anything and you have numbers that can make your case. Please splash in a patch or PR. On 2 May 2015 at 23:08, Kevin Burton wrote: > I’ve found 3 places where CopyOnWriteArrayList was being used and causing > significant performance impact O(N^2

Re: Queue Delete not working in 5.8

2015-05-07 Thread waydena
This section in the documentation describes how to configure it but it is not working the way I expect it to: http://activemq.apache.org/delete-inactive-destinations.html -- View this message in context: http://activemq.2283324.n4.nabble.com/Queue-Delete-not-working-in-5-8-tp4696159p4696212.ht

Re: Queue Delete not working in 5.8

2015-05-07 Thread waydena
I want to delete the stale queues that build up over time because they are used one time and then never used again. (Probably poor implementation I know - I am the System Engineer trying to support the system - not the developer who implemented it...) (Poor wording of the initial thread - I change

Re: Queue Purge not working in 5.8

2015-05-07 Thread Tom_Z
Hi, to purge a queue and to delete a queue are two different things!? http://activemq.apache.org/how-do-i-purge-a-queue.html /"A frequent requirement is to purge a queue (i.e. delete all the messages on it)."/ -- View this message in c