Re: memoryUsage configuration

2008-11-12 Thread Gary Tully
sorry, my reply was not that clear. I agree that the use of two memory usage metrics seems a little odd. In other words, it appears to be an anomaly indicative of a bug! My suggestion is that you create a junit test case that shows the 'odd' behavior and attach it to a new jira issue. In addition,

Re: memoryUsage configuration

2008-11-11 Thread lurga
Hi Gary, Think you for your reply,but I still have some doubt about the 'valid anomaly' you mentioned . I was puzzled with this question for some days, and I also attempted to resolve it by writing some temperory code . What the most I want to know is why the BaseDestination uses two memory u

Re: memoryUsage configuration

2008-11-11 Thread Gary Tully
Hi Lurga, this seems to be a valid anomaly. Please check out the contributing[1] details to see the best way to make your changes permanent. [1] http://activemq.apache.org/contributing.html 2008/11/11 lurga <[EMAIL PROTECTED]>: > > Queue invokes memoryUsage.isFull() method to decide when to block

Re: memoryUsage configuration

2008-11-11 Thread lurga
Queue invokes memoryUsage.isFull() method to decide when to block producer sending message, and FilePendingCursor invokes hasSpace() method (uses systemUsage of the Queue) to decide when to flush messages to disk. I made a patch to avoid diverse results from these two different ways of judgement.