Re: High CPU on CMS application

2013-08-15 Thread zackhasit
Interestingly, threads are causing 5% increase mostly from unmarshal call from openwire format but there is 20% increase in context switching (vmstats). Profiler shows that all functions used for business logic/ processing (I mean functions of my program that were same before and after AMQ implemen

Re: High CPU on CMS application

2013-08-15 Thread zackhasit
Thanks. From looking at the profiler it looks like there are a lot more threads running than before (6 threads per connection to broker) and most increase might be context switching. Is it possible to reduce threads in general to bare minimum. As I see it : IOTranport thread DedicatedTaskRunner

Re: High CPU on CMS application

2013-08-15 Thread zackhasit
OK. I should mention that my program has taken code directly from simple producer and simple consumer in the test program supplied with CMS code (Since I am newbie it felt easiest way). The program get messages (like simple consumer), does its own work and send it to another broker (like simple pro

High CPU on CMS application

2013-08-15 Thread zackhasit
Hi, I have an application that's using 20% more CPU after implementing CMS. I was wondering if there was any way of reducing it. I am ok with reducing functionality such as ACKs etc if that helps. There is no persistence involved either. 5% of that increase is probably context switching so if some

Bundling of ActiveMQ

2012-11-16 Thread zackhasit
Hi, I was reading through the license of ActiveMQ and ECCN 5d002 information. Could anyone let us know if ActiveMQ can be bundled with our own proprietary s/w ? Also any restriction in US with respect to that when considering the security aspects -- View this message in context: http://act

Broker latency spike

2012-11-13 Thread zackhasit
Hi, I ran the producer/consumer which is delivered as part of the example. I added code to show difference between JMSActiveMQBrokerInTime and JMSActiveMQBrokerOutTime. It remains zero for 90% of the time but goes higher every now and then. I suspected garbage collection and now the broker paramet

Re: JMSActiveMQBrokerInTime,JMSActiveMQBrokerOutTime via CMS

2012-11-07 Thread zackhasit
How does rounding work for these two properties ? Since most the messages (as per JMX stats) are queued only for 60 microseconds I need to understand if that means that difference between properties would be shown as 0 ms or 1ms. Whats the rounding logic ? -- View this message in context: http

Maintenance Mode

2012-10-02 Thread zackhasit
Hi, I want to bring down consumers connected to a specific queue for maintenance via following steps: 1. Block a particular queue from receiving more messages from producers. (How ?) 2. Check via Console / programatically that all pending messages have been processed by consumers. 3. Now stop

Re: Implementing Request Response mechanism

2012-08-20 Thread zackhasit
>>So, that request-response recipe uses temporary destinations to route messages. Your use-case is that of request-throttling and load-balancing the 'service'. Not really. There is no service but a transport queue which could be IPC for that matter. I may not have explained it well but I have the

Re: Implementing Request Response mechanism

2012-08-20 Thread zackhasit
Thanks a lot for the code. I looked at it but if you can provide some comments it might help as I am only familiar with whats at http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html and not inner workings. But first question that comes to mind is if HTTP is right proto

Re: Implementing Request Response mechanism

2012-08-20 Thread zackhasit
Thanks. Few clarifications: >>register an http-callback in the garb of a message listener I am not sure I follow how to do this. (Note: We are using CMS instead of JMS here). Is there a code snippet (JMS itself) that can quickly explain what should be done ? As to why we want to do that is due t

Re: Consumer not receiving message

2012-08-20 Thread zackhasit
Hi Gaurav, Would 2 broker not work otherwise though. Please see similar question below. I understand that one broker would work but what if I need to run 2 brokers (no embedded/embedded). link: http://activemq.2283324.n4.nabble.com/Implementing-Request-Response-mechanism-td4655304.html -- Vie

Implementing Request Response mechanism

2012-08-20 Thread zackhasit
I looked at http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html However I have a question on this. I have multiple clients and a servers. Each have their own local broker. Client needs to send message to server's broker and setJMSreply to it's own (client's) local brok

How to reset stats programmatically

2012-06-11 Thread zackhasit
Hi, It looks like I can use stats plugin to get all stats I might need. But after reading the stats I want to reset them such that next time when I get new stats they are delta from last time read. Is this possible ? How ? Thanks -- View this message in context: http://activemq.2283324.n4.na

Oracle jdbc adapter causing crashes with no helpful log messages

2012-06-01 Thread zackhasit
I am using Activemq 5.5.1. After configuring activemq.xml as follows: When I start broker it crashes. No idea why. I increased all traces/DEBUG log and this is what I get : 2012-06-01 23:03:44,417 | DEBUG | Now attempting to figure out