The problem I see is that you used admin, and set a limit on admin.

I believe every queue created on broker.xml (including DLQ, etc..)
will belong to admin. that means you won't be able to create any more
than 3 queues, and the broker.xml will already pass that limit.

Can you try with creating a new user to test this usecase?

On Tue, Mar 23, 2021 at 6:03 AM CASAUX Nicolas
<[email protected]> wrote:
>
> I used the 2.17.0 version.
> Thanks!
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofre <[email protected]>
> Envoyé : mardi 23 mars 2021 11:02
> À : [email protected]
> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>
> Hmmm, weird.
>
> Let me try to reproduce. What’s your Artemis version ?
>
> Regards
> JB
>
> > Le 23 mars 2021 à 11:00, CASAUX Nicolas <[email protected]> a 
> > écrit :
> >
> > Hello JB,
> >
> > I did the test with a "fresh instance", so no queue were already created.
> > And even when I set a "ridiculously" high value, I encounter the same issue.
> > Tests were made with the "admin" user, and with another user I created also.
> >
> > Nicolas
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofre <[email protected]> Envoyé : mardi 23 mars
> > 2021 10:57 À : [email protected] Objet : Re: ActiveMQ Artemis
> > - resource limits - max-queues issue
> >
> > Hi Nicolas,
> >
> > And the user match I guess ?
> >
> > The max-queues is the number of queues that the user can create. Maybe your 
> > user already reach the queue numbers ?
> >
> > Regards
> > JB
> >
> >> Le 23 mars 2021 à 10:46, CASAUX Nicolas <[email protected]> a 
> >> écrit :
> >>
> >> Hello,
> >>
> >> I'm currently trying to set-up some resource limits with ActiveMQ Artemis. 
> >> I have no problem with the "max-connections" limit, which works fine.
> >> However, I cannot manage to use the "max-queues" resource limit. As soon I 
> >> add it in the broker.xml file, I can't subscribe to any address.
> >>
> >> Steps to reproduce:
> >>
> >> 1.  I use Artemis 2.17.0
> >> 2.  I create a new instance
> >> 3.  I add this config to broker.xml file:
> >> <resource-limit-settings>
> >>             <resource-limit-setting match="admin">
> >>                           <max-connections>5</max-connections>
> >>                           <max-queues>3</max-queues>
> >>             </resource-limit-setting> </resource-limit-settings>
> >>
> >> 1.  Start the instance
> >> 2.  Try to connect with a Stomp over websocket client
> >>
> >> When I try to subscribe to an address, I get this error in Artemis Console:
> >> AMQ332069: Sent ERROR frame to STOMP client /0:0:0:0:0:0:0:1:49225:
> >> AMQ339016 Error creating subscription subscription/Orders But I have 0 
> >> queue created so far...
> >>
> >> A few more remarks:
> >>
> >> 1.  When I change the value of <max-queues> to "-1", I have no problem to 
> >> connect with a Stomp over websocket client.
> >> 2.  When I set a high value to <max-queues> like "500", I still have
> >> the problem  3.  I have the same problem with a JMS client.
> >>
> >> Thanks for your help!
> >>
> >> Nicolas
> >>
> >
>


-- 
Clebert Suconic

Reply via email to