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 » MQ Performance with Java and WAS 6.2 Sever

Post new topic  Reply to topic
 MQ Performance with Java and WAS 6.2 Sever « View previous topic :: View next topic » 
Author Message
hp_tvm
PostPosted: Fri Jan 11, 2008 2:43 am    Post subject: MQ Performance with Java and WAS 6.2 Sever Reply with quote

Newbie

Joined: 11 Jan 2008
Posts: 6

Hi - We are in the process of writing a Java component that would read from an MQ. This Q would get around 20K messages per hour. Our Java program needs to read this Q, parse the data and process it.

Are there any guidelines/ performance improving techniques while programming Java with MQ for Txns of this volume ? Any tips or pointers to sites containing MQ Java tuning techniques would be helpful. Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 11, 2008 3:19 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Don't double post!

Moved to Java forum
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hp_tvm
PostPosted: Fri Jan 11, 2008 3:41 am    Post subject: Where is the Java forum Reply with quote

Newbie

Joined: 11 Jan 2008
Posts: 6

Sorry for cross-posting.
Can you provide the url for the Java forum ? Thanks much
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 11, 2008 4:10 am    Post subject: Re: Where is the Java forum Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hp_tvm wrote:
Sorry for cross-posting.
Can you provide the url for the Java forum ? Thanks much


You're looking at it!

Perhaps I should have said section.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 11, 2008 4:10 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Use JMS standards and read the JMS Topologies red book.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
JLRowe
PostPosted: Fri Jan 11, 2008 9:25 am    Post subject: Re: MQ Performance with Java and WAS 6.2 Sever Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

hp_tvm wrote:
Hi - We are in the process of writing a Java component that would read from an MQ. This Q would get around 20K messages per hour. Our Java program needs to read this Q, parse the data and process it.

Are there any guidelines/ performance improving techniques while programming Java with MQ for Txns of this volume ? Any tips or pointers to sites containing MQ Java tuning techniques would be helpful. Thanks


Is message loss acceptable?

Then you can use non-persistent messages

Are the messages idempotent (can duplicates be tolerated)?

If yes, then you may not need XA transactions

Does sequencing matter?

If no, then you can have multiple receiver instances

Are the transactions complex?

If no, then you can process several messages for each commit and save overhead

How do you handle poison messages?

Either stop processing or use a backout queue
Back to top
View user's profile Send private message Send e-mail
David.Partridge
PostPosted: Mon Jan 14, 2008 1:01 am    Post subject: Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

20K messages per hour isn't a big deal (unless of course you're talking about humunguously large messages), so a good application design etc won't be crucial in the first instance. Though of course I'm not condoning the use of poor design patterns or implementations.

You problem will likely come when the message volumes grow beyond you initial predictions and the performance goes down the pan.

Crucial here may be whether the processing associated with each message is relatively trivial, or at the other extreme. If the latter and the application messaging design allows you should consider having multiple consumers feeding off the same input queue.

HtH
_________________
Cheers,
David C. Partridge
Back to top
View user's profile Send private message
hp_tvm
PostPosted: Mon Jan 14, 2008 4:27 am    Post subject: MQ Performance Reply with quote

Newbie

Joined: 11 Jan 2008
Posts: 6

Hi - Thanks for the response.
Im an MQ newbie. So I may not be able to explain the problem in great detail.

Here's the scenario:
Our Q would have around 20K messages put on it per hour.
A java pgm has to poll this Q, parse the message in XML format and then insert into appropriate DAO.

Are there any performance enhancing things which can be used in this specific scenaraio - some thing like a list of Do's and donts

Appreciate your help
Back to top
View user's profile Send private message
hp_tvm
PostPosted: Mon Jan 14, 2008 4:29 am    Post subject: Typo Reply with quote

Newbie

Joined: 11 Jan 2008
Posts: 6

I meant calling the approporiate DAO and perform the appropriate insert/update etc

There are 30 tables with an average no of 200 columns per table
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 14, 2008 4:33 am    Post subject: Re: MQ Performance Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hp_tvm wrote:
Im an MQ newbie. So I may not be able to explain the problem in great detail...Our Q would have around 20K messages put on it per hour....some thing like a list of Do's and donts


It's not an MQ problem per se, it's an interface problem. 20K messages an hour is not a lot (as has been said before) unless the XML document is ridiculously large. You should take the suggestions offered regarding queue tuning and the JMS standard; you should also look to the tuning of the XML parser and especially the database, which is by far the most likely bottleneck in this kind of situation.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » MQ Performance with Java and WAS 6.2 Sever
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.