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 » General Discussion » Large message problem

Post new topic  Reply to topic
 Large message problem « View previous topic :: View next topic » 
Author Message
shoedeep
PostPosted: Fri Aug 01, 2008 8:29 am    Post subject: Large message problem Reply with quote

Newbie

Joined: 01 Aug 2008
Posts: 4

Hello gurus,
I have configured MQ Server channel, queue and queue manager for max message length of 15194304 .
But still I am not able to send a 10 MB string from my java client to connecting to the MQ Server .
i did a lot of search in the forum, but i could not find anything which might help me resolve this.

Program does not even come up with any exception or error.
Any help is appreciated
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Aug 01, 2008 9:15 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
But still I am not able to send a 10 MB string from my java client

If no exceptions are thrown, how do you know that your are not able to send the message?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
shoedeep
PostPosted: Fri Aug 01, 2008 9:17 am    Post subject: Reply with quote

Newbie

Joined: 01 Aug 2008
Posts: 4

bruce2359 wrote:
Quote:
But still I am not able to send a 10 MB string from my java client

If no exceptions are thrown, how do you know that your are not able to send the message?


because i have access to MQ Explorer to view the queue and also my browse program verifies that smaller messages are put successfully.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Aug 01, 2008 9:23 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

What is the largest message you can successfully send? 4meg?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
shoedeep
PostPosted: Fri Aug 01, 2008 9:37 am    Post subject: Reply with quote

Newbie

Joined: 01 Aug 2008
Posts: 4

bruce2359 wrote:
What is the largest message you can successfully send? 4meg?


I progressively tried till 4 mb , 6 mb , 9 mb , it works fine and i can see the message in the queue.
It fails somewhere between 9 and 10 mb when program does not come back with any exception after the put call .In the following segment i do not see the SOP "about to close".It takes me to finally loop to close the conneciton. No MQException is thrown

MQMessage mBuf = new MQMessage();
mBuf.clearMessage();
mBuf.correlationId = MQC.MQCI_NONE; // this acts as filter when you browse the queue!
mBuf.messageId = MQC.MQMI_NONE; // if MQMI not set, so everyone can use the queue
mBuf.originalLength = 44304;
mBuf.format = "MQSTR";
mBuf.messageFlags = MQC.MQMF_SEGMENTATION_ALLOWED;

System.out.println(" mBuf.originalLength " + mBuf.originalLength);
//mBuf.writeString(xml);
System.out.println("----------- message length is ------------" + xml.length());
mBuf.writeBytes(xml);
System.out.println("put message to queue");
myQueue.put(mBuf, pmo);
System.out.println("about to close");
Back to top
View user's profile Send private message
shoedeep
PostPosted: Fri Aug 01, 2008 9:55 am    Post subject: Reply with quote

Newbie

Joined: 01 Aug 2008
Posts: 4

Hi Bruce,
i think my problem is resolved. Your reply kind of made me think in a different direction .
I was wondering why my program will start failing in 10 mb when there is no setting anywhere which limits the message length to 10 mb . So i looked at the resource usage , obviously cpu utlization goes 100% on my windows and i was wondering if this has anything to do with OutOfMemory.But they i was stupid enough to believe that I will see a graceful outofmemory excpetion on my eclipse console. While running on debug mode i realise that somehow MQQueue class eats up the outofmemory exception and program exits.
I have increased the memory settings , and now i can process the full 10.1 MB file

Thanks for your help!
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 » General Discussion » Large message problem
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.