|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Performance of Java API |
« View previous topic :: View next topic » |
Author |
Message
|
psiracusa |
Posted: Thu May 10, 2007 3:32 pm Post subject: Performance of Java API |
|
|
Apprentice
Joined: 17 Nov 2006 Posts: 34
|
I was wondering, what everyone's experience was in terms of performance with the Java API. I've been doing some performance testing between two V6 queue managers running on Windows servers with 1.6 Sun JRE's and while the actual message only takes a few milliseconds to make it across, the actual java api calls seem to take a lot longer than I expected. Round trip messaging time is between 120-130 milliseconds and I'm not doing any backend processing, just doing the basic calls (conn, open, put, get, close, disconnect). No volume testing either just single messages. I've looked for performance papers to see if there were metrics on the different languages (Java, C++, .Net etc.) calls but I haven't found anything so I was looking for some testimonials.
Thanks. |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu May 10, 2007 9:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
are these messages persistent?
if you are doing conn, open, put, get, close, disconnect for each message then these figures do not surprise me.
conn and open are 'expensive' calls and should be minimised where possible. _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
Vitor |
Posted: Fri May 11, 2007 12:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Michael Dag wrote: |
conn and open are 'expensive' calls and should be minimised where possible. |
This is true of all languages, not just Java.
You also tend to see similar behaviours with most database software. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
psiracusa |
Posted: Fri May 11, 2007 5:51 am Post subject: |
|
|
Apprentice
Joined: 17 Nov 2006 Posts: 34
|
Thanks for the replies. The info about the conn/open calls being very expensive helped out a lot, since we will be using long running processes that will connect/open and then loop through put/gets. I just ran a test for this and the put/get combination only took 7 milliseconds. Thanks again! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|