Hi Justin,
We are using Artemis 2.31.2. Can you please help in understanding how 
min-large-message-size will help in this case?

* 100 KB (102400) is the default min-large-message-size and any message bigger 
than this size (message = header + body) will be split and sent over network 
into multiple segments to cluster broker member.
* If the header size is more than 100 KB, split will happen. Does this split in 
case of larger header is causing issue?
* If my header is smaller but body is more than 100 KB then also this split 
should be happening but it has not caused any issue and messages are moved to 
cluster broker member.

Basically it seems the split of message body is working but split of header is 
not working.

Best Regards
Shiv

-----Original Message-----
From: Clebert Suconic <clebert.suco...@gmail.com>
Sent: Tuesday, June 4, 2024 6:18 AM
To: users@activemq.apache.org
Subject: Re: Issue in clustering due to Large JMS Header



CAUTION: EXTERNAL EMAIL - Sent from an email domain that is not formally 
trusted by Eurofins.

Do not click on links or open attachments unless you recognise the sender and 
are certain that the content is safe.

It was this issue / commit:

https://github.com/apache/activemq-artemis/commit/04f6424928a3d9cbc26f6b26f7c2e9b7f7bf7869


And BTW: Headers are not supposed to be large. Move the data to the body of the 
message.

Headers are meant to be really small and only provide enough information for 
filtering.

On Mon, Jun 3, 2024 at 7:36 PM Clebert Suconic <clebert.suco...@gmail.com> 
wrote:
>
> I had a fix for an almost large message becoming large and it should been 
> fixed on this latest release.
> I don’t remember the JIRA now and I’m on the phone.  But I may find it 
> tomorrow if you want it.
>
> Clebert Suconic
>
>
> On Mon, Jun 3, 2024 at 5:53 PM Justin Bertram <jbert...@apache.org> wrote:
>>
>> What version of ActiveMQ Artemis are you using? Do you have a way to
>> reproduce what you're seeing? If so, could you provide it?
>>
>> A while back there was an issue with flow control and large messages [1].
>> More recently I've seen some issues with messages which are _almost_
>> large with really big headers causing some problems, but you should
>> be able to work-around that by increasing the min-large-message-size
>> on your cluster-connection [2] in broker.xml.
>>
>>
>> Justin
>>
>> [1]
>> https://iss/
>> ues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-4003&data=05%7C02%7C%7C898ba
>> 62f27f7405274fd08dc8430119d%7C1a1dce2021b14beaa9d2130e9f1f6e2f%7C0%7C
>> 0%7C638530589196345707%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLC
>> JQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=eBYmg
>> QZlJaQRRCJ9XpsQXxeZ8DBy2f69PJrEGst2A4c%3D&reserved=0
>> [2]
>> https://act/
>> ivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2Flatest%2Fcl
>> usters.html%23configuring-cluster-connections&data=05%7C02%7C%7C898ba
>> 62f27f7405274fd08dc8430119d%7C1a1dce2021b14beaa9d2130e9f1f6e2f%7C0%7C
>> 0%7C638530589196352575%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLC
>> JQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=rCosd
>> 0mRGxKWAfW1UnpaQl%2BzLFViCqjFtJe5%2BOqjQU8%3D&reserved=0
>>
>> On Mon, Jun 3, 2024 at 4:35 AM Shiv Kumar Dixit
>> <shivkumar.di...@it.eurofinseu.com.invalid> wrote:
>>
>> > Hi team,
>> > Is there any update/input on this topic? Seems we are being hit by
>> > this issue more frequently.
>> >
>> > Best Regards
>> > Shiv
>> >
>> > -----Original Message-----
>> > From: Shiv Kumar Dixit <shivkumar.di...@it.eurofinseu.com.INVALID>
>> > Sent: Thursday, May 30, 2024 12:35 PM
>> > To: users@activemq.apache.org
>> > Subject: Issue in clustering due to Large JMS Header
>> >
>> >
>> >
>> > CAUTION: EXTERNAL EMAIL - Sent from an email domain that is not
>> > formally trusted by Eurofins.
>> >
>> > Do not click on links or open attachments unless you recognise the
>> > sender and are certain that the content is safe.
>> >
>> > Hi team,
>> > We have a 2-node symmetric cluster. Producer writes on node1, and
>> > consumer consumes from node2. As the clustering is working fine,
>> > messages move from
>> > node1 to node2 for consumer. So far, the setup is working fine.
>> >
>> > One of our producers started writing larger custom JMS header to
>> > pass stack trace information. Producer is able to write the message
>> > to node1 but it is not being moved to node2 via clustering. Seems
>> > it gets stuck in the clustering queue and does not move from node1
>> > to node2. Once a message gets stuck in clustering queue, other
>> > messages with or without large JMS headers also get stuck and no message 
>> > is delivered to node2 via clustering.
>> >
>> > Is there any restriction in custom JMS header size or total
>> > accumulative JMS headers size?
>> >
>> > Since we can write the message with large custom JMS header at
>> > node1, if there is any restriction in clustering which is not
>> > allowing message movement inside cluster due to presence of large JMS 
>> > header?
>> >
>> >
>> > Thanks
>> > Shiv
>> >
>> >
>> >
>> > -------------------------------------------------------------------
>> > -- To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org
>> > For additional commands, e-mail: users-h...@activemq.apache.org For
>> > further information, visit:
>> > https://a/
>> > ctivemq.apache.org%2Fcontact&data=05%7C02%7C%7C898ba62f27f7405274fd
>> > 08dc8430119d%7C1a1dce2021b14beaa9d2130e9f1f6e2f%7C0%7C0%7C638530589
>> > 196356905%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM
>> > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=2TSJGqIima%2FR
>> > vWY9COJ5O18OLIcD6fLFdaBEuZSdc4U%3D&reserved=0
>> >
>> >
>> >



--
Clebert Suconic

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org
For additional commands, e-mail: users-h...@activemq.apache.org For further 
information, visit: https://activemq.apache.org/contact


Reply via email to