-
45. Re: Strange netty error when sending a lot of messages
clebert.suconic Oct 20, 2009 2:25 PM (in response to rnicholson10)"rnicholson10" wrote:
Yes, this is the quandry.
It's the JMS layer that will be doing the ACKing, correct?
We can't call message.acknowledge(), it results in an exception. So how can I guarantee that a message will be acknowledged?
If you are using MDBs.. just make sure you configure it properly. If you are using DupsOK, keep the DupsOK < Half Meg. The default is 1MiB. (and if you keep MaxSize = 1MiB, it wont work).
Remember also, that the BatchSize is per client. You may have multiple consumers on the MDB layer. So, why don't you just make the DupsOkBatchSize something small such as 10K? (If you really want the 1MiB MaxSize). -
46. Re: Strange netty error when sending a lot of messages
clebert.suconic Oct 20, 2009 2:26 PM (in response to rnicholson10)"rnicholson10" wrote:
Is DupsOKBatchSize also used for AUTO_ACKNOWLEDGE?
on DupsOK only.
As I said, I will look at your test as soon as you change it. -
47. Re: Strange netty error when sending a lot of messages
clebert.suconic Oct 20, 2009 2:30 PM (in response to rnicholson10)Actually, AutoACK has the ACKBatchSize = 0 on the core level. It basically means every ACK is immediately sent, but you need to make sure you call msg.ack()
-
48. Re: Strange netty error when sending a lot of messages
rnicholson10 Oct 20, 2009 2:38 PM (in response to rnicholson10)But you can't call message.acknowledge().
If I do that when in AUTO_ACKNOWLEDGE I get the following error:XA operation failed Cannot start, session is already doing work in a transaction null code:-6
Should this not be called internally on the JMS layer? -
49. Re: Strange netty error when sending a lot of messages
clebert.suconic Oct 20, 2009 2:41 PM (in response to rnicholson10)Sorry, I thought about client_Ack.
So, use AutoACK in your example. -
50. Re: Strange netty error when sending a lot of messages
rnicholson10 Oct 20, 2009 3:48 PM (in response to rnicholson10)New example using max-size of 2MiB and page-size of 1 MiB.
Attempt to send 200,000 messages of size 2KiB approx.
Fails on the 9026th message send as soon as the paging file is created.
Same as the other examples just decompress to the Beta5 examples/jms directory. -
51. Re: Strange netty error when sending a lot of messages
rnicholson10 Oct 20, 2009 3:49 PM (in response to rnicholson10)New example using max-size of 2MiB and page-size of 1 MiB.
Attempt to send 200,000 messages of size 2KiB approx.
Fails on the 9026th message send as soon as the paging file is created.
Same as the other examples just decompress to the Beta5 examples/jms directory. -
52. Re: Strange netty error when sending a lot of messages
clebert.suconic Oct 21, 2009 11:07 PM (in response to rnicholson10)Ok, I see the issue now...
Thanks, and sorry I didn't see it before :-)
The Bridge is dealing directly with the Queue, and some of the counters on the paging are not being applied. I have created a testcase for it now. -
53. Re: Strange netty error when sending a lot of messages
rnicholson10 Oct 22, 2009 6:22 AM (in response to rnicholson10)Great!
I was beginning to think my configuration was all to blame.