|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Too few uncommitted messages when using JMS |
« View previous topic :: View next topic » |
Author |
Message
|
mac1929 |
Posted: Mon Dec 23, 2002 12:36 am Post subject: Too few uncommitted messages when using JMS |
|
|
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 |
|
 |
kingdon |
Posted: Mon Dec 23, 2002 11:51 pm Post subject: |
|
|
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 |
|
 |
zhaobin |
Posted: Mon Dec 30, 2002 9:05 pm Post subject: |
|
|
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 |
|
 |
nimconsult |
Posted: Wed Jan 01, 2003 10:54 pm Post subject: |
|
|
 Master
Joined: 22 May 2002 Posts: 268 Location: NIMCONSULT - Belgium
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|