-
1. Last Paged file not being de-paged.
clebert.suconic May 19, 2011 4:07 PM (in response to mskevington)Is the file empty?
HornetQ 2.2 should leave at least one empty file as it will need to keep the counters from where it left case it starts to page again.
-
2. Re: Last Paged file not being de-paged.
mskevington May 19, 2011 4:44 PM (in response to clebert.suconic)Thanks for the quick reply.
To answer your question. No. The last file is smaller that the previous ones; I'm guessing it doesn't contain enough messages to fill the required page size. All the other have been de-paged. I've specified that page files are 10485760 (10 x 1024 x 1024) bytes in size, and the remaining file is about two thirds of this.
-
3. Re: Last Paged file not being de-paged.
clebert.suconic May 19, 2011 5:10 PM (in response to mskevington)I have done a few improvements on paging on Branch_2_2_EAP and trunk. Maybe it would be worth trying it.
I'm thinking we should have a release soon from the Branch_2_2 (stable)
-
4. Re: Last Paged file not being de-paged.
mskevington May 19, 2011 5:22 PM (in response to clebert.suconic)If you think there is nothing else that may be causing this anomaly, I'll give it a try.
-
5. Re: Last Paged file not being de-paged.
clebert.suconic May 19, 2011 5:25 PM (in response to mskevington)A non ACKed message would cause this issue.
I have written a tool on Branch_2_2 that will help debug issues like this on
org.hornetq.core.paging.PrintPages
-
6. Re: Last Paged file not being de-paged.
clebert.suconic May 19, 2011 5:25 PM (in response to clebert.suconic)Or a pending Prepared Transaction with pending ACKs also.
-
7. Re: Last Paged file not being de-paged.
mskevington May 20, 2011 4:52 AM (in response to clebert.suconic)Unfortunately, Clebert, due to security constraints at work I can't build from SVN. I'm restricted to downloading JAR files only.
I'll look into ACKs, but I thought if I use Container managed transactions in the MDB then JBoss, or the underlying Application Server, would automatically Acknowledge messages.
-
8. Re: Last Paged file not being de-paged.
clebert.suconic May 20, 2011 4:11 PM (in response to mskevington)You could have a pending prepared message.
-
9. Re: Last Paged file not being de-paged.
mskevington May 21, 2011 4:00 AM (in response to clebert.suconic)1 of 1 people found this helpfulCould you possibly expand on that statement, please? Or do you mean: I've created a message from a session and just not called producer.send(message)?
-
10. Re: Last Paged file not being de-paged.
clebert.suconic May 21, 2011 7:33 AM (in response to mskevington)I meant prepared transaction. Sort of a typo. You could hVe a prepared tx with acks.
It would be a good idea go run printpages from trunk which is a undocumented tool to print what messages are on page files and it's acks.