-
1. Re: Performance with max-thread option
tfennelly May 16, 2008 9:58 AM (in response to standard)Max threads is implemented for sure, but only for the Message Aware Listener (i.e. not gateways). I'm afraid you're going to have to provide more info in order for us to help you here!
-
2. Re: Performance with max-thread option
standard May 16, 2008 10:19 AM (in response to standard)Hi,
the listener in question is a Message Aware Listener (not a gateway).
Basically i read in a file that generates a bunch of messages.
These messages a handled after that by a sequence of services
(e.g. are being published on a JMS-topic, picked up from that topic by another service and other stuff before that).
At some point (after being picked up from the topic) all of these messages are being transformed by the service
I want to measure performance for.
So the service is pretty much at the end of the whole processing of these messages.
The messages are being send to this service by the preceding service (picking the messages from the topic) using the ServiceInvoker,
and being send to the next service (further processing the transformed messages) after the transformation the same way.
The 2 services "around" the transforming service are the ones the measures are being made in.
My guess was, that since all the processing of the messages before that service is sequential,
the service can't really make use of it's 2 threads.
But I'm not sure about that, and I wanted to ask your opinion about it.
Does that make the situation clearer?
Thanks and regards
Andreas -
3. Re: Performance with max-thread option
mvecera May 19, 2008 6:39 AM (in response to standard)Hello,
as I was running performance tests I recognized that it has sence to have 2 threads for one CPU core, e.g. on my dual core CPU, 4 threads are the best option. More threads didn't make the performance better for me.
Moreover, you could use JCA gateway listener which has max-threads implemented. The same with threads count applies here...