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 » Too few uncommitted messages when using JMS

Post new topic  Reply to topic
 Too few uncommitted messages when using JMS « View previous topic :: View next topic » 
Author Message
mac1929
PostPosted: Mon Dec 23, 2002 12:36 am    Post subject: Too few uncommitted messages when using JMS Reply with quote

Novice

Joined: 15 Oct 2002
Posts: 10

Whe have build a process that gets registers out of a file and puts them in a queue as messages. Our queue mngr is configured to let up to 10000 uncommited messages. This program is written using JMS api and is not able to put more than 1000 uncommited messages (aprox.). But if we change it to use MQI api instead of JMS it becomes able to write up to the value maximun uncommited message configured in the Queue Manager (10000).
The 1000 message limit of JMS is a suspicious number. I wonder if there is somewhere a JMS configuration that I should set up to let JMS increment its maximun uncommitted message limit.
Any help would be really appreciated!
Back to top
View user's profile Send private message
kingdon
PostPosted: Mon Dec 23, 2002 11:51 pm    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

There's nothing in the JMS layer that imposes an additional limit for max uncommitted messages. There must be some other reason for the difference you observe. The fact that the reason isn't immediately obvious may support the general advice that designing applications to put very large numbers of messages under transaction without committing is not a good idea.

Regards,
James.
Back to top
View user's profile Send private message
zhaobin
PostPosted: Mon Dec 30, 2002 9:05 pm    Post subject: Reply with quote

Novice

Joined: 29 Oct 2002
Posts: 20

I have tried large number of uncommitted messages on Windows 2000 with MQSeries 5.21 using Java API without any problem. The following
is the experiement I have done.

In summary:
The maximum number of uncommitted messages on a Queue Manager can be configurable.

But still, the maximum number of uncommitted messages are limited
by the size of the log files. If the log file size is not big enough,
error occurs if there are too many outstanding uncommitted messages.

The following shows the rough figures about the log file size and
the number of uncommitted messages on windows 2000.

-lc -lp 2 -ls 3 -lf 4095
5k/msg 12,000 msgs

-lc -lp 2 -ls 3 -lf 4095
4k/msg 13,000 msgs

-lc -lp 4 -ls 6 -lf 4095
5k/msg 24,000 msgs

-lc -lp 4 -ls 6 -lf 4095
4k/msg 26,000

-ll -lp 4 -ls 6 -lf 4095
5k/msg 24,000 msgs

-ll -lp 4 -ls 6 -lf 4095
4k/msg 26,000 msgs

-lc -lp 8 -ls 12 -lf 4095
4k/msg 50,000 msgs

hope it helps
Back to top
View user's profile Send private message
nimconsult
PostPosted: Wed Jan 01, 2003 10:54 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

I would also investigate the problem considering the log file size. Have a look at similar problem on http://www.mqseries.net/phpBB2/viewtopic.php?t=6417
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Too few uncommitted messages when using JMS
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.