It's not a secret anymore!*
The moose likes Websphere and the fly likes Max size of a Queue in IBM MQ 5.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Max size of a Queue in IBM MQ 5.3" Watch "Max size of a Queue in IBM MQ 5.3" New topic
Author

Max size of a Queue in IBM MQ 5.3

Dharmesh Gangani
Ranch Hand

Joined: Feb 20, 2004
Posts: 30
Hi All,

I did this samll exercise. I had written a small code in java to put messages in the queue. The code had a loop which would insert messages repeatedly onto the queue. I found that some messages were properly put on the queue but, it gave a SocketException afterwards and no further messages were put onto the queue.

So, i want to know, is there some MAX limit for the queue which allows only a fixed maximum number of messages to be put on the queue? OR is it a MAX Size limitation for the messages that can be put on the queue?

Please help.

Thanks,
Dharmesh


-=-=-=-=-=-=-=-=-=-<br />Thanks & Regards,<br />Dharmesh G.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3710
    
    5

I don't know either for sure (dont have an admin console open) although I'd suspect the maximum size of the messages on the queue is in some way related to the backend storage mechanism. In the case of WebSphere, the data is stored in an internal Cloudscape db by default, so I'd review the parameters of this database resource.


My Blog: Down Home Country Coding with Scott Selikoff
Steve Wink
Ranch Hand

Joined: May 13, 2002
Posts: 223
Originally posted by Dharmesh Gangani:
Hi All,

I did this samll exercise. I had written a small code in java to put messages in the queue. The code had a loop which would insert messages repeatedly onto the queue. I found that some messages were properly put on the queue but, it gave a SocketException afterwards and no further messages were put onto the queue.

So, i want to know, is there some MAX limit for the queue which allows only a fixed maximum number of messages to be put on the queue? OR is it a MAX Size limitation for the messages that can be put on the queue?

Please help.

Thanks,
Dharmesh


When I create a new queue on WebSphere MQ, the default max number of messages is 5000. I can increase that via the WebSphere MQ Console to 999999999. I'm on WebSphere MQ 5.3 so I guess it'll be the same for you.
 
GeeCON Prague 2014
 
subject: Max size of a Queue in IBM MQ 5.3