multithreading - Java Multi-Threading Performance Improvement -


my application taking around 200 milliseconds complete task using single thread.we have listener attached mq pick message , process it.

when increasing number of mdb threads 5 processing time should take process 5 message in queue should around 200 milliseconds taking around 600 milliseconds .what can issue or suggestion improve it.

we have file i/o ,db insert update operation involved in between process.

if tasks cpu limited, might near linear scaling numbers of cpus (cores) in system. said you're using shared resources, , reason of issue. try profiling application see happening there.


Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -