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 » queue depth alert

Post new topic  Reply to topic
 queue depth alert « View previous topic :: View next topic » 
Author Message
tricky_knight
PostPosted: Thu Jun 23, 2005 6:21 pm    Post subject: queue depth alert Reply with quote

Apprentice

Joined: 12 Mar 2005
Posts: 34

Does anyone know what to use to incorporate a queue that contstantly reads messages off a queue(MDB) but throws alerts if it ever gets backed up to a certain depth?

thank you
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 23, 2005 7:39 pm    Post subject: Reply with quote

Grand High Poobah

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

Can you be more specific ?

What do you mean with incorporate ???

I'd be going with a monitoring software and just raise the alert if the qdepth is greater than ....

Enjoy
Back to top
View user's profile Send private message Send e-mail
malammik
PostPosted: Wed Jun 29, 2005 6:27 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

This could be conveniently accomplished if jboss is your app server where for every mdb you can define generic interceptors that would check depth or preformat the message a certain way. Overall, this is not a good approach. You should have a separate app monitoring queue depths, enqueue/dequeue rates, etc.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
colincrist
PostPosted: Mon Jul 04, 2005 5:55 am    Post subject: Reply with quote

Novice

Joined: 24 Feb 2004
Posts: 22

http://www.hermesjms.com/ does this for WMQ, it has to use some non-JMS code to get the depth. The relevant code is here:

http://cvs.sourceforge.net/viewcvs.py/hermesjms/Hermes4/src/java/hermes/ext/mq/MQSeriesAdmin.java?view=markup

Look at getDepth().

There is a certain amount of dead code in the file as I was trying to map JMSMessage to MQMessage with no success but you should be able to see whats going on.

Colin.
Back to top
View user's profile Send private message
tricky_knight
PostPosted: Tue Jul 26, 2005 11:26 am    Post subject: Reply with quote

Apprentice

Joined: 12 Mar 2005
Posts: 34

im using was51. with mq 5.3

I understand how to write a java pgm to get the queuedepths, and I do not have the option of purchasing 3rd party software to monitor unfortunately.

I was thinking of just using a cron job to get the queuedepths. If the queuedepth is higher than X, I would like to use javaMail to send myself an email.

does this sound okay, or do you guys think I can accomlish this in a better way?

In windows, if i look at the MQ explorer in see a tab for events then a high depth..is there some way to have it work like a trigger monitor so it can call a program if the queue gets over 2000?

thanks
Back to top
View user's profile Send private message
JohnRodey
PostPosted: Tue Jul 26, 2005 11:34 am    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

Using Performance Events might help you out. Have an app monitor the system.admin.perfm.event for a queue depth high event then send you a mail or however you want to notify yourself.

You can also use triggering so that you don't have to have that process listen to the perfm.event queue, it will just be kicked off whenever that event is thrown.

Hopefully this is of some help.
Back to top
View user's profile Send private message
tricky_knight
PostPosted: Tue Jul 26, 2005 12:00 pm    Post subject: Reply with quote

Apprentice

Joined: 12 Mar 2005
Posts: 34

thanks alot John,

what manual has more information on using this ?
Back to top
View user's profile Send private message
JohnRodey
PostPosted: Wed Jul 27, 2005 4:31 am    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

The Monitoring WebSphere MQ manual talks about performance events.
The Application Programming Guide discusses Triggering.

There may be more manuals that look into these topics.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Jul 27, 2005 4:35 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

MO71 Supportpac may be an option too, because it can read event messages and react on it
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » queue depth alert
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.