Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-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 3C8176E80 for ; Tue, 7 Jun 2011 14:34:57 +0000 (UTC) Received: (qmail 91878 invoked by uid 500); 7 Jun 2011 14:34:56 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 91816 invoked by uid 500); 7 Jun 2011 14:34:56 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 91636 invoked by uid 99); 7 Jun 2011 14:34:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 14:34:56 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paperman@gmx.at designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Jun 2011 14:34:49 +0000 Received: (qmail 16554 invoked by uid 0); 7 Jun 2011 14:34:28 -0000 Received: from 194.48.133.8 by www160.gmx.net with HTTP; Tue, 07 Jun 2011 16:34:26 +0200 (CEST) Content-Type: text/plain; charset="utf-8" Date: Tue, 07 Jun 2011 16:34:26 +0200 From: paperman@gmx.at In-Reply-To: <1744554075.444029.1307453870365.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> Message-ID: <20110607143426.262090@gmx.net> MIME-Version: 1.0 References: <1744554075.444029.1307453870365.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> Subject: Re: Qpid c# client - 500 connections problem To: users@qpid.apache.org, users@qpid.apache.org X-Authenticated: #2462823 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/0CHNF+bj0hMOYyw8TTI5l0GQ3lOB3Epw6MfE8yE hpR8snD/lGKTuPUe3FGrM2bCnehZYBY2pS4w== Content-Transfer-Encoding: 8bit X-GMX-UID: ll+LDA8SfW47SV3OUmVoehNudmllcgW8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Chuck, unfortunately the erros all occur localhost under Win XP 32bit with qpid 0.10 as c# client AND 0.10 c++ broker. I try to install qpid under linux ... although i think there must be another problem. Joe -------- Original-Nachricht -------- > Datum: Tue, 7 Jun 2011 09:37:50 -0400 (EDT) > Von: Chuck Rolke > An: users@qpid.apache.org > Betreff: Re: Qpid c# client - 500 connections problem > Hi Joe, > > I think this issue is actually with the broker and not with the client. I > had the same issue when running against a 0.8 windows broker; the issue > does not exist for 0.8 linux brokers. See issue > https://issues.apache.org/jira/browse/QPID-2967 > > The fix for this was checked in after the 0.8 release and is in 0.10. You > can try running a 0.10 broker or running against a linux broker. > > Another test to prove this theory is to run 500 connections on the client > and then pause. Restart the broker and resume the client and it should do > another 500 connections. > > -Chuck > > ----- Original Message ----- > > From: paperman@gmx.at > > To: users@qpid.apache.org > > Sent: Tuesday, June 7, 2011 5:14:38 AM > > Subject: Qpid c# client - 500 connections problem > > Hi dear qpid-users, > > > > i'm new to qpid and tried to access qpid over c#. I copied the c# > > sample > > from the qpid-doc and tried to send over 1000 messages - after 500 > > messages > > i always get a "Client max connection count limit exceeded: 500 > > connection > > refused". > > I'm using qpid 0.10 32bit in c# 3.5. Can anybody help me - where is > > the > > mistake? > > > > Here is my sample code > > (from > > > http://qpid.apache.org/books/0.8/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.pdf > > - example 2.3 on page 5) > > > > using System; > > using System.Collections.Generic; > > using System.Linq; > > using System.Text; > > using Org.Apache.Qpid.Messaging; > > namespace Qpid500Test > > { > > class Program > > { > > static void Main(string[] args) > > { > > for (int i = 0; i < 1000; i++) > > { > > String broker = args.Length > 0 ? args[0] : "localhost:5672"; > > String address = args.Length > 1 ? args[1] : "amq.topic"; > > Connection connection = null; > > try > > { > > connection = new Connection(broker); > > connection.Open(); > > Session session = connection.CreateSession(); > > Receiver receiver = session.CreateReceiver(address); > > Sender sender = session.CreateSender(address); > > sender.Send(new Message("Hello world!")); > > Message message = new Message(); > > message = receiver.Fetch(DurationConstants.SECOND * 1); > > Console.WriteLine("{0}", message.GetContent()); > > session.Acknowledge(); > > connection.Close(); > > } > > catch (Exception e) > > { > > Console.WriteLine("Exception {0}.", e); > > if (null != connection) connection.Close(); > > } > > } > > } > > } > > > > Thanks in advance, > > > > Yours > > Joe > > > > -- > > > > > > NEU: FreePhone - kostenlos mobil telefonieren! > > Jetzt informieren: http://www.gmx.net/de/go/freephone > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org > -- NEU: FreePhone - kostenlos mobil telefonieren! Jetzt informieren: http://www.gmx.net/de/go/freephone --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org