Hi All,
Yesterday i was studying how to work with threads over oracle SOA and find a tutorial where i found how can we manage number of threads for different SOA adapters like DB adapter, JMS adapter, File/FTP adapter, AQ adapter, MQ adapter.
I hope this will help you to make your SOA application for better reliable and fast to generate response, But as may you know increasing number of threads will also increase the quantity of resources of your JVM and Machine, So be sure about it before configuring these changes for any adapter.
JMS Adapter:For BPEL: Set ‘adapter.jms.receive.threads’ as activation agent properties in bpel.xml
<activationAgents>
<activationAgent className=“…" partnerLink="MsgQueuePL">
... <property name="adapter.jms.receive.threads”>5</property>
</activationAgent>
</activationAgents>
AQ Adapter:
FOR ESB/BPEL 10.1.3.4.x:<property name="adapter.aq.dequeue.threads">NO_OF_THREADS</property>
FOR BPEL 10.1.3.3.x: <property name=activationInstances">NO_OF_THREADS<property>
FOR ESB 10.1.3.3.x:
<endpointProperties> <property name="numberOfAqMessageListeners" value="NO_OF_THREADS"/> </endpointProperties>
MQ Adapter:
<jca:operation ActivationSpec="oracle.tip.adapter.mq.inbound.SyncReqResActivationSpecImpl" MessageType="REQUEST" QueueName="INBOUND_QUEUE" Priority="AS_Q_DEF" Persistence="AS_Q_DEF" InboundThreadCount="1"Expiry="NEVER" OpaqueSchema="true" > </jca:operation>
File/FTP Adapter:
In File/FTP adapter’s, it has a separate poller thread and processor thread.There is always only one poller thread, while there could be multiple processor threads.
In SOA 10.1.3.x, the processor threads are globally shared among File and FTP adapter instances, while in 11G you have an option to configure private processor thread pool per adapater *.jca file.
In SOA 10.1.3.x, the configuration file for you to set the File/FTP adapter processor threads are:
SOA_HOME\bpel\system\services\config\pc.properties
SOA_HOME\integration\esb\config\pc.properties (need to rename from pc.properties.esb)
SOA_HOME\bpel\system\services\config\pc.properties
SOA_HOME\integration\esb\config\pc.properties (need to rename from pc.properties.esb)
The property name is:
oracle.tip.adapter.file.numProcessorThreads=4
oracle.tip.adapter.file.numProcessorThreads=4
If BPEL and ESB are co-located on the same OC4J container, the pc.properties for BPEL takes precedence over that of ESB . In such cases, the values set in SOA_HOME\bpel\system\service\config\pc.properties will suffice.
Cheers!!!!!!!
Comments
Post a Comment