Are you using classic ActiveMQ or Artemis ActiveMQ ?
Do you reproduce with WildFly 35 Beta1 as I fixed some issues in the recovery process of WildFly for messaging.
Also I'm not sure about what WildFly queue you are talking about, as you don't need to have an embedded broker.
Emmanuel
Le 03/01/2025 à 16:30, 'Christoffer A. Nilsen' via WildFly a écrit :
> I'm experiencing an issue that maybe 1/1.000.000 messages sent from our remote ActiveMQ gets /stuck /in Wildfly(31), and is never
> processed/ran. Usually it is multiple at once, but happens rarely.
>
> The two ways I discover this is that when I go into the ActiveMQ(Artemis) Management Console and browse the message queue, I can see it
> says /for example /1-10 of 251, but the table is empty. Also if I check the message-driven-bean stats inside of my deployment artifact
> management model I see them.
>
> The only way I know of solving this is shutting down Wildfly (un/redeploying artifact does not work). Then the connection between Wildfly
> and ActiveMQ will release and ActiveMQ will put the messages back on queue as ActiveMQ has not gotten any acknowledgement for these
> messages. Then they will again reappear in my browse queue table. When I start Wildfly again, the messages are handled correctly. I also
> believe is sufficient time has passed, ActiveMQ will put the messages in the DLQ not back on the original queue.
>
> Also want to point out that I see no Exceptions in the log relating to the stuck messages, or other signs of Wildfly attempting to
> handle/run the stuck messages. It's not like they have been attempted once and crashed or anything(as far as I can see).
>
> *Questions*
>
> * I have tried to google, and look into the Wildfly documentation, but having hard time finding anything relevant, could anyone maybe
> point me to the relevant section?
> * Any idea why this is happening?
> * Is there anyway I can view/monitor the messages Wildfly is currently storing?
> * Any way to force/tell Wildfly to handle/drop/execute the old messages on the internal Wildfly queue?
>
>
> As far as I understand, Wildfly /consumes/ all messages on the ActiveMQ queue, and puts them on an internal Wildfly queue, meaning even if
> my MessageListener is setup to run 10 parallel threads (maxSession=10), and my strict-max-pool have a max-pool-size="10", and I insert
> 10,000 messages into ActiveMQ, Wildfly will consume all. I have tried to test this by inserting thousands of messages into ActiveMQ, with
> the pool=10 and maxSession=10, were one message takes maybe a second to run, and I see that the browse the message table in ActiveMQ
> Management Console goes empty long long before my MessageListener.onMessage() have executed all messages. But the browse table will still
> display 1-10 of 11,212 even if the table is empty. Which I assume is messages that is yet to get an acknowledgement for Wildfly.
>
> Any help in where I could even start researching this problem would be very helpful, or if I have said something wrong, please point it
> out so I can be better informed on the topic.
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
wildfly+u...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/wildfly/b1a41f7a-b951-45d1-a238-728143e2ef1dn%40googlegroups.com
> <
https://groups.google.com/d/msgid/wildfly/b1a41f7a-b951-45d1-a238-728143e2ef1dn%40googlegroups.com?utm_medium=email&utm_source=footer>.