On 05/25/2010 04:20 AM, Yuta Kawadai wrote:
Hi,

The more I run Java test code which is simply declare/delete queue and
check the queue existence by queuequery(please see below), the more
C++ broker memory size increase(NEVER decrease).
Every times, the test code is successful.

Here is run summary(the test code run 10 times.).

            |   broker memory size
Run #  |   (MB)
----------|------------------------------
initial   |    3
#1       |   23
#2       |   42
#3       |   50
#4       |   52
#5       |   65
#6       |   64
#7       |   72
#8       |   77
#9       |   81
#10     |   88


My question is,
Although the queue had been deleted, why broker memory didn't decrease?

Memory will not be released back to the OS every time a block is freed, so I wouldn't necessarily expect an immediate, direct change in memory just from deleting a queue.

Is broker memory leak?

In the 'run' column above, does a run represent one iteration through the loop in the test, or a run through the whole test (i.e. each run includes 10000 iterations)?

Or Is there mistake about how to use Java client API?

I certainly don't see any mistake in your example (I would note however that the recommended API is JMS).

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to