RE: Multi Thead Producer
Jim Alateras <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Are you running the OpenJMS server with tcp or rmi? The only way I can explain it, without looking at the code, is that there seems to be related to synchronization either in your code, the OpenJMS client library or the OpenJMS server. cheers </jima> > -----Original Message----- > From: openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]On Behalf Of > Tamoyo Vitali > Sent: Tuesday, April 15, 2003 6:16 AM > To: openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > Subject: [openjms-developer] Multi Thead Producer > > > Hi all!! > > I am writing a java program to send messages to a queue in a > multithread scenario. Each thread has exclusive objects such as > connection, queue, sender, session. Inside each thread there is a > loop that sends sequentially messages. When I run this program > witha single thread, the time to send each message in a > persistent autoacknolodge mode is 80 miliseconds, When I run the > same program with 2 theads the time to send each message > increases to 160 ms, with 3 theads it goes to 240 ms, with 4 > threads 320 ms a so on... This is the expected results (the time > to deliver increases deppendin on the number os queuesenders) ??? > Is I run the same program in two diferents processes each one > with just one thread they ane not affected and both takes 80 ms > for each message) Am I doind any wrong? > > best regards!!! > > Tamoyo C. Vitali Jr. > Gerente de Desenvolvimento > SupportComm > > Rua da Assembléia, 100 - 19 Andar > Rio de Janeiro, RJ 20011-000 > Tel: +55 21 3806-3340 / Cel: +55 21 8123-5182 > mailto:tamoyo.vitali-+4n8Pjbed72QlJb33dTly1/I71DsQ//[email protected] > www.supportcomm.com.br > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > openjms-developer mailing list > openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/openjms-developer