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 » multithreading (mqje001 completion code '2' reason '2195')

Post new topic  Reply to topic
 multithreading (mqje001 completion code '2' reason '2195') « View previous topic :: View next topic » 
Author Message
alexeimail
PostPosted: Thu May 23, 2013 10:20 pm    Post subject: multithreading (mqje001 completion code '2' reason '2195') Reply with quote

Newbie

Joined: 28 Apr 2013
Posts: 3

Hello. I'm cofused. I have class wmqUtil implements Runnable where i'm creating MQQueueManager and geting message from queue.

Code:
MQGetMessageOptions getOptions = new MQGetMessageOptions();
        getOptions.options = MQC.MQGMO_WAIT + MQC.MQGMO_FAIL_IF_QUIESCING + MQC.MQGMO_LOGICAL_ORDER + MQC.MQGMO_ALL_SEGMENTS_AVAILABLE + MQC.MQGMO_COMPLETE_MSG + MQC.MQGMO_SYNCPOINT;

Every instance of wmqUtil i'm run in separate thread.
When i creating one or two thread all ok. But when i'm creating three threads - throw exeption:
mqje001 completion code '2' reason '2195'
MQJE005: TSH eyecatcher not found. Eyecatcher was 1950000
Error occured during API call - reason code0
MQJE001: è«ñ ºáóÑÓÞÑ¡¿´ 2, »ӿþ¿¡á 2009.....

The message length 11 mb, max message length in queue 4194304.
That's problem?

P.S. NetBeans 7.1, Websphere MQ 6.2.
Back to top
View user's profile Send private message
alexeimail
PostPosted: Thu May 23, 2013 10:31 pm    Post subject: Reply with quote

Newbie

Joined: 28 Apr 2013
Posts: 3

I forget: it's standalone app. And was a out of memory exception.

An important addition: when i'm set parametr of VM to -Xmx256m, errors have disappeared.

But it is a strange relationship
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 24, 2013 4:13 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

alexeimail wrote:
I forget: it's standalone app. And was a out of memory exception.

An important addition: when i'm set parametr of VM to -Xmx256m, errors have disappeared.

But it is a strange relationship


It's a strange enough relationship that it seems clear that the two are mostly unrelated.

Debug the fact that your app is failing to release objects first. Once you're sure that your app no longer runs out of memory in general, then see if the MQ thread/segmentation issue occurs.
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 » multithreading (mqje001 completion code '2' reason '2195')
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.