ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Performance of Java API

Post new topic  Reply to topic
 Performance of Java API « View previous topic :: View next topic » 
Author Message
psiracusa
PostPosted: Thu May 10, 2007 3:32 pm    Post subject: Performance of Java API Reply with quote

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
View user's profile Send private message
Michael Dag
PostPosted: Thu May 10, 2007 9:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Vitor
PostPosted: Fri May 11, 2007 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
psiracusa
PostPosted: Fri May 11, 2007 5:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Performance of Java API
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.