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 » General IBM MQ Support » CURDEPTH=1,but no messages are available

Post new topic  Reply to topic
 CURDEPTH=1,but no messages are available « View previous topic :: View next topic » 
Author Message
huebi
PostPosted: Wed Jul 17, 2002 2:51 am    Post subject: CURDEPTH=1,but no messages are available Reply with quote

Novice

Joined: 01 Jul 2001
Posts: 16

Hi,

runmqsc with dis ql(qname) shows me a curdepth(1), but when i try to read it or browse it, i always get a no more maessages available. Of course, i did not specify a msgid od corrid to get it.

MQExplorer shows me the same, curdepth(1), but the list "browse messages" is empty. How can i fix that?

clear ql(qname) fails because object is in use. But there is no application accessing this q.
cu
Huebi
Back to top
View user's profile Send private message
mrlinux
PostPosted: Wed Jul 17, 2002 3:33 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

What you have is an uncommited message, the current depth will report
uncommited message in the count but you wont be able to view them until they are commited. I have seen uncommited message hang around until a queue manager restart.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
huebi
PostPosted: Wed Jul 17, 2002 3:43 am    Post subject: Reply with quote

Novice

Joined: 01 Jul 2001
Posts: 16

Do you mean a "stop qmgr mode(restart)"?

cu
huebi
Back to top
View user's profile Send private message
mrlinux
PostPosted: Wed Jul 17, 2002 3:47 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Yes that is one way to get rid of it, but It doesnt hurt to leave it in there
unless you are monitoring the queue depth and generating some form of alert. This assumes this is a production queue manager.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
nimconsult
PostPosted: Wed Jul 17, 2002 4:31 am    Post subject: Reply with quote

Master

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

Mrlinux is right in saying that it is most certainly an uncomitted message hanging on the queue.

Normally if you look the number of open handles on the queue (in MQ Series explorer open the queue properties and see the "open input count" and "open output count" in the "statistics"), at least one should be greater than zero. This means that there is a pending handle on the queue. This is also the reason why you cannot clean the queue ("object in use").

The problem typically happens when applications do not close their object handles smoothly, either because they died abruptly, or they were badly coded (they do not issue a proper MQCLOSE and MQDISC).
_________________
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
bduncan
PostPosted: Wed Jul 17, 2002 6:54 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Yes, you should try to determine what application has the queue open (this must be the case, since you can't issue a clear command), and determine why that application has done a put or get under syncpoint and not committed...
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
oz1ccg
PostPosted: Wed Jul 17, 2002 2:11 pm    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Hi,

The reason why there are one displayed, and you can't get might be because it's expired.
Due to the implementation of expire function those messages are acturly first deleted when you issue a MQGET and COMMIT the work.

Just my $0.02
_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
bduncan
PostPosted: Wed Jul 17, 2002 2:32 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

I don't think the MQCMIT is necessary to clear out expired messages, because expired messages will get cleared out of a queue even when you are only doing a browse with your MQGET...
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
oz1ccg
PostPosted: Sat Jul 20, 2002 1:22 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Well,

I'm not quite shure that they are deleted when browsing, there must be a destructive MQGET... But it's the picture I'm seeing when browsing a empty queue with CURRDEPTH > 0.

I'll test it when my summerholliday is over and I get back to my QueueManagers..

Just my tiny bit
_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
bduncan
PostPosted: Sun Jul 21, 2002 6:06 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

As soon as I read "destructive get", it seemed to jog my memory, and now I realize that you're probably right on this one. The browse alone won't delete the expired messages, however, I'm still not sure if the commit is necessary... But I'll have to test that out at some point to confirm it...
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
mrlinux
PostPosted: Sun Jul 21, 2002 11:07 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

I dont think the destructive get is required, using Qpasa to browse queue removed expired messages
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
GMcCarthy
PostPosted: Fri Jul 26, 2002 5:29 am    Post subject: Reply with quote

Centurion

Joined: 06 Nov 2001
Posts: 113
Location: Melville NY

MQGET with browse or no browse will remove an expired message from a queue. I use PATROL to browse my expired messages and they get removed.
_________________
Regards,
Gina

IBM Certified MQSeries Specialist
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » CURDEPTH=1,but no messages are available
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.