activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Not all threads being used, system underutilized
Date Thu, 08 Mar 2007 07:31:23 GMT
I've documented the settings a little better here...
http://cwiki.apache.org/ACTIVEMQ/activation-spec-properties.html

On 3/1/07, drvillo <f.vivoli@gmail.com> wrote:
>
> Hi all
>
> this is (hopefully finally) an optimization topic:
>
> Each message I consume takes ~30 seconds to complete, thus
> to increase throughput I'm trying to get as many threads
> as possible to process them in parallel.
>
> Right now I have configured Jencks to use 300 threads,
> with the following ActivationSpec:
>
> <code>
>             <bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
>                 <property name="destination" value="stage2Queue"/>
>                 <property name="destinationType" value="javax.jms.Queue"/>
>                 <property name="acknowledgeMode"
> value="Dups-ok-acknowledge"/>
>                 <property name="maxSessions" value="280"/>
>                 <property name="maxMessagesPerSessions" value="280"/>
>             </bean>
> </code>
>
>
> Nevertheless, looking at the logs I can only see only 71 threads ever being
> used,
> and JConsole reports a total of 125 active threads, which include ones being
> used by
> other components.
> The queue is always with at least 50 messages; I really don't get why
> despite the
> maxSessions and maxMessagesPerSessions these 50 are not sent to the
> available threads on the consumre...
>
> Any hint would be greatly appreciated here, right now the system is almost
> always idle, as
> shown by vmstat:
>
>
> procs -----------memory---------- ---swap-- -----io---- --system--
> ----cpu----
> r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id
> wa
> 0  0    160 204600 192860 1260004    0    0     2    21    6    15 21  6 73
> 0
> 0  0    160 204632 192864 1260000    0    0     0    47 1024  3388  0  0 100
> 0
> 0  0    160 204760 192868 1259996    0    0     0     6 1019  3431  0  0 100
> 0
> 0  0    160 204696 192868 1260256    0    0     0   181 1579  5860  7  1 92
> 0
> 0  0    160 203928 192892 1260492    0    0     2   582 1976  7344 12  2 85
> 0
> 0  0    160 203768 192896 1260748    0    0     0   306 1203  3785  2  0 98
> 0
> 0  0    160 204040 192896 1260748    0    0     0     6 1031  3358  0  0 100
> 0
> 0  0    160 204136 192896 1260748    0    0     0     4 1020  3423  0  0 100
> 0
> 0  0    160 204104 192896 1260748    0    0     0    14 1031  3362  0  0 100
> 0
>
>
>
> Thanks a lot
> Francesco
>
>
> --
> View this message in context: http://www.nabble.com/Not-all-threads-being-used%2C-system-underutilized-tf3325928s2354.html#a9246595
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message