You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "linda.floren" <li...@siemens.com> on 2007/11/13 18:05:17 UTC

How many incoming threads?

Hello,

I'm trying to figure out the best relation of
connections/sessions/subscriptions and I'd like to know:
How many threads does the ActiveMQ open on the consumer side to accept
incoming events (onMessage())?
How does the number correlate with the number of connections and sessions? X
per connection or X per session?

Best regards
Linda
-- 
View this message in context: http://www.nabble.com/How-many-incoming-threads--tf4799182s2354.html#a13730134
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How many incoming threads?

Posted by Hellweek <bw...@tfutures.com>.
For the past 2 weeks we have been testing ActiveMQ to answer this question
ourself.  Here is what we found.

Creating a Connection takes one thread.
Creating a Session takes one thread.
Creating a NON Persisted Topic with a messageListner takes one thread, when
the topic is no longer used the thread is returned to the system.
Creating a Persisted Topic with a messageListner takes one thread this
thread seems to stay around even when the Producer is disposed.
Creating a QUEUE creates 1 thread per QUEUE when the QUEUE is disposed the
thread servicing the QUEUE is still in use.

On Windows 32 Bit we were able to get up to 2,000 threads before we could
not create anymore.
On Linux 32 Bit we were able to get up to about 2,500 threads before we
could not create anymore.  It is important to note that I had to make ulimit
changes to memory size, virtual memory size and file handles in order to
reach more then 1,000.


On Windows 64 Bit with a 64 bit JVM we were able to get up to 5,000 threads
before we could not create anymore.
On Linux 64 Bit with a 64bit JVM we were able to get up to about 6,000
threads before we could not create anymore.  It is important to note that I
had to make ulimit changes to memory size, virtual memory size and file
handles in order to reach more.



linda.floren wrote:
> 
> Hello,
> 
> I'm trying to figure out the best relation of
> connections/sessions/subscriptions and I'd like to know:
> How many threads does the ActiveMQ open on the consumer side to accept
> incoming events (onMessage())?
> How does the number correlate with the number of connections and sessions?
> X per connection or X per session?
> 
> Best regards
> Linda
> 

-- 
View this message in context: http://www.nabble.com/How-many-incoming-threads--tf4799182s2354.html#a13733916
Sent from the ActiveMQ - User mailing list archive at Nabble.com.