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 Performance Monitoring » How can we avoid duplicate mesages in case of mutiprocessing

Post new topic  Reply to topic
 How can we avoid duplicate mesages in case of mutiprocessing « View previous topic :: View next topic » 
Author Message
krishna1228
PostPosted: Wed May 29, 2013 1:45 am    Post subject: How can we avoid duplicate mesages in case of mutiprocessing Reply with quote

Novice

Joined: 28 May 2013
Posts: 18

Im using jave client program to read the messages and persisting these messages in hadoop using flume multi processing here im getting duplicate messages how can i avoid this?
Back to top
View user's profile Send private message
zpat
PostPosted: Wed May 29, 2013 1:53 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Why use another message store?

Simply get under sycnpoint from MQ (do NOT browse).

When ready - commit the message to remove it from queue.

MQ will not present the same message more than once unless backed out (check MQMD.back value to detect this).
Back to top
View user's profile Send private message
krishna1228
PostPosted: Wed May 29, 2013 2:08 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 18

If i use syncpoint and commit it is decreasing my performance by half....
Back to top
View user's profile Send private message
zpat
PostPosted: Wed May 29, 2013 2:16 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Process more than one message per commit. Maybe 100 or 200 for example.

If you don't use syncpoint you are at risk of getting a message destructively before successfully processing it in the application - that's your choice.

Worry about performance when your code works properly and after you have made the tuning changes that I suggested.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 29, 2013 12:30 pm    Post subject: Reply with quote

Grand High Poobah

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

krishna1228 wrote:
If i use syncpoint and commit it is decreasing my performance by half....

I doubt very much that it is MQ that is slowing you down that much.
With a server connection, 1 commit per (let's say 1,000 messages, could also be 100) and messages under 2k, I have seen achieved performance of over 7,000 TPS in JMS TextMessage.... (shame I didn't care about the payload, just reading the queue destructively

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
krishna1228
PostPosted: Thu May 30, 2013 1:35 am    Post subject: Reply with quote

Novice

Joined: 28 May 2013
Posts: 18

Hi,

Currently we are getting 30 msgs/sec which means 1800/min only could you please let me know what action need to be taken in order to increase the performance.....

Note :
All messages are of 4kb
Back to top
View user's profile Send private message
zpat
PostPosted: Thu May 30, 2013 1:40 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Have you made all the log changes I recommended, or are you selectively choosing which advice to follow?

After the simple log changes, then look into Read Ahead (for gets) Async Puts (for puts) etc

http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/topic/com.ibm.iea.wmq_v7/wmq/7.0/Client.html?resultof=%22%72%65%61%64%22%20%22%61%68%65%61%64%22%20
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 Performance Monitoring » How can we avoid duplicate mesages in case of mutiprocessing
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.