You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Shahm <n_...@yahoo.co.in> on 2007/10/01 22:43:16 UTC

delivery channel get stuck

Hi all ,
    For a single request in my requirement using JBI components iam in need
of using four jbi components like jms, bpel, xslt-in, xslt-out etc. At one
point of time when i send a request it is not processing it get stuck. And
after some time when i shutdown my tomcat server then i get the error states
that Deleivery Channel has been closed. My Question is are below 

1. How many request can a Delivery channel process it.
2. What is the maximum size of the Messge Exchange content, while sending it
to another component.

regards,
shahm
-- 
View this message in context: http://www.nabble.com/delivery-channel-get-stuck-tf4550936s12049.html#a12987401
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: delivery channel get stuck

Posted by Shahm <n_...@yahoo.co.in>.


bsnyder wrote:
> 
> Hi bysender,
> 
>     i resolved the issue by configuring thread pools in
> conf/servicemix.xml...
>     thanks for ur suggestion.
>     Is there any pdf for learning servicemix fully.
> 
> regards,
> Shahm
> 

-- 
View this message in context: http://www.nabble.com/delivery-channel-get-stuck-tf4550936s12049.html#a13063690
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: delivery channel get stuck

Posted by Bruce Snyder <br...@gmail.com>.
On 10/4/07, Shahm <n_...@yahoo.co.in> wrote:
>
>
>
> shahm wrote:
> >
> >
> >
> >  Hi bsnyder ,
> >     I have seen that thread-pools which u sended me in link. But Where to
> > configure that contents
> > <sm:container><sm:executorFactory>...</sm:executorFactory></sm:container>.
> > In my case , i have used seperate servicemix.xml for each component like,
> > transformcomponent class, bpel, xslt etc. Here z my question
> >
> > 1. In which servicemix.xml i have to configure about thread pools.

Well if you're using multiple servicemix.xml files, it sounds like
you're using lightweight components. This is not where you configure
the thread pools. These are configured in the conf/servicemix.xml file
which controls the entire ServiceMix container.

> > 2. When i give a request it is transfered upto TransformComponent class .
> > from there i need to send it to BPEL. I have used InOnly exchange. when im
> > debugging it while executing the statement send(exchange) it is done with
> > no errors. but the message is not send to next component, the thread in
> > debugger exist in flow.seda.MyBPELService
> > I canot move further Im in showstopper stage.

Did you add the EIP wiretap as I suggested in another one of the
messages you posted to this list? This will allow you to route the
message to an endpoint where you can view it to be sure it's making it
that far.

> > 3. Is there anything like buffer to process the request in each and it is
> > full.

The java.util.concurrent queues in the SEDA flow can fill up but only
under heavy load. When this happens, tuning the thread pools is
exactly the solution.

> > Can i say that BPEL Inbound queue is not picking the message or else is
> > there any idea about the cause.

I'm not sure why it's happening. Have you enabled debug level logging
in ServiceMix to see if there's anything in the logging that would
indicate an error or something?

http://incubator.apache.org/servicemix/how-do-i-change-the-logging.html

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Re: delivery channel get stuck

Posted by Shahm <n_...@yahoo.co.in>.


shahm wrote:
> 
> 
> 
>  Hi bsnyder ,
>     I have seen that thread-pools which u sended me in link. But Where to
> configure that contents
> <sm:container><sm:executorFactory>...</sm:executorFactory></sm:container>.
> In my case , i have used seperate servicemix.xml for each component like,
> transformcomponent class, bpel, xslt etc. Here z my question
> 
> 1. In which servicemix.xml i have to configure about thread pools. 
> 2. When i give a request it is transfered upto TransformComponent class .
> from there i need to send it to BPEL. I have used InOnly exchange. when im
> debugging it while executing the statement send(exchange) it is done with
> no errors. but the message is not send to next component, the thread in
> debugger exist in flow.seda.MyBPELService
> I canot move further Im in showstopper stage.
> 
> 3. Is there anything like buffer to process the request in each and it is
> full.
> 
> Can i say that BPEL Inbound queue is not picking the message or else is
> there any idea about the cause.
> 
> regards,
> Shahm
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/delivery-channel-get-stuck-tf4550936s12049.html#a13037612
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: delivery channel get stuck

Posted by Bruce Snyder <br...@gmail.com>.
On 10/1/07, Shahm <n_...@yahoo.co.in> wrote:
>
> Hi all ,
>     For a single request in my requirement using JBI components iam in need
> of using four jbi components like jms, bpel, xslt-in, xslt-out etc. At one
> point of time when i send a request it is not processing it get stuck. And
> after some time when i shutdown my tomcat server then i get the error states
> that Deleivery Channel has been closed. My Question is are below
>
> 1. How many request can a Delivery channel process it.

This depends on the flow being used, the components being used, the
size of the messages, presence of attachments, etc. Also note that
components can be tuned via the thread pools to scale them further:

http://incubator.apache.org/servicemix/thread-pools.html

> 2. What is the maximum size of the Messge Exchange content, while sending it
> to another component.

There is no maximum message size per se, it's more of a product of the
components being used and the resources you have available.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Re: delivery channel get stuck

Posted by Shahm <n_...@yahoo.co.in>.


bsnyder wrote:
> 
>       As of now, I juz wanna tell u where exactly we are now. We have
> configured Thread pools with configuration corePoolSize=4,
> maximumpoolSize= -1 , queueSize= -1. As per the api instruction it seems ,
> based on my configuration above for the first 4 request 4 thread has to be
> created and if suppose 5th request is coming , though my maximumpoolSize
> is -1 it has to create the 5th thread. but it got stuck . My question is
> 
> 1. 5th thread is not creating , when maximumpoolsize = -1 WHY?
> 2. My previous request were completed i.e i got the response upto 4th
> request. it seems 4 threads are free now . My 5th request might be process
> with in this existing thread. why its not done like that?
> 
> 
> NOTE : *We are done txn management through declarative*
> 
> 
> regards,
> shahm    
> 

-- 
View this message in context: http://www.nabble.com/delivery-channel-get-stuck-tf4550936s12049.html#a13228175
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: delivery channel get stuck

Posted by Bruce Snyder <br...@gmail.com>.
On 10/15/07, Shahm <n_...@yahoo.co.in> wrote:
>
>
>
> Shahm wrote:
> >
> > Hi bysender,
> >    As u suggest me earlier to use thread pools, i found only the part of
> > the solution , But the actual problem we found is that , the no of request
> > processed is equal to corePoolSize. i.e if corePoolSize is 32, only it can
> > process up to 32 requests. It seems like it is not killing the thread i
> > suppose. But i donno whether this is the actual problem or is ther ny
> > other reason behind this, and here z my question
> >
> > 1. How to kill the Pooled Thread by custom?
> > 2. Is ther ny config need to be maintained while using thread pools  for
> > killing the thread?
> > 3. Im using Logicblaze FUSE1.3.0 for deploying my JBI components , If
> > possible juz tell me Itz problem with fuse or not?

This reason you're not seeing the number of threads decrease is
because you have explicitly configured it to be 32. The corePoolSize
is used to configure a java.util.concurrent.ThreadPoolExecutor
(http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ThreadPoolExecutor.html)
and serves as the lower boundary for the number of threads to keep
alive in the pool. I *highly* encourage you to read the Javadoc for
the ThreadPoolExecutor to understand how it works as I think this will
alleviate most of your questions above. After reading that, please let
us know if you have anymore questions.

BTW, there are much newer releases of Fuse available for download:

http://open.iona.com/

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Re: delivery channel get stuck

Posted by Shahm <n_...@yahoo.co.in>.


Shahm wrote:
> 
> Hi bysender,
>    As u suggest me earlier to use thread pools, i found only the part of
> the solution , But the actual problem we found is that , the no of request
> processed is equal to corePoolSize. i.e if corePoolSize is 32, only it can
> process up to 32 requests. It seems like it is not killing the thread i
> suppose. But i donno whether this is the actual problem or is ther ny
> other reason behind this, and here z my question
> 
> 1. How to kill the Pooled Thread by custom?
> 2. Is ther ny config need to be maintained while using thread pools  for
> killing the thread?
> 3. Im using Logicblaze FUSE1.3.0 for deploying my JBI components , If
> possible juz tell me Itz problem with fuse or not?
> 
> regards,
> shahm
> 

-- 
View this message in context: http://www.nabble.com/delivery-channel-get-stuck-tf4550936s12049.html#a13207451
Sent from the ServiceMix - User mailing list archive at Nabble.com.