[ 
https://issues.apache.org/activemq/browse/AMQ-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39554
 ] 

James Strachan commented on AMQ-1187:
-------------------------------------

I just mentioned this on IRC but figured I'd repeat here for anyone watching 
JIRA. IT could just be you're using multiple threads, but not using thread safe 
counters.

Try refactor the 'int count*" variables to use AtomicInteger instead and see if 
its still an issue?

> Messages sent in parallel threads may not be enqueued
> -----------------------------------------------------
>
>                 Key: AMQ-1187
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1187
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 4.0.2, 4.1.0
>         Environment: Linux 
>            Reporter: Philippe Göllnitz
>         Attachments: console.txt, jconsole.png, TestMqBroker.java, 
> TestMqBroker2.java
>
>
> I sent 1000 messages in own threads but monitoring the queue with jconsole 
> sometimes only 999 are in the queue. 
> This happens more likely if you raise the number of sent messages 10.000 or 
> 100.000 but can also happen if set to 100.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to