Question

my application is taking around 200 milliseconds to complete a task using single thread.we have listener attached to MQ which will pick up the message and process it.

when i am increasing the number of MDB threads to 5 the processing time it should take to process 5 message in the queue should be around 200 milliseconds but it is taking around 600 milliseconds .what can be the issue or any suggestion to improve it.

we have File I/O ,DB insert update operation involved in between the process.

Was it helpful?

Solution

If your tasks would be only CPU limited, it might be near linear scaling up to numbers of CPUs (cores) in your system. However as you said you're using shared resources, and that is probably the reason of your issue. Try profiling your application to see what is actually happening there.

OTHER TIPS

Are you sharing MQ connections to the queue manager or does each thread have its own connection to the queue manager?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top