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 201B793B5 for ; Tue, 11 Oct 2011 22:45:01 +0000 (UTC) Received: (qmail 46848 invoked by uid 500); 11 Oct 2011 22:45:00 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 46824 invoked by uid 500); 11 Oct 2011 22:45:00 -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 46816 invoked by uid 99); 11 Oct 2011 22:45:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 22:45:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lefthandmagic@gmail.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qw0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 22:44:54 +0000 Received: by qadc12 with SMTP id c12so90181qad.15 for ; Tue, 11 Oct 2011 15:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=8lgOpe2RrvkYyWLc2NTfDWi4WPNf2nPfsgY/O8SZfTU=; b=EG+9P7sNeIASiIxI8pNjXF1O3aN/bvJiBSnHwaONpA5b7/hEPGvWyDOVueDU6UByPF UMji+U3TaRwdP/wE0RfcokIKauuGg/eNgrGwy44JHg6gHDFLoNMzrxT8yux3B6ELPqaI E53yucfRMUVPD5aMiAfFmK1iveyYYDQ9KlIWg= MIME-Version: 1.0 Received: by 10.229.62.195 with SMTP id y3mr262002qch.31.1318373073524; Tue, 11 Oct 2011 15:44:33 -0700 (PDT) Received: by 10.229.139.136 with HTTP; Tue, 11 Oct 2011 15:44:33 -0700 (PDT) Date: Tue, 11 Oct 2011 15:44:33 -0700 Message-ID: Subject: Java Broker with DerbyMessageStore running out of memory with 20K Queues From: Praveen M To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=0016e64b1d56ba96f404af0da61d --0016e64b1d56ba96f404af0da61d Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm an apache qpid newbie and am trying to benchmark Qpid Java Broker to see if it could be use for one of my usecase. My UseCase requires the ability to create atleast 20K persistent queues and have them all running in parallel. I am using the DerbyMessageStore as I understand that the default MemoryMessageQueue is not persistant across broker restarts. I'm running the broker with a heap of 4GB and options QPID_OPTS set to -Damqj.read_write_pool_size=32 -Dmax_prefetch=1 My test does the following: 1) Creates a queue and registers a listener on that queue. I do this upto 20K times for 20K distinct queues. I create the queues with the following option create: always , node : {type : queue, durable : true}} - this step goes quite fine. I was monitoring the memory usage during this step and it almost always stayed stable around 500-800MB 2) I produce messages for the queues (one message for each queues) and the messages are consumed by the registered handlers in step 1. - When this step starts, the memory usage just shoots up and exhausts my 4GB memory all together. Can someone please help me explaining why I am seeing this kind of a behavior? Also, Can you please point out if I'm missing some setting or doing something completely wrong/stupid? Thanks, -- -Praveen --0016e64b1d56ba96f404af0da61d--