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 » Problem with QueueReceiver.receive

Post new topic  Reply to topic
 Problem with QueueReceiver.receive « View previous topic :: View next topic » 
Author Message
olekg
PostPosted: Fri Jun 03, 2005 12:55 am    Post subject: Problem with QueueReceiver.receive Reply with quote

Newbie

Joined: 04 May 2005
Posts: 8
Location: Poznan, Poland

Hello,

I am using Java JMS classes to connect to WebSphere MQ from standalone Java client program.

We face a problem of very long time waiting to receive a message form the Queue.

The
msg = receiver.receive(timeout);
takes more than 10 seconds to obtain a message that is in the queue.

How can I debug Java JMS classes and MQ Manager to see what is actually happening.

I will note that there is no traffic on MQ, there are only single test messages. Also the messages are not long - about n* kB.

Any help and suggestions will be appreciated.

sincerely Olek

We use WebSphere MQ 5.3 on HP-UX and clients on Windows.

Poznan, Poland
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri Jun 03, 2005 5:48 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Don't post multiple times.... In case the moderator decides to delete your other append...

You could start by running a jms trace against your program to see if it shows anything. There are details in the Using Java manual. You could also look into the errors subdirectories to see if there are any errors that might account for delays.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Fri Jun 03, 2005 10:08 am    Post subject: Reply with quote

Grand High Poobah

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

Olek,

I know how you feel. I've had the same kind of thing happen to me from Win2k java client to the MainFrame.

Check out Support Pack MO71/MO72.
They should be able to give you something working a little bit faster.
The main culprit is probably your network.

Try running your client from a different point in the network and see if this speeds things up.

Try as well running it on the same machine as your MQ server and see if as a client connection you still have difficulties or if it is all of a sudden sooo .... much faster. (XWindows for HP connection ??)

Enjoy
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Sat Jun 04, 2005 5:57 am    Post subject: Re: Problem with QueueReceiver.receive Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

olekg wrote:
Also the messages are not long - about n* kB.

Olek, how big is n*kb?

From the client machine, open a command prompt, set the MQSERVER variable to point to your QM, and try using the amqsbcgc sample program to browse the message. If that comes back very fast, you know its your java app. If it comes back slow, you can focus on the network or the server side.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Jun 04, 2005 12:55 pm    Post subject: Re: Problem with QueueReceiver.receive Reply with quote

Grand High Poobah

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

PeterPotkay wrote:

From the client machine, open a command prompt, set the MQSERVER variable to point to your QM, and try using the amqsbcgc sample program to browse the message. If that comes back very fast, you know its your java app. If it comes back slow, you can focus on the network or the server side.

I would be a little bit more discriminate (Experience ?)
Different protocols travel at different speeds over the network.
This is one of the reasons to let the java client app do the client connection on the server itself and display back to your pc via XTerm or one of its clones.
So if you have the same troubles using a client connection and a bindings connection it is definitely your code.
If a client connection slows it down by a very big factor when on the same machine as the server get the help of the sysadmin of the machine. There might be something up with the TCP/IP set up of the machine.

Probably first trying one stuff and on timeout succeeding with the alternate path....

Now if on the same machine the client connection is fast but not from your PC it is definitely the network....

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Problem with QueueReceiver.receive
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.