You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Zhemzhitsky Sergey <Se...@troika.ru> on 2011/09/19 15:49:14 UTC

NMR Thread Pool

Hi all,

I'm wondering whether it is possible to tune the NMR thread pool in camel?
The reason is I would like to configure nmr consumer to use, for example, 20 threads.
Is it possible to achieve?

Best Regards,
Sergey Zhemzhitsky

_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  


RE: NMR Thread Pool

Posted by Zhemzhitsky Sergey <Se...@troika.ru>.
Łukasz, 

I don't like to use JBI in favor of Camel. I think that consumer thread pool configuration by means of org.apache.servicemix.nmr.cfg will fit my needs.

Best Regards,
Sergey Zhemzhitsky


-----Original Message-----
From: Łukasz Dywicki [mailto:luke@code-house.org] 
Sent: Tuesday, September 20, 2011 6:37 PM
To: users@camel.apache.org
Subject: Re: NMR Thread Pool

Sergey,
If you will use JBI component (in fact covered NMR with forced XML payload) you can specify service/endpoint name. Maybe this will let you to configure thread pool?

Regards,
Lukasz

> Hi Łukasz,
> 
> Thanks a lot. 
> 
> It seems that it is possible to configure nmr-consumer-specific thread pools by means of the org.apache.servicemix.nmr.cfg file.
> 
> For example to configure thread pool for the consumer that consumes messages from MyEndpoint it is necessary to add the following settings into the org.apache.servicemix.nmr.cfg:
> 
> nmr.endpoint.MyEndpoint.corePoolSize=20
> nmr.endpoint.MyEndpoint.maximumPoolSize=20
> nmr.endpoint.MyEndpoint.queueSize=4096
> nmr.endpoint.MyEndpoint.allowCoreThreadTimeOut=true
> nmr.endpoint.MyEndpoint.keepAliveTime=60000
> 
> Unfortunately it's hardly possible to configure endpoint-producer-specific thread pools, because endpoint names for nmr-producers look like this
> org.apache.servicemix.camel.nmr.ServiceMixProducer-org.apache.servicemix.nmr.core.util.UuidGenerator@daece7
> 
> 
> Best Regards,
> Sergey Zhemzhitsky
> 
> 
> -----Original Message-----
> From: Łukasz Dywicki [mailto:luke@code-house.org] 
> Sent: Monday, September 19, 2011 8:55 PM
> To: users@camel.apache.org
> Subject: Re: NMR Thread Pool
> 
> Hey Sergey,
> As far I know it is possible for JBI components by setting particular thread pool properties. For example servicemix-cxf-se by modifing org.apache.servicemix.components.cxfse configuration. But it is not possible for camel-nmr.
> 
> Best regards,
> Lukasz
> 
>> Hi all,
>> 
>> I'm wondering whether it is possible to tune the NMR thread pool in camel?
>> The reason is I would like to configure nmr consumer to use, for example, 20 threads.
>> Is it possible to achieve?
>> 
>> Best Regards,
>> Sergey Zhemzhitsky
>> 
>> _______________________________________________________
>> 
>> The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
>> If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  
>> 
> 
> 
> _______________________________________________________
> 
> The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
> If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  
> 
> 


_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  



Re: NMR Thread Pool

Posted by Łukasz Dywicki <lu...@code-house.org>.
Sergey,
If you will use JBI component (in fact covered NMR with forced XML payload) you can specify service/endpoint name. Maybe this will let you to configure thread pool?

Regards,
Lukasz

> Hi Łukasz,
> 
> Thanks a lot. 
> 
> It seems that it is possible to configure nmr-consumer-specific thread pools by means of the org.apache.servicemix.nmr.cfg file.
> 
> For example to configure thread pool for the consumer that consumes messages from MyEndpoint it is necessary to add the following settings into the org.apache.servicemix.nmr.cfg:
> 
> nmr.endpoint.MyEndpoint.corePoolSize=20
> nmr.endpoint.MyEndpoint.maximumPoolSize=20
> nmr.endpoint.MyEndpoint.queueSize=4096
> nmr.endpoint.MyEndpoint.allowCoreThreadTimeOut=true
> nmr.endpoint.MyEndpoint.keepAliveTime=60000
> 
> Unfortunately it's hardly possible to configure endpoint-producer-specific thread pools, because endpoint names for nmr-producers look like this
> org.apache.servicemix.camel.nmr.ServiceMixProducer-org.apache.servicemix.nmr.core.util.UuidGenerator@daece7
> 
> 
> Best Regards,
> Sergey Zhemzhitsky
> 
> 
> -----Original Message-----
> From: Łukasz Dywicki [mailto:luke@code-house.org] 
> Sent: Monday, September 19, 2011 8:55 PM
> To: users@camel.apache.org
> Subject: Re: NMR Thread Pool
> 
> Hey Sergey,
> As far I know it is possible for JBI components by setting particular thread pool properties. For example servicemix-cxf-se by modifing org.apache.servicemix.components.cxfse configuration. But it is not possible for camel-nmr.
> 
> Best regards,
> Lukasz
> 
>> Hi all,
>> 
>> I'm wondering whether it is possible to tune the NMR thread pool in camel?
>> The reason is I would like to configure nmr consumer to use, for example, 20 threads.
>> Is it possible to achieve?
>> 
>> Best Regards,
>> Sergey Zhemzhitsky
>> 
>> _______________________________________________________
>> 
>> The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
>> If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  
>> 
> 
> 
> _______________________________________________________
> 
> The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
> If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  
> 
> 


RE: NMR Thread Pool

Posted by Zhemzhitsky Sergey <Se...@troika.ru>.
Hi Łukasz,

Thanks a lot. 

It seems that it is possible to configure nmr-consumer-specific thread pools by means of the org.apache.servicemix.nmr.cfg file.

For example to configure thread pool for the consumer that consumes messages from MyEndpoint it is necessary to add the following settings into the org.apache.servicemix.nmr.cfg:

nmr.endpoint.MyEndpoint.corePoolSize=20
nmr.endpoint.MyEndpoint.maximumPoolSize=20
nmr.endpoint.MyEndpoint.queueSize=4096
nmr.endpoint.MyEndpoint.allowCoreThreadTimeOut=true
nmr.endpoint.MyEndpoint.keepAliveTime=60000

Unfortunately it's hardly possible to configure endpoint-producer-specific thread pools, because endpoint names for nmr-producers look like this
org.apache.servicemix.camel.nmr.ServiceMixProducer-org.apache.servicemix.nmr.core.util.UuidGenerator@daece7


Best Regards,
Sergey Zhemzhitsky


-----Original Message-----
From: Łukasz Dywicki [mailto:luke@code-house.org] 
Sent: Monday, September 19, 2011 8:55 PM
To: users@camel.apache.org
Subject: Re: NMR Thread Pool

Hey Sergey,
As far I know it is possible for JBI components by setting particular thread pool properties. For example servicemix-cxf-se by modifing org.apache.servicemix.components.cxfse configuration. But it is not possible for camel-nmr.

Best regards,
Lukasz

> Hi all,
> 
> I'm wondering whether it is possible to tune the NMR thread pool in camel?
> The reason is I would like to configure nmr consumer to use, for example, 20 threads.
> Is it possible to achieve?
> 
> Best Regards,
> Sergey Zhemzhitsky
> 
> _______________________________________________________
> 
> The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
> If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  
> 


_______________________________________________________

The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  



Re: NMR Thread Pool

Posted by Łukasz Dywicki <lu...@code-house.org>.
Hey Sergey,
As far I know it is possible for JBI components by setting particular thread pool properties. For example servicemix-cxf-se by modifing org.apache.servicemix.components.cxfse configuration. But it is not possible for camel-nmr.

Best regards,
Lukasz

> Hi all,
> 
> I'm wondering whether it is possible to tune the NMR thread pool in camel?
> The reason is I would like to configure nmr consumer to use, for example, 20 threads.
> Is it possible to achieve?
> 
> Best Regards,
> Sergey Zhemzhitsky
> 
> _______________________________________________________
> 
> The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. 
> If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp  
>