activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Martinec <>
Subject Re: Activemq 5.4.2 hangs when the temp disk usage is used
Date Mon, 17 Dec 2012 20:23:48 GMT
ceposta wrote
> There's been a lot of re-work on the FilePendingMessageCursor (and other
> areas that you touched here) since release 5.4.2 (which is about 2 yrs
> old). Do you have the possibility to check with a later version of the
> code
> to see if that's been fixed for you?

I have checked activemq 5.7.0 in tags directory.

Ad 1)
The messagesLock in Queue class is used in much the same way (in iterate()
and sendMessage() methods). The FilePendingCursor still waits for the
available space in tryAddMessageLast() and the waiting seems to be
implemented in the same way in the waitForSpace() method of the Usage class.

Ad 2)
The FilePendingCursor still uses synchronized methods - at least the
tryAddMessageLast() for writers and next() for readers.

Ad 3)
The TempUsage.retrieveUsage() uses PListStore.size() and that is still
implemented as:
return journal.getDiskSize() + pageFile.getDiskSize();

I have not investigated further, but it will probably always return the same
value as in 5.4.2.

Therefore, all the three issues are likely present in the 5.7.0 too. I can
spare some time to check whether 5.7.0 hangs too if you wish. I may also
provide you an access to our private repository for cherrypicking the

Relevant source files:

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message