You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by CASAUX Nicolas <ni...@soprasteria.com> on 2021/03/23 09:46:29 UTC

ActiveMQ Artemis - resource limits - max-queues issue

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


Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

I confirm the issue: I have the same behavior with Artemis 2.17.0.

After checking the log in DEBUG, I see a NPE, but I don’t know yet if it’s related.

I will investigate.

Regards
JB

> Le 23 mars 2021 à 15:14, Jean-Baptiste Onofre <jb...@nanthrax.net> a écrit :
> 
> Hi Nicolas,
> 
> For now, I’m not able to reproduce your behavior, with a "regular" user or admin user.
> 
> Let me try a new time with a clean broker.
> 
> I will keep you posted soon.
> 
> Regards
> JB
> 
>> Le 23 mars 2021 à 15:13, CASAUX Nicolas <ni...@soprasteria.com> a écrit :
>> 
>> Yes, I did restart the broker each time to be sure. In the log, the "resource" part does not seem to be hot reloaded.
>> 
>> -----Message d'origine-----
>> De : Clebert Suconic <cl...@gmail.com> 
>> Envoyé : mardi 23 mars 2021 15:11
>> À : users@activemq.apache.org
>> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>> 
>> I did not realize you set the limit at 500.
>>>> When I set a high value to <max-queues> like "500", I still have the 
>>>> problem
>> 
>> Did you restart the broker when you set the limit higher? I am not sure this value is reloaded upon change. it could be an enhancement to reload it upon modification.
>> 
>> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <ni...@soprasteria.com> wrote:
>>> 
>>> 1) I already tried with another user, but will retry to be sure.
>>> 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
>>> 
>>> -----Message d'origine-----
>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23 
>>> mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ 
>>> Artemis - resource limits - max-queues issue
>>> 
>>> 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 <ni...@soprasteria.com> wrote:
>>>> 
>>>> I used the 2.17.0 version.
>>>> Thanks!
>>>> 
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
>>>> 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
>>>>> 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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
>> 
>> 
>> 
>> --
>> Clebert Suconic
> 


Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Nicolas,

For now, I’m not able to reproduce your behavior, with a "regular" user or admin user.

Let me try a new time with a clean broker.

I will keep you posted soon.

Regards
JB

> Le 23 mars 2021 à 15:13, CASAUX Nicolas <ni...@soprasteria.com> a écrit :
> 
> Yes, I did restart the broker each time to be sure. In the log, the "resource" part does not seem to be hot reloaded.
> 
> -----Message d'origine-----
> De : Clebert Suconic <cl...@gmail.com> 
> Envoyé : mardi 23 mars 2021 15:11
> À : users@activemq.apache.org
> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
> 
> I did not realize you set the limit at 500.
>>> When I set a high value to <max-queues> like "500", I still have the 
>>> problem
> 
> Did you restart the broker when you set the limit higher? I am not sure this value is reloaded upon change. it could be an enhancement to reload it upon modification.
> 
> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <ni...@soprasteria.com> wrote:
>> 
>> 1) I already tried with another user, but will retry to be sure.
>> 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
>> 
>> -----Message d'origine-----
>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23 
>> mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ 
>> Artemis - resource limits - max-queues issue
>> 
>> 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 <ni...@soprasteria.com> wrote:
>>> 
>>> I used the 2.17.0 version.
>>> Thanks!
>>> 
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
>>> 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
>>>> 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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
> 
> 
> 
> --
> Clebert Suconic


RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
Well, it seems to work perfectly ! Even with admin user :)
Thanks a lot !

-----Message d'origine-----
De : CASAUX Nicolas 
Envoyé : mercredi 24 mars 2021 14:24
À : users@activemq.apache.org
Objet : RE: ActiveMQ Artemis - resource limits - max-queues issue

I'll give it a try tonight and will let you know! :) Thanks!

-----Message d'origine-----
De : Clebert Suconic <cl...@gmail.com> Envoyé : mercredi 24 mars 2021 13:52 À : users@activemq.apache.org Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue

You can try a snapshot here:

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots%2Forg%2Fapache%2Factivemq%2Fapache-artemis%2F2.18.0-SNAPSHOT%2Fapache-artemis-2.18.0-20210324.124753-53-bin.zip&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7C8215e498854f44b64bed08d8eec3a372%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521871318747570%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=6byqMKjom0PKDiZgkuj%2Frr%2BwlWKFfJP1WlvwpRAgEVQ%3D&amp;reserved=0

(this link will expire at some point)


don't use it in production though

On Wed, Mar 24, 2021 at 8:49 AM CASAUX Nicolas < nicolas.casaux@soprasteria.com> wrote:

> Hello Clebert,
>
> I'm not set-up to build it from master, but I can wait for an "official"
> release, no need to build specific things for me ! :) Thank you!
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mercredi 24 mars
> 2021 05:50 À : users@activemq.apache.org Objet : Re: ActiveMQ Artemis
> - resource limits - max-queues issue
>
> Hi Clebert,
>
> Oh, you were faster than me ;)
>
> Thanks !
>
> Regards
> JB
>
> > Le 23 mars 2021 à 22:43, Clebert Suconic <cl...@gmail.com> 
> > a
> écrit :
> >
> > PR sent:
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgi
> > th
> > ub.com%2Fapache%2Factivemq-artemis%2Fpull%2F3516&amp;data=04%7C01%7C
> > ni
> > colas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c15%7C
> > 8b
> > 87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%7CUnknow
> > n%
> > 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLC
> > JX
> > VCI6Mn0%3D%7C2000&amp;sdata=5Cj%2FJsdkQYmTgaXg%2F%2BtvhyC2a%2BfwZMTr
> > Pe
> > %2FYVQ%2Fdhms%3D&amp;reserved=0
> >
> >
> >
> >
> > On Tue, Mar 23, 2021 at 5:29 PM Clebert Suconic 
> > <cl...@gmail.com>
> > wrote:
> >
> >> I'm finalizing the change.. it should be committed soon today or
> tomorrow.
> >>
> >> On Tue, Mar 23, 2021 at 5:28 PM Clebert Suconic 
> >> <cl...@gmail.com>
> >> wrote:
> >>
> >>> you ok to build one from master, or should I prepare one to be
> downloaded?
> >>>
> >>> On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas < 
> >>> nicolas.casaux@soprasteria.com> wrote:
> >>>
> >>>> Thanks Clebert!
> >>>> I'm glad to know that there is an actual bug! 🙂
> >>>> I'll be happy to test your snapshot version.
> >>>>
> >>>> ________________________________
> >>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi
> >>>> 23 mars 2021 20:14 À : users@activemq.apache.org 
> >>>> <us...@activemq.apache.org> Objet : Re: ActiveMQ Artemis - 
> >>>> resource limits - max-queues issue
> >>>>
> >>>>
> >>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2
> >>>> Fi
> >>>> ssues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%
> >>>> 7C
> >>>> nicolas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c
> >>>> 15
> >>>> %7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%
> >>>> 7C
> >>>> Unknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
> >>>> 6I
> >>>> k1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=sTFp90HBHBOnhUYW0O9y0OILGv
> >>>> 6k
> >>>> %2BtpUecDNqQ1TKNY%3D&amp;reserved=0
> >>>>
> >>>> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic 
> >>>> <cl...@gmail.com> wrote:
> >>>>>
> >>>>> It is a bug, there's a NullPointerException causing the issue...
> >>>>>
> >>>>> I'm sending a fix.... and I will provide you a snapshot to try 
> >>>>> it
> out.
> >>>>>
> >>>>> On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic 
> >>>>> <cl...@gmail.com> wrote:
> >>>>>>
> >>>>>> Ok, let me run a test then.. let me work on it for 1 or 2 hours...
> >>>> brb
> >>>>>>
> >>>>>> On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas 
> >>>>>> <ni...@soprasteria.com> wrote:
> >>>>>>>
> >>>>>>> Yes, I did restart the broker each time to be sure. In the 
> >>>>>>> log,
> >>>> the "resource" part does not seem to be hot reloaded.
> >>>>>>>
> >>>>>>> -----Message d'origine-----
> >>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : 
> >>>>>>> mardi
> >>>>>>> 23 mars 2021 15:11 À : users@activemq.apache.org Objet : Re:
> >>>>>>> ActiveMQ Artemis - resource limits - max-queues issue
> >>>>>>>
> >>>>>>> I did not realize you set the limit at 500.
> >>>>>>>>> When I set a high value to <max-queues> like "500", I still
> >>>> have the
> >>>>>>>>> problem
> >>>>>>>
> >>>>>>> Did you restart the broker when you set the limit higher? I am 
> >>>>>>> not
> >>>> sure this value is reloaded upon change. it could be an 
> >>>> enhancement to reload it upon modification.
> >>>>>>>
> >>>>>>> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
> >>>> nicolas.casaux@soprasteria.com> wrote:
> >>>>>>>>
> >>>>>>>> 1) I already tried with another user, but will retry to be sure.
> >>>>>>>> 2) If you were right about the "admin" user, I shouldn't have 
> >>>>>>>> a
> >>>> problem when I set the value to 500. There's no way there are 500 
> >>>> queues already there when you create a new instance.
> >>>>>>>>
> >>>>>>>> -----Message d'origine-----
> >>>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : 
> >>>>>>>> mardi
> >>>> 23
> >>>>>>>> mars 2021 14:38 À : users@activemq.apache.org Objet : Re:
> >>>> ActiveMQ
> >>>>>>>> Artemis - resource limits - max-queues issue
> >>>>>>>>
> >>>>>>>> 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 <
> >>>> nicolas.casaux@soprasteria.com> wrote:
> >>>>>>>>>
> >>>>>>>>> I used the 2.17.0 version.
> >>>>>>>>> Thanks!
> >>>>>>>>>
> >>>>>>>>> -----Message d'origine-----
> >>>>>>>>> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi
> >>>>>>>>> 23
> >>>> mars
> >>>>>>>>> 2021 11:02 À : users@activemq.apache.org 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 <
> >>>> nicolas.casaux@soprasteria.com> 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 
> >>>>>>>>>> <jb...@nanthrax.net> Envoyé : mardi
> >>>> 23 mars
> >>>>>>>>>> 2021 10:57 À : users@activemq.apache.org 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 <
> >>>> nicolas.casaux@soprasteria.com> 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
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Clebert Suconic
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Clebert Suconic
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Clebert Suconic
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Clebert Suconic
> >>>>
> >>>
> >>>
> >>> --
> >>> Clebert Suconic
> >>>
> >>
> >>
> >> --
> >> Clebert Suconic
> >>
> >
> >
> > --
> > Clebert Suconic
>
>

--
Clebert Suconic

RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
I'll give it a try tonight and will let you know! :)
Thanks!

-----Message d'origine-----
De : Clebert Suconic <cl...@gmail.com> 
Envoyé : mercredi 24 mars 2021 13:52
À : users@activemq.apache.org
Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue

You can try a snapshot here:

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepository.apache.org%2Fcontent%2Frepositories%2Fsnapshots%2Forg%2Fapache%2Factivemq%2Fapache-artemis%2F2.18.0-SNAPSHOT%2Fapache-artemis-2.18.0-20210324.124753-53-bin.zip&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7C8215e498854f44b64bed08d8eec3a372%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521871318747570%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=6byqMKjom0PKDiZgkuj%2Frr%2BwlWKFfJP1WlvwpRAgEVQ%3D&amp;reserved=0

(this link will expire at some point)


don't use it in production though

On Wed, Mar 24, 2021 at 8:49 AM CASAUX Nicolas < nicolas.casaux@soprasteria.com> wrote:

> Hello Clebert,
>
> I'm not set-up to build it from master, but I can wait for an "official"
> release, no need to build specific things for me ! :) Thank you!
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mercredi 24 mars 
> 2021 05:50 À : users@activemq.apache.org Objet : Re: ActiveMQ Artemis 
> - resource limits - max-queues issue
>
> Hi Clebert,
>
> Oh, you were faster than me ;)
>
> Thanks !
>
> Regards
> JB
>
> > Le 23 mars 2021 à 22:43, Clebert Suconic <cl...@gmail.com> 
> > a
> écrit :
> >
> > PR sent:
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgi
> > th 
> > ub.com%2Fapache%2Factivemq-artemis%2Fpull%2F3516&amp;data=04%7C01%7C
> > ni 
> > colas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c15%7C
> > 8b 
> > 87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%7CUnknow
> > n% 
> > 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLC
> > JX 
> > VCI6Mn0%3D%7C2000&amp;sdata=5Cj%2FJsdkQYmTgaXg%2F%2BtvhyC2a%2BfwZMTr
> > Pe
> > %2FYVQ%2Fdhms%3D&amp;reserved=0
> >
> >
> >
> >
> > On Tue, Mar 23, 2021 at 5:29 PM Clebert Suconic 
> > <cl...@gmail.com>
> > wrote:
> >
> >> I'm finalizing the change.. it should be committed soon today or
> tomorrow.
> >>
> >> On Tue, Mar 23, 2021 at 5:28 PM Clebert Suconic 
> >> <cl...@gmail.com>
> >> wrote:
> >>
> >>> you ok to build one from master, or should I prepare one to be
> downloaded?
> >>>
> >>> On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas < 
> >>> nicolas.casaux@soprasteria.com> wrote:
> >>>
> >>>> Thanks Clebert!
> >>>> I'm glad to know that there is an actual bug! 🙂
> >>>> I'll be happy to test your snapshot version.
> >>>>
> >>>> ________________________________
> >>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 
> >>>> 23 mars 2021 20:14 À : users@activemq.apache.org 
> >>>> <us...@activemq.apache.org> Objet : Re: ActiveMQ Artemis - 
> >>>> resource limits - max-queues issue
> >>>>
> >>>>
> >>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2
> >>>> Fi 
> >>>> ssues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%
> >>>> 7C
> >>>> nicolas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c
> >>>> 15 
> >>>> %7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%
> >>>> 7C 
> >>>> Unknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
> >>>> 6I 
> >>>> k1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=sTFp90HBHBOnhUYW0O9y0OILGv
> >>>> 6k
> >>>> %2BtpUecDNqQ1TKNY%3D&amp;reserved=0
> >>>>
> >>>> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic 
> >>>> <cl...@gmail.com> wrote:
> >>>>>
> >>>>> It is a bug, there's a NullPointerException causing the issue...
> >>>>>
> >>>>> I'm sending a fix.... and I will provide you a snapshot to try 
> >>>>> it
> out.
> >>>>>
> >>>>> On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic 
> >>>>> <cl...@gmail.com> wrote:
> >>>>>>
> >>>>>> Ok, let me run a test then.. let me work on it for 1 or 2 hours...
> >>>> brb
> >>>>>>
> >>>>>> On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas 
> >>>>>> <ni...@soprasteria.com> wrote:
> >>>>>>>
> >>>>>>> Yes, I did restart the broker each time to be sure. In the 
> >>>>>>> log,
> >>>> the "resource" part does not seem to be hot reloaded.
> >>>>>>>
> >>>>>>> -----Message d'origine-----
> >>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : 
> >>>>>>> mardi
> >>>>>>> 23 mars 2021 15:11 À : users@activemq.apache.org Objet : Re:
> >>>>>>> ActiveMQ Artemis - resource limits - max-queues issue
> >>>>>>>
> >>>>>>> I did not realize you set the limit at 500.
> >>>>>>>>> When I set a high value to <max-queues> like "500", I still
> >>>> have the
> >>>>>>>>> problem
> >>>>>>>
> >>>>>>> Did you restart the broker when you set the limit higher? I am 
> >>>>>>> not
> >>>> sure this value is reloaded upon change. it could be an 
> >>>> enhancement to reload it upon modification.
> >>>>>>>
> >>>>>>> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
> >>>> nicolas.casaux@soprasteria.com> wrote:
> >>>>>>>>
> >>>>>>>> 1) I already tried with another user, but will retry to be sure.
> >>>>>>>> 2) If you were right about the "admin" user, I shouldn't have 
> >>>>>>>> a
> >>>> problem when I set the value to 500. There's no way there are 500 
> >>>> queues already there when you create a new instance.
> >>>>>>>>
> >>>>>>>> -----Message d'origine-----
> >>>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : 
> >>>>>>>> mardi
> >>>> 23
> >>>>>>>> mars 2021 14:38 À : users@activemq.apache.org Objet : Re:
> >>>> ActiveMQ
> >>>>>>>> Artemis - resource limits - max-queues issue
> >>>>>>>>
> >>>>>>>> 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 <
> >>>> nicolas.casaux@soprasteria.com> wrote:
> >>>>>>>>>
> >>>>>>>>> I used the 2.17.0 version.
> >>>>>>>>> Thanks!
> >>>>>>>>>
> >>>>>>>>> -----Message d'origine-----
> >>>>>>>>> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 
> >>>>>>>>> 23
> >>>> mars
> >>>>>>>>> 2021 11:02 À : users@activemq.apache.org 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 <
> >>>> nicolas.casaux@soprasteria.com> 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 
> >>>>>>>>>> <jb...@nanthrax.net> Envoyé : mardi
> >>>> 23 mars
> >>>>>>>>>> 2021 10:57 À : users@activemq.apache.org 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 <
> >>>> nicolas.casaux@soprasteria.com> 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
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Clebert Suconic
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Clebert Suconic
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Clebert Suconic
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Clebert Suconic
> >>>>
> >>>
> >>>
> >>> --
> >>> Clebert Suconic
> >>>
> >>
> >>
> >> --
> >> Clebert Suconic
> >>
> >
> >
> > --
> > Clebert Suconic
>
>

--
Clebert Suconic

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
You can try a snapshot here:

https://repository.apache.org/content/repositories/snapshots/org/apache/activemq/apache-artemis/2.18.0-SNAPSHOT/apache-artemis-2.18.0-20210324.124753-53-bin.zip

(this link will expire at some point)


don't use it in production though

On Wed, Mar 24, 2021 at 8:49 AM CASAUX Nicolas <
nicolas.casaux@soprasteria.com> wrote:

> Hello Clebert,
>
> I'm not set-up to build it from master, but I can wait for an "official"
> release, no need to build specific things for me ! :)
> Thank you!
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofre <jb...@nanthrax.net>
> Envoyé : mercredi 24 mars 2021 05:50
> À : users@activemq.apache.org
> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>
> Hi Clebert,
>
> Oh, you were faster than me ;)
>
> Thanks !
>
> Regards
> JB
>
> > Le 23 mars 2021 à 22:43, Clebert Suconic <cl...@gmail.com> a
> écrit :
> >
> > PR sent:
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> > ub.com%2Fapache%2Factivemq-artemis%2Fpull%2F3516&amp;data=04%7C01%7Cni
> > colas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c15%7C8b
> > 87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%7CUnknown%
> > 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
> > VCI6Mn0%3D%7C2000&amp;sdata=5Cj%2FJsdkQYmTgaXg%2F%2BtvhyC2a%2BfwZMTrPe
> > %2FYVQ%2Fdhms%3D&amp;reserved=0
> >
> >
> >
> >
> > On Tue, Mar 23, 2021 at 5:29 PM Clebert Suconic
> > <cl...@gmail.com>
> > wrote:
> >
> >> I'm finalizing the change.. it should be committed soon today or
> tomorrow.
> >>
> >> On Tue, Mar 23, 2021 at 5:28 PM Clebert Suconic
> >> <cl...@gmail.com>
> >> wrote:
> >>
> >>> you ok to build one from master, or should I prepare one to be
> downloaded?
> >>>
> >>> On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas <
> >>> nicolas.casaux@soprasteria.com> wrote:
> >>>
> >>>> Thanks Clebert!
> >>>> I'm glad to know that there is an actual bug! 🙂
> >>>> I'll be happy to test your snapshot version.
> >>>>
> >>>> ________________________________
> >>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23
> >>>> mars 2021 20:14 À : users@activemq.apache.org
> >>>> <us...@activemq.apache.org> Objet : Re: ActiveMQ Artemis - resource
> >>>> limits - max-queues issue
> >>>>
> >>>>
> >>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fi
> >>>> ssues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%7C
> >>>> nicolas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c15
> >>>> %7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%7C
> >>>> Unknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6I
> >>>> k1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=sTFp90HBHBOnhUYW0O9y0OILGv6k
> >>>> %2BtpUecDNqQ1TKNY%3D&amp;reserved=0
> >>>>
> >>>> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic
> >>>> <cl...@gmail.com> wrote:
> >>>>>
> >>>>> It is a bug, there's a NullPointerException causing the issue...
> >>>>>
> >>>>> I'm sending a fix.... and I will provide you a snapshot to try it
> out.
> >>>>>
> >>>>> On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
> >>>>> <cl...@gmail.com> wrote:
> >>>>>>
> >>>>>> Ok, let me run a test then.. let me work on it for 1 or 2 hours...
> >>>> brb
> >>>>>>
> >>>>>> On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
> >>>>>> <ni...@soprasteria.com> wrote:
> >>>>>>>
> >>>>>>> Yes, I did restart the broker each time to be sure. In the log,
> >>>> the "resource" part does not seem to be hot reloaded.
> >>>>>>>
> >>>>>>> -----Message d'origine-----
> >>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi
> >>>>>>> 23 mars 2021 15:11 À : users@activemq.apache.org Objet : Re:
> >>>>>>> ActiveMQ Artemis - resource limits - max-queues issue
> >>>>>>>
> >>>>>>> I did not realize you set the limit at 500.
> >>>>>>>>> When I set a high value to <max-queues> like "500", I still
> >>>> have the
> >>>>>>>>> problem
> >>>>>>>
> >>>>>>> Did you restart the broker when you set the limit higher? I am
> >>>>>>> not
> >>>> sure this value is reloaded upon change. it could be an enhancement
> >>>> to reload it upon modification.
> >>>>>>>
> >>>>>>> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
> >>>> nicolas.casaux@soprasteria.com> wrote:
> >>>>>>>>
> >>>>>>>> 1) I already tried with another user, but will retry to be sure.
> >>>>>>>> 2) If you were right about the "admin" user, I shouldn't have a
> >>>> problem when I set the value to 500. There's no way there are 500
> >>>> queues already there when you create a new instance.
> >>>>>>>>
> >>>>>>>> -----Message d'origine-----
> >>>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi
> >>>> 23
> >>>>>>>> mars 2021 14:38 À : users@activemq.apache.org Objet : Re:
> >>>> ActiveMQ
> >>>>>>>> Artemis - resource limits - max-queues issue
> >>>>>>>>
> >>>>>>>> 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 <
> >>>> nicolas.casaux@soprasteria.com> wrote:
> >>>>>>>>>
> >>>>>>>>> I used the 2.17.0 version.
> >>>>>>>>> Thanks!
> >>>>>>>>>
> >>>>>>>>> -----Message d'origine-----
> >>>>>>>>> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23
> >>>> mars
> >>>>>>>>> 2021 11:02 À : users@activemq.apache.org 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 <
> >>>> nicolas.casaux@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi
> >>>> 23 mars
> >>>>>>>>>> 2021 10:57 À : users@activemq.apache.org 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 <
> >>>> nicolas.casaux@soprasteria.com> 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
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Clebert Suconic
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Clebert Suconic
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Clebert Suconic
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Clebert Suconic
> >>>>
> >>>
> >>>
> >>> --
> >>> Clebert Suconic
> >>>
> >>
> >>
> >> --
> >> Clebert Suconic
> >>
> >
> >
> > --
> > Clebert Suconic
>
>

-- 
Clebert Suconic

RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
Hello Clebert,

I'm not set-up to build it from master, but I can wait for an "official" release, no need to build specific things for me ! :)
Thank you!

-----Message d'origine-----
De : Jean-Baptiste Onofre <jb...@nanthrax.net> 
Envoyé : mercredi 24 mars 2021 05:50
À : users@activemq.apache.org
Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue

Hi Clebert,

Oh, you were faster than me ;)

Thanks !

Regards
JB

> Le 23 mars 2021 à 22:43, Clebert Suconic <cl...@gmail.com> a écrit :
> 
> PR sent: 
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> ub.com%2Fapache%2Factivemq-artemis%2Fpull%2F3516&amp;data=04%7C01%7Cni
> colas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c15%7C8b
> 87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%7CUnknown%
> 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
> VCI6Mn0%3D%7C2000&amp;sdata=5Cj%2FJsdkQYmTgaXg%2F%2BtvhyC2a%2BfwZMTrPe
> %2FYVQ%2Fdhms%3D&amp;reserved=0
> 
> 
> 
> 
> On Tue, Mar 23, 2021 at 5:29 PM Clebert Suconic 
> <cl...@gmail.com>
> wrote:
> 
>> I'm finalizing the change.. it should be committed soon today or tomorrow.
>> 
>> On Tue, Mar 23, 2021 at 5:28 PM Clebert Suconic 
>> <cl...@gmail.com>
>> wrote:
>> 
>>> you ok to build one from master, or should I prepare one to be downloaded?
>>> 
>>> On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas < 
>>> nicolas.casaux@soprasteria.com> wrote:
>>> 
>>>> Thanks Clebert!
>>>> I'm glad to know that there is an actual bug! 🙂
>>>> I'll be happy to test your snapshot version.
>>>> 
>>>> ________________________________
>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23 
>>>> mars 2021 20:14 À : users@activemq.apache.org 
>>>> <us...@activemq.apache.org> Objet : Re: ActiveMQ Artemis - resource 
>>>> limits - max-queues issue
>>>> 
>>>> 
>>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fi
>>>> ssues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%7C
>>>> nicolas.casaux%40soprasteria.com%7Ce8e107cb36ab47e1361808d8ee805c15
>>>> %7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521582777045009%7C
>>>> Unknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6I
>>>> k1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=sTFp90HBHBOnhUYW0O9y0OILGv6k
>>>> %2BtpUecDNqQ1TKNY%3D&amp;reserved=0
>>>> 
>>>> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic 
>>>> <cl...@gmail.com> wrote:
>>>>> 
>>>>> It is a bug, there's a NullPointerException causing the issue...
>>>>> 
>>>>> I'm sending a fix.... and I will provide you a snapshot to try it out.
>>>>> 
>>>>> On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic 
>>>>> <cl...@gmail.com> wrote:
>>>>>> 
>>>>>> Ok, let me run a test then.. let me work on it for 1 or 2 hours...
>>>> brb
>>>>>> 
>>>>>> On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas 
>>>>>> <ni...@soprasteria.com> wrote:
>>>>>>> 
>>>>>>> Yes, I did restart the broker each time to be sure. In the log,
>>>> the "resource" part does not seem to be hot reloaded.
>>>>>>> 
>>>>>>> -----Message d'origine-----
>>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 
>>>>>>> 23 mars 2021 15:11 À : users@activemq.apache.org Objet : Re: 
>>>>>>> ActiveMQ Artemis - resource limits - max-queues issue
>>>>>>> 
>>>>>>> I did not realize you set the limit at 500.
>>>>>>>>> When I set a high value to <max-queues> like "500", I still
>>>> have the
>>>>>>>>> problem
>>>>>>> 
>>>>>>> Did you restart the broker when you set the limit higher? I am 
>>>>>>> not
>>>> sure this value is reloaded upon change. it could be an enhancement 
>>>> to reload it upon modification.
>>>>>>> 
>>>>>>> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
>>>> nicolas.casaux@soprasteria.com> wrote:
>>>>>>>> 
>>>>>>>> 1) I already tried with another user, but will retry to be sure.
>>>>>>>> 2) If you were right about the "admin" user, I shouldn't have a
>>>> problem when I set the value to 500. There's no way there are 500 
>>>> queues already there when you create a new instance.
>>>>>>>> 
>>>>>>>> -----Message d'origine-----
>>>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi
>>>> 23
>>>>>>>> mars 2021 14:38 À : users@activemq.apache.org Objet : Re:
>>>> ActiveMQ
>>>>>>>> Artemis - resource limits - max-queues issue
>>>>>>>> 
>>>>>>>> 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 <
>>>> nicolas.casaux@soprasteria.com> wrote:
>>>>>>>>> 
>>>>>>>>> I used the 2.17.0 version.
>>>>>>>>> Thanks!
>>>>>>>>> 
>>>>>>>>> -----Message d'origine-----
>>>>>>>>> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23
>>>> mars
>>>>>>>>> 2021 11:02 À : users@activemq.apache.org 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 <
>>>> nicolas.casaux@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi
>>>> 23 mars
>>>>>>>>>> 2021 10:57 À : users@activemq.apache.org 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 <
>>>> nicolas.casaux@soprasteria.com> 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
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Clebert Suconic
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Clebert Suconic
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Clebert Suconic
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Clebert Suconic
>>>> 
>>> 
>>> 
>>> --
>>> Clebert Suconic
>>> 
>> 
>> 
>> --
>> Clebert Suconic
>> 
> 
> 
> --
> Clebert Suconic


Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Clebert,

Oh, you were faster than me ;)

Thanks !

Regards
JB

> Le 23 mars 2021 à 22:43, Clebert Suconic <cl...@gmail.com> a écrit :
> 
> PR sent: https://github.com/apache/activemq-artemis/pull/3516
> 
> 
> 
> 
> On Tue, Mar 23, 2021 at 5:29 PM Clebert Suconic <cl...@gmail.com>
> wrote:
> 
>> I'm finalizing the change.. it should be committed soon today or tomorrow.
>> 
>> On Tue, Mar 23, 2021 at 5:28 PM Clebert Suconic <cl...@gmail.com>
>> wrote:
>> 
>>> you ok to build one from master, or should I prepare one to be downloaded?
>>> 
>>> On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas <
>>> nicolas.casaux@soprasteria.com> wrote:
>>> 
>>>> Thanks Clebert!
>>>> I'm glad to know that there is an actual bug! 🙂
>>>> I'll be happy to test your snapshot version.
>>>> 
>>>> ________________________________
>>>> De : Clebert Suconic <cl...@gmail.com>
>>>> Envoyé : mardi 23 mars 2021 20:14
>>>> À : users@activemq.apache.org <us...@activemq.apache.org>
>>>> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>>>> 
>>>> 
>>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Caf3adf19b8514aab005008d8ee2ff0e6%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521236968291490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dN%2F%2BeuX4yapWEA9S7UFD60otnoI%2Bn81yxt3c%2BABh0VE%3D&amp;reserved=0
>>>> 
>>>> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic
>>>> <cl...@gmail.com> wrote:
>>>>> 
>>>>> It is a bug, there's a NullPointerException causing the issue...
>>>>> 
>>>>> I'm sending a fix.... and I will provide you a snapshot to try it out.
>>>>> 
>>>>> On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
>>>>> <cl...@gmail.com> wrote:
>>>>>> 
>>>>>> Ok, let me run a test then.. let me work on it for 1 or 2 hours...
>>>> brb
>>>>>> 
>>>>>> On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
>>>>>> <ni...@soprasteria.com> wrote:
>>>>>>> 
>>>>>>> Yes, I did restart the broker each time to be sure. In the log,
>>>> the "resource" part does not seem to be hot reloaded.
>>>>>>> 
>>>>>>> -----Message d'origine-----
>>>>>>> De : Clebert Suconic <cl...@gmail.com>
>>>>>>> Envoyé : mardi 23 mars 2021 15:11
>>>>>>> À : users@activemq.apache.org
>>>>>>> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>>>>>>> 
>>>>>>> I did not realize you set the limit at 500.
>>>>>>>>> When I set a high value to <max-queues> like "500", I still
>>>> have the
>>>>>>>>> problem
>>>>>>> 
>>>>>>> Did you restart the broker when you set the limit higher? I am not
>>>> sure this value is reloaded upon change. it could be an enhancement to
>>>> reload it upon modification.
>>>>>>> 
>>>>>>> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
>>>> nicolas.casaux@soprasteria.com> wrote:
>>>>>>>> 
>>>>>>>> 1) I already tried with another user, but will retry to be sure.
>>>>>>>> 2) If you were right about the "admin" user, I shouldn't have a
>>>> problem when I set the value to 500. There's no way there are 500 queues
>>>> already there when you create a new instance.
>>>>>>>> 
>>>>>>>> -----Message d'origine-----
>>>>>>>> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi
>>>> 23
>>>>>>>> mars 2021 14:38 À : users@activemq.apache.org Objet : Re:
>>>> ActiveMQ
>>>>>>>> Artemis - resource limits - max-queues issue
>>>>>>>> 
>>>>>>>> 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 <
>>>> nicolas.casaux@soprasteria.com> wrote:
>>>>>>>>> 
>>>>>>>>> I used the 2.17.0 version.
>>>>>>>>> Thanks!
>>>>>>>>> 
>>>>>>>>> -----Message d'origine-----
>>>>>>>>> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23
>>>> mars
>>>>>>>>> 2021 11:02 À : users@activemq.apache.org 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 <
>>>> nicolas.casaux@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi
>>>> 23 mars
>>>>>>>>>> 2021 10:57 À : users@activemq.apache.org 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 <
>>>> nicolas.casaux@soprasteria.com> 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
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Clebert Suconic
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Clebert Suconic
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Clebert Suconic
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Clebert Suconic
>>>> 
>>> 
>>> 
>>> --
>>> Clebert Suconic
>>> 
>> 
>> 
>> --
>> Clebert Suconic
>> 
> 
> 
> -- 
> Clebert Suconic


Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
PR sent: https://github.com/apache/activemq-artemis/pull/3516




On Tue, Mar 23, 2021 at 5:29 PM Clebert Suconic <cl...@gmail.com>
wrote:

> I'm finalizing the change.. it should be committed soon today or tomorrow.
>
> On Tue, Mar 23, 2021 at 5:28 PM Clebert Suconic <cl...@gmail.com>
> wrote:
>
>> you ok to build one from master, or should I prepare one to be downloaded?
>>
>> On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas <
>> nicolas.casaux@soprasteria.com> wrote:
>>
>>> Thanks Clebert!
>>> I'm glad to know that there is an actual bug! 🙂
>>> I'll be happy to test your snapshot version.
>>>
>>> ________________________________
>>> De : Clebert Suconic <cl...@gmail.com>
>>> Envoyé : mardi 23 mars 2021 20:14
>>> À : users@activemq.apache.org <us...@activemq.apache.org>
>>> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>>>
>>>
>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Caf3adf19b8514aab005008d8ee2ff0e6%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521236968291490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dN%2F%2BeuX4yapWEA9S7UFD60otnoI%2Bn81yxt3c%2BABh0VE%3D&amp;reserved=0
>>>
>>> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic
>>> <cl...@gmail.com> wrote:
>>> >
>>> > It is a bug, there's a NullPointerException causing the issue...
>>> >
>>> > I'm sending a fix.... and I will provide you a snapshot to try it out.
>>> >
>>> > On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
>>> > <cl...@gmail.com> wrote:
>>> > >
>>> > > Ok, let me run a test then.. let me work on it for 1 or 2 hours...
>>> brb
>>> > >
>>> > > On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
>>> > > <ni...@soprasteria.com> wrote:
>>> > > >
>>> > > > Yes, I did restart the broker each time to be sure. In the log,
>>> the "resource" part does not seem to be hot reloaded.
>>> > > >
>>> > > > -----Message d'origine-----
>>> > > > De : Clebert Suconic <cl...@gmail.com>
>>> > > > Envoyé : mardi 23 mars 2021 15:11
>>> > > > À : users@activemq.apache.org
>>> > > > Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>>> > > >
>>> > > > I did not realize you set the limit at 500.
>>> > > > >>  When I set a high value to <max-queues> like "500", I still
>>> have the
>>> > > > >> problem
>>> > > >
>>> > > > Did you restart the broker when you set the limit higher? I am not
>>> sure this value is reloaded upon change. it could be an enhancement to
>>> reload it upon modification.
>>> > > >
>>> > > > On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
>>> nicolas.casaux@soprasteria.com> wrote:
>>> > > > >
>>> > > > > 1) I already tried with another user, but will retry to be sure.
>>> > > > > 2) If you were right about the "admin" user, I shouldn't have a
>>> problem when I set the value to 500. There's no way there are 500 queues
>>> already there when you create a new instance.
>>> > > > >
>>> > > > > -----Message d'origine-----
>>> > > > > De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi
>>> 23
>>> > > > > mars 2021 14:38 À : users@activemq.apache.org Objet : Re:
>>> ActiveMQ
>>> > > > > Artemis - resource limits - max-queues issue
>>> > > > >
>>> > > > > 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 <
>>> nicolas.casaux@soprasteria.com> wrote:
>>> > > > > >
>>> > > > > > I used the 2.17.0 version.
>>> > > > > > Thanks!
>>> > > > > >
>>> > > > > > -----Message d'origine-----
>>> > > > > > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23
>>> mars
>>> > > > > > 2021 11:02 À : users@activemq.apache.org 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 <
>>> nicolas.casaux@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi
>>> 23 mars
>>> > > > > > > 2021 10:57 À : users@activemq.apache.org 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 <
>>> nicolas.casaux@soprasteria.com> 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
>>> > > >
>>> > > >
>>> > > >
>>> > > > --
>>> > > > Clebert Suconic
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > > Clebert Suconic
>>> >
>>> >
>>> >
>>> > --
>>> > Clebert Suconic
>>>
>>>
>>>
>>> --
>>> Clebert Suconic
>>>
>>
>>
>> --
>> Clebert Suconic
>>
>
>
> --
> Clebert Suconic
>


-- 
Clebert Suconic

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
I'm finalizing the change.. it should be committed soon today or tomorrow.

On Tue, Mar 23, 2021 at 5:28 PM Clebert Suconic <cl...@gmail.com>
wrote:

> you ok to build one from master, or should I prepare one to be downloaded?
>
> On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas <
> nicolas.casaux@soprasteria.com> wrote:
>
>> Thanks Clebert!
>> I'm glad to know that there is an actual bug! 🙂
>> I'll be happy to test your snapshot version.
>>
>> ________________________________
>> De : Clebert Suconic <cl...@gmail.com>
>> Envoyé : mardi 23 mars 2021 20:14
>> À : users@activemq.apache.org <us...@activemq.apache.org>
>> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>>
>>
>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Caf3adf19b8514aab005008d8ee2ff0e6%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521236968291490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dN%2F%2BeuX4yapWEA9S7UFD60otnoI%2Bn81yxt3c%2BABh0VE%3D&amp;reserved=0
>>
>> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic
>> <cl...@gmail.com> wrote:
>> >
>> > It is a bug, there's a NullPointerException causing the issue...
>> >
>> > I'm sending a fix.... and I will provide you a snapshot to try it out.
>> >
>> > On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
>> > <cl...@gmail.com> wrote:
>> > >
>> > > Ok, let me run a test then.. let me work on it for 1 or 2 hours... brb
>> > >
>> > > On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
>> > > <ni...@soprasteria.com> wrote:
>> > > >
>> > > > Yes, I did restart the broker each time to be sure. In the log, the
>> "resource" part does not seem to be hot reloaded.
>> > > >
>> > > > -----Message d'origine-----
>> > > > De : Clebert Suconic <cl...@gmail.com>
>> > > > Envoyé : mardi 23 mars 2021 15:11
>> > > > À : users@activemq.apache.org
>> > > > Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>> > > >
>> > > > I did not realize you set the limit at 500.
>> > > > >>  When I set a high value to <max-queues> like "500", I still
>> have the
>> > > > >> problem
>> > > >
>> > > > Did you restart the broker when you set the limit higher? I am not
>> sure this value is reloaded upon change. it could be an enhancement to
>> reload it upon modification.
>> > > >
>> > > > On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
>> nicolas.casaux@soprasteria.com> wrote:
>> > > > >
>> > > > > 1) I already tried with another user, but will retry to be sure.
>> > > > > 2) If you were right about the "admin" user, I shouldn't have a
>> problem when I set the value to 500. There's no way there are 500 queues
>> already there when you create a new instance.
>> > > > >
>> > > > > -----Message d'origine-----
>> > > > > De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi
>> 23
>> > > > > mars 2021 14:38 À : users@activemq.apache.org Objet : Re:
>> ActiveMQ
>> > > > > Artemis - resource limits - max-queues issue
>> > > > >
>> > > > > 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 <
>> nicolas.casaux@soprasteria.com> wrote:
>> > > > > >
>> > > > > > I used the 2.17.0 version.
>> > > > > > Thanks!
>> > > > > >
>> > > > > > -----Message d'origine-----
>> > > > > > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23
>> mars
>> > > > > > 2021 11:02 À : users@activemq.apache.org 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 <
>> nicolas.casaux@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi
>> 23 mars
>> > > > > > > 2021 10:57 À : users@activemq.apache.org 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 <
>> nicolas.casaux@soprasteria.com> 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
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Clebert Suconic
>> > >
>> > >
>> > >
>> > > --
>> > > Clebert Suconic
>> >
>> >
>> >
>> > --
>> > Clebert Suconic
>>
>>
>>
>> --
>> Clebert Suconic
>>
>
>
> --
> Clebert Suconic
>


-- 
Clebert Suconic

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
you ok to build one from master, or should I prepare one to be downloaded?

On Tue, Mar 23, 2021 at 4:42 PM CASAUX Nicolas <
nicolas.casaux@soprasteria.com> wrote:

> Thanks Clebert!
> I'm glad to know that there is an actual bug! 🙂
> I'll be happy to test your snapshot version.
>
> ________________________________
> De : Clebert Suconic <cl...@gmail.com>
> Envoyé : mardi 23 mars 2021 20:14
> À : users@activemq.apache.org <us...@activemq.apache.org>
> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>
>
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Caf3adf19b8514aab005008d8ee2ff0e6%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521236968291490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dN%2F%2BeuX4yapWEA9S7UFD60otnoI%2Bn81yxt3c%2BABh0VE%3D&amp;reserved=0
>
> On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic
> <cl...@gmail.com> wrote:
> >
> > It is a bug, there's a NullPointerException causing the issue...
> >
> > I'm sending a fix.... and I will provide you a snapshot to try it out.
> >
> > On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
> > <cl...@gmail.com> wrote:
> > >
> > > Ok, let me run a test then.. let me work on it for 1 or 2 hours... brb
> > >
> > > On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
> > > <ni...@soprasteria.com> wrote:
> > > >
> > > > Yes, I did restart the broker each time to be sure. In the log, the
> "resource" part does not seem to be hot reloaded.
> > > >
> > > > -----Message d'origine-----
> > > > De : Clebert Suconic <cl...@gmail.com>
> > > > Envoyé : mardi 23 mars 2021 15:11
> > > > À : users@activemq.apache.org
> > > > Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
> > > >
> > > > I did not realize you set the limit at 500.
> > > > >>  When I set a high value to <max-queues> like "500", I still have
> the
> > > > >> problem
> > > >
> > > > Did you restart the broker when you set the limit higher? I am not
> sure this value is reloaded upon change. it could be an enhancement to
> reload it upon modification.
> > > >
> > > > On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <
> nicolas.casaux@soprasteria.com> wrote:
> > > > >
> > > > > 1) I already tried with another user, but will retry to be sure.
> > > > > 2) If you were right about the "admin" user, I shouldn't have a
> problem when I set the value to 500. There's no way there are 500 queues
> already there when you create a new instance.
> > > > >
> > > > > -----Message d'origine-----
> > > > > De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23
> > > > > mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ
> > > > > Artemis - resource limits - max-queues issue
> > > > >
> > > > > 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 <
> nicolas.casaux@soprasteria.com> wrote:
> > > > > >
> > > > > > I used the 2.17.0 version.
> > > > > > Thanks!
> > > > > >
> > > > > > -----Message d'origine-----
> > > > > > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23
> mars
> > > > > > 2021 11:02 À : users@activemq.apache.org 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 <
> nicolas.casaux@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23
> mars
> > > > > > > 2021 10:57 À : users@activemq.apache.org 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 <
> nicolas.casaux@soprasteria.com> 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
> > > >
> > > >
> > > >
> > > > --
> > > > Clebert Suconic
> > >
> > >
> > >
> > > --
> > > Clebert Suconic
> >
> >
> >
> > --
> > Clebert Suconic
>
>
>
> --
> Clebert Suconic
>


-- 
Clebert Suconic

RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
Thanks Clebert!
I'm glad to know that there is an actual bug! 🙂
I'll be happy to test your snapshot version.

________________________________
De : Clebert Suconic <cl...@gmail.com>
Envoyé : mardi 23 mars 2021 20:14
À : users@activemq.apache.org <us...@activemq.apache.org>
Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3204&amp;data=04%7C01%7Cnicolas.casaux%40soprasteria.com%7Caf3adf19b8514aab005008d8ee2ff0e6%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C637521236968291490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dN%2F%2BeuX4yapWEA9S7UFD60otnoI%2Bn81yxt3c%2BABh0VE%3D&amp;reserved=0

On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic
<cl...@gmail.com> wrote:
>
> It is a bug, there's a NullPointerException causing the issue...
>
> I'm sending a fix.... and I will provide you a snapshot to try it out.
>
> On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
> <cl...@gmail.com> wrote:
> >
> > Ok, let me run a test then.. let me work on it for 1 or 2 hours... brb
> >
> > On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
> > <ni...@soprasteria.com> wrote:
> > >
> > > Yes, I did restart the broker each time to be sure. In the log, the "resource" part does not seem to be hot reloaded.
> > >
> > > -----Message d'origine-----
> > > De : Clebert Suconic <cl...@gmail.com>
> > > Envoyé : mardi 23 mars 2021 15:11
> > > À : users@activemq.apache.org
> > > Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
> > >
> > > I did not realize you set the limit at 500.
> > > >>  When I set a high value to <max-queues> like "500", I still have the
> > > >> problem
> > >
> > > Did you restart the broker when you set the limit higher? I am not sure this value is reloaded upon change. it could be an enhancement to reload it upon modification.
> > >
> > > On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <ni...@soprasteria.com> wrote:
> > > >
> > > > 1) I already tried with another user, but will retry to be sure.
> > > > 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
> > > >
> > > > -----Message d'origine-----
> > > > De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23
> > > > mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ
> > > > Artemis - resource limits - max-queues issue
> > > >
> > > > 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 <ni...@soprasteria.com> wrote:
> > > > >
> > > > > I used the 2.17.0 version.
> > > > > Thanks!
> > > > >
> > > > > -----Message d'origine-----
> > > > > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > > > 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > > > > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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
> > >
> > >
> > >
> > > --
> > > Clebert Suconic
> >
> >
> >
> > --
> > Clebert Suconic
>
>
>
> --
> Clebert Suconic



--
Clebert Suconic

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
https://issues.apache.org/jira/browse/ARTEMIS-3204

On Tue, Mar 23, 2021 at 3:07 PM Clebert Suconic
<cl...@gmail.com> wrote:
>
> It is a bug, there's a NullPointerException causing the issue...
>
> I'm sending a fix.... and I will provide you a snapshot to try it out.
>
> On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
> <cl...@gmail.com> wrote:
> >
> > Ok, let me run a test then.. let me work on it for 1 or 2 hours... brb
> >
> > On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
> > <ni...@soprasteria.com> wrote:
> > >
> > > Yes, I did restart the broker each time to be sure. In the log, the "resource" part does not seem to be hot reloaded.
> > >
> > > -----Message d'origine-----
> > > De : Clebert Suconic <cl...@gmail.com>
> > > Envoyé : mardi 23 mars 2021 15:11
> > > À : users@activemq.apache.org
> > > Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
> > >
> > > I did not realize you set the limit at 500.
> > > >>  When I set a high value to <max-queues> like "500", I still have the
> > > >> problem
> > >
> > > Did you restart the broker when you set the limit higher? I am not sure this value is reloaded upon change. it could be an enhancement to reload it upon modification.
> > >
> > > On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <ni...@soprasteria.com> wrote:
> > > >
> > > > 1) I already tried with another user, but will retry to be sure.
> > > > 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
> > > >
> > > > -----Message d'origine-----
> > > > De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23
> > > > mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ
> > > > Artemis - resource limits - max-queues issue
> > > >
> > > > 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 <ni...@soprasteria.com> wrote:
> > > > >
> > > > > I used the 2.17.0 version.
> > > > > Thanks!
> > > > >
> > > > > -----Message d'origine-----
> > > > > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > > > 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > > > > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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
> > >
> > >
> > >
> > > --
> > > Clebert Suconic
> >
> >
> >
> > --
> > Clebert Suconic
>
>
>
> --
> Clebert Suconic



-- 
Clebert Suconic

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
It is a bug, there's a NullPointerException causing the issue...

I'm sending a fix.... and I will provide you a snapshot to try it out.

On Tue, Mar 23, 2021 at 10:14 AM Clebert Suconic
<cl...@gmail.com> wrote:
>
> Ok, let me run a test then.. let me work on it for 1 or 2 hours... brb
>
> On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
> <ni...@soprasteria.com> wrote:
> >
> > Yes, I did restart the broker each time to be sure. In the log, the "resource" part does not seem to be hot reloaded.
> >
> > -----Message d'origine-----
> > De : Clebert Suconic <cl...@gmail.com>
> > Envoyé : mardi 23 mars 2021 15:11
> > À : users@activemq.apache.org
> > Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
> >
> > I did not realize you set the limit at 500.
> > >>  When I set a high value to <max-queues> like "500", I still have the
> > >> problem
> >
> > Did you restart the broker when you set the limit higher? I am not sure this value is reloaded upon change. it could be an enhancement to reload it upon modification.
> >
> > On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <ni...@soprasteria.com> wrote:
> > >
> > > 1) I already tried with another user, but will retry to be sure.
> > > 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
> > >
> > > -----Message d'origine-----
> > > De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23
> > > mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ
> > > Artemis - resource limits - max-queues issue
> > >
> > > 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 <ni...@soprasteria.com> wrote:
> > > >
> > > > I used the 2.17.0 version.
> > > > Thanks!
> > > >
> > > > -----Message d'origine-----
> > > > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > > 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > > > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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
> >
> >
> >
> > --
> > Clebert Suconic
>
>
>
> --
> Clebert Suconic



-- 
Clebert Suconic

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
Ok, let me run a test then.. let me work on it for 1 or 2 hours... brb

On Tue, Mar 23, 2021 at 10:13 AM CASAUX Nicolas
<ni...@soprasteria.com> wrote:
>
> Yes, I did restart the broker each time to be sure. In the log, the "resource" part does not seem to be hot reloaded.
>
> -----Message d'origine-----
> De : Clebert Suconic <cl...@gmail.com>
> Envoyé : mardi 23 mars 2021 15:11
> À : users@activemq.apache.org
> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>
> I did not realize you set the limit at 500.
> >>  When I set a high value to <max-queues> like "500", I still have the
> >> problem
>
> Did you restart the broker when you set the limit higher? I am not sure this value is reloaded upon change. it could be an enhancement to reload it upon modification.
>
> On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <ni...@soprasteria.com> wrote:
> >
> > 1) I already tried with another user, but will retry to be sure.
> > 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
> >
> > -----Message d'origine-----
> > De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23
> > mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ
> > Artemis - resource limits - max-queues issue
> >
> > 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 <ni...@soprasteria.com> wrote:
> > >
> > > I used the 2.17.0 version.
> > > Thanks!
> > >
> > > -----Message d'origine-----
> > > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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
>
>
>
> --
> Clebert Suconic



-- 
Clebert Suconic

RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
Yes, I did restart the broker each time to be sure. In the log, the "resource" part does not seem to be hot reloaded.

-----Message d'origine-----
De : Clebert Suconic <cl...@gmail.com> 
Envoyé : mardi 23 mars 2021 15:11
À : users@activemq.apache.org
Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue

I did not realize you set the limit at 500.
>>  When I set a high value to <max-queues> like "500", I still have the 
>> problem

Did you restart the broker when you set the limit higher? I am not sure this value is reloaded upon change. it could be an enhancement to reload it upon modification.

On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas <ni...@soprasteria.com> wrote:
>
> 1) I already tried with another user, but will retry to be sure.
> 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
>
> -----Message d'origine-----
> De : Clebert Suconic <cl...@gmail.com> Envoyé : mardi 23 
> mars 2021 14:38 À : users@activemq.apache.org Objet : Re: ActiveMQ 
> Artemis - resource limits - max-queues issue
>
> 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 <ni...@soprasteria.com> wrote:
> >
> > I used the 2.17.0 version.
> > Thanks!
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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



--
Clebert Suconic

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
I did not realize you set the limit at 500.
>>  When I set a high value to <max-queues> like "500", I still have the problem

Did you restart the broker when you set the limit higher? I am not
sure this value is reloaded upon change. it could be an enhancement to
reload it upon modification.

On Tue, Mar 23, 2021 at 9:43 AM CASAUX Nicolas
<ni...@soprasteria.com> wrote:
>
> 1) I already tried with another user, but will retry to be sure.
> 2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.
>
> -----Message d'origine-----
> De : Clebert Suconic <cl...@gmail.com>
> Envoyé : mardi 23 mars 2021 14:38
> À : users@activemq.apache.org
> Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue
>
> 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 <ni...@soprasteria.com> wrote:
> >
> > I used the 2.17.0 version.
> > Thanks!
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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



-- 
Clebert Suconic

RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
1) I already tried with another user, but will retry to be sure.
2) If you were right about the "admin" user, I shouldn't have a problem when I set the value to 500. There's no way there are 500 queues already there when you create a new instance.

-----Message d'origine-----
De : Clebert Suconic <cl...@gmail.com> 
Envoyé : mardi 23 mars 2021 14:38
À : users@activemq.apache.org
Objet : Re: ActiveMQ Artemis - resource limits - max-queues issue

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 <ni...@soprasteria.com> wrote:
>
> I used the 2.17.0 version.
> Thanks!
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofre <jb...@nanthrax.net> Envoyé : mardi 23 mars 
> 2021 11:02 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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

Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Clebert Suconic <cl...@gmail.com>.
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
<ni...@soprasteria.com> wrote:
>
> I used the 2.17.0 version.
> Thanks!
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofre <jb...@nanthrax.net>
> Envoyé : mardi 23 mars 2021 11:02
> À : users@activemq.apache.org
> 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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars
> > 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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

RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
I used the 2.17.0 version.
Thanks!

-----Message d'origine-----
De : Jean-Baptiste Onofre <jb...@nanthrax.net> 
Envoyé : mardi 23 mars 2021 11:02
À : users@activemq.apache.org
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 <ni...@soprasteria.com> 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 <jb...@nanthrax.net> Envoyé : mardi 23 mars 
> 2021 10:57 À : users@activemq.apache.org 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 <ni...@soprasteria.com> 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
>> 
> 


Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hmmm, weird.

Let me try to reproduce. What’s your Artemis version ?

Regards
JB

> Le 23 mars 2021 à 11:00, CASAUX Nicolas <ni...@soprasteria.com> 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 <jb...@nanthrax.net> 
> Envoyé : mardi 23 mars 2021 10:57
> À : users@activemq.apache.org
> 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 <ni...@soprasteria.com> 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
>> 
> 


RE: ActiveMQ Artemis - resource limits - max-queues issue

Posted by CASAUX Nicolas <ni...@soprasteria.com>.
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 <jb...@nanthrax.net> 
Envoyé : mardi 23 mars 2021 10:57
À : users@activemq.apache.org
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 <ni...@soprasteria.com> 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
> 


Re: ActiveMQ Artemis - resource limits - max-queues issue

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
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 <ni...@soprasteria.com> 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
>