Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADF364EA3 for ; Mon, 27 Jun 2011 14:45:06 +0000 (UTC) Received: (qmail 76177 invoked by uid 500); 27 Jun 2011 14:45:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 76112 invoked by uid 500); 27 Jun 2011 14:45:05 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 76104 invoked by uid 99); 27 Jun 2011 14:45:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 14:45:05 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 14:45:01 +0000 Received: by qyk27 with SMTP id 27so3235865qyk.2 for ; Mon, 27 Jun 2011 07:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=rkmucDk8YBHr2z04GlFvXsMjt/MmJ1yvlq8Rjv2TWwM=; b=FJ75fKdyC77IODtMHV4eodk+zVtdtZuFOUGvqm42pOlAKOHLL062g+veyNx04sqZf1 2qh7dF1nL3klst/sRCd20oBJrkzHFcTLLon6RD9pS0CT1/PpdQ5+fTkKWPHEOFqoCU+y N2yzzjhWA2CjczWFhZgFQvKfgMG/XXRveVlUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=aMIDO2LQigH0zh5aR4zCcG3H1CsA6/ABDVmQsS3FkbKTgUgmq3iDC9EBuwDlJRo6D/ L3onUxxeAwuCkR1yFDFzgbN4zV9aQWbgazPC0G1Xxe3dmSvsUuTx1Vsp8NnhcCO4O4Xz CX13Ql+pSETMWzg4QNoezR6sto+gI5GZw4LWQ= MIME-Version: 1.0 Received: by 10.224.76.74 with SMTP id b10mr4487521qak.339.1309185879426; Mon, 27 Jun 2011 07:44:39 -0700 (PDT) Received: by 10.229.8.20 with HTTP; Mon, 27 Jun 2011 07:44:39 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Jun 2011 15:44:39 +0100 Message-ID: Subject: Re: Tracing Broker to Producer Acks From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable great. One thought, it may be that the network connector is not requesting a sync send. It trys to respect the original client but in the case of a transacted client this may be a problem as messages are send async and batched at commit time. Using a client side connection url parameter, jms.alwaysSyncSend=3Dtrue would help validate if this is part of the problem as it would ensure each send is sync from the client. On 27 June 2011 15:03, Ozan Seymen wrote: > I am just interested in understanding when the broker assumed responsibil= ity for a specific message. I will use this trace information to go in a bi= t deeper in my tests where I am loosing messages in some scenarios - like h= ttp://activemq.2283324.n4.nabble.com/Message-loss-in-network-of-brokers-tra= nsactional-send-td3588714.html#a3602343. > > So basically I will repeat my tests with trace=3Dtrue, pointpoint the exa= ct location where the message is dropped and try to understand whether brok= er is killed before it assumed responsibility for it or not. If it hasn't a= ssumed responsibility, then I will need to do something on the client code = to trap that case (no need for a JIRA!). > > PS: These messages are all persistent and should not be lost. That's why = I am trying to trace "I've safely stored your message" response from broker= to producer. > > -----Original Message----- > From: Gary Tully [mailto:gary.tully@gmail.com] > Sent: 27 June 2011 14:42 > To: users@activemq.apache.org > Subject: Re: Tracing Broker to Producer Acks > > That is a response to the send request with responseRequired=3Dtrue, note= the correlationId =3D 13 which corresponds to the RECEIVED commandId=3D13. > So it confirms the receipt/store of the message. > > A producerAck, used for flow control would be a separate request. Is that= what you are interested in, producer flow control ? > > On 27 June 2011 14:24, Ozan Seymen wrote: >> Thanks for this Gary. >> >> Is it possible to quickly confirm whether the line starting with "SENDIN= G" is the ack returned from broker to the producer please? >> >> 2011-06-27 14:15:33,352 | DEBUG | RECEIVED: ActiveMQTextMessage >> {commandId =3D 13, responseRequired =3D true, messageId =3D >> ID:HAM-NB-073-58760-634447809330389070-1:0:1:1:10, >> >> 2011-06-27 14:15:33,354 | DEBUG | DB.DC1 toPageIn: 200, Inflight: 0, >> pagedInMessages.size 0, enqueueCount: 20, dequeueCount: 0 | >> org.apache.activemq.broker.region.Queue | Queue:DB.DC1 >> >> 2011-06-27 14:15:33,356 | DEBUG | SI.DC1 toPageIn: 200, Inflight: 0, >> pagedInMessages.size 0, enqueueCount: 20, dequeueCount: 0 | >> org.apache.activemq.broker.region.Queue | Queue:SI.DC1 >> >> 2011-06-27 14:15:33,359 | DEBUG | Q.OUT.ToDC2.DC1 toPageIn: 190, >> Inflight: 0, pagedInMessages.size 0, enqueueCount: 20, dequeueCount: 0 >> | org.apache.activemq.broker.region.Queue | Queue:Q.OUT.ToDC2.DC1 >> >> 2011-06-27 14:15:33,359 | DEBUG | SENDING: Response {commandId =3D 0, >> responseRequired =3D false, correlationId =3D 13} | >> org.apache.activemq.transport.TransportLogger.Connection:2 | ActiveMQ >> Transport: tcp:///0:0:0:0:0:0:0:1:58759 >> >> >> -----Original Message----- >> From: Gary Tully [mailto:gary.tully@gmail.com] >> Sent: 23 June 2011 17:45 >> To: users@activemq.apache.org >> Subject: Re: Tracing Broker to Producer Acks >> >> use trace=3Dtrue on the brokerURL to see all commands, including the pro= ducerAck from the broker. >> see: http://activemq.apache.org/tcp-transport-reference.html >> >> On 17 June 2011 11:35, Ozan Seymen wrote: >>> Hi, >>> >>> Is there any way for me to trace acks sent from broker to producer? Are= there any configuration settings that I can set in log4j.properties? >>> >>> Regards, >>> Ozan >>> >>> ________________________________ >>> This e-mail and any attached files are intended for the named addressee= only. It contains information which may be confidential and legally privil= eged and also protected by copyright. Unless you are the named addressee (o= r authorised to receive for the addressee) you may not copy or use it or di= sclose it to anyone else. If you received it in error please notify the sen= der immediately and then delete it from your system. >>> >>> Please be advised that the views and opinions expressed in this e-mail = may not reflect the views and opinions of The Digital Property Group Limite= d or any of its subsidiary companies. >>> >>> We make every effort to keep our network free from viruses. However, yo= u do need to check this e-mail and any attachments to it for viruses as we = can take no responsibility for any computer virus which may be transferred = by way of this e-mail. We reserve the right to monitor all e-mail communica= tions. >>> >>> The Digital Property Group Limited is a Daily Mail and General Trust pl= c company. >>> Registered Office: Northcliffe House, 2 Derry Street, London, W8 5TT. >>> Registered in England & Wales No: 02290527 VAT no. 243571174 >>> >>> _____________________________________________________________________ >>> _ This email has been scanned by the MessageLabs Email Security >>> System. >>> For more information please visit http://www.messagelabs.com/email >>> _____________________________________________________________________ >>> _ >> >> >> >> -- >> http://fusesource.com >> http://blog.garytully.com >> >> ______________________________________________________________________ >> This email has been scanned by the MessageLabs Email Security System. >> For more information please visit http://www.messagelabs.com/email >> ______________________________________________________________________ >> >> This e-mail and any attached files are intended for the named addressee = only. It contains information which may be confidential and legally privile= ged and also protected by copyright. Unless you are the named addressee (or= authorised to receive for the addressee) you may not copy or use it or dis= close it to anyone else. If you received it in error please notify the send= er immediately and then delete it from your system. >> >> Please be advised that the views and opinions expressed in this e-mail m= ay not reflect the views and opinions of The Digital Property Group Limited= or any of its subsidiary companies. >> >> We make every effort to keep our network free from viruses. However, you= do need to check this e-mail and any attachments to it for viruses as we c= an take no responsibility for any computer virus which may be transferred b= y way of this e-mail. We reserve the right to monitor all e-mail communicat= ions. >> >> The Digital Property Group Limited is a Daily Mail and General Trust plc= company. >> Registered Office: Northcliffe House, 2 Derry Street, London, W8 5TT. >> Registered in England & Wales No: 02290527 =A0VAT no. 243571174 >> >> ______________________________________________________________________ >> This email has been scanned by the MessageLabs Email Security System. >> For more information please visit http://www.messagelabs.com/email >> ______________________________________________________________________ >> > > > > -- > http://fusesource.com > http://blog.garytully.com > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email ______= ________________________________________________________________ > > This e-mail and any attached files are intended for the named addressee o= nly. It contains information which may be confidential and legally privileg= ed and also protected by copyright. Unless you are the named addressee (or = authorised to receive for the addressee) you may not copy or use it or disc= lose it to anyone else. If you received it in error please notify the sende= r immediately and then delete it from your system. > > Please be advised that the views and opinions expressed in this e-mail ma= y not reflect the views and opinions of The Digital Property Group Limited = or any of its subsidiary companies. > > We make every effort to keep our network free from viruses. However, you = do need to check this e-mail and any attachments to it for viruses as we ca= n take no responsibility for any computer virus which may be transferred by= way of this e-mail. We reserve the right to monitor all e-mail communicati= ons. > > The Digital Property Group Limited is a Daily Mail and General Trust plc = company. > Registered Office: Northcliffe House, 2 Derry Street, London, W8 5TT. > Registered in England & Wales No: 02290527 =A0VAT no. 243571174 > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > --=20 http://fusesource.com http://blog.garytully.com