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 » shared memory segs and semaphores

Post new topic  Reply to topic
 shared memory segs and semaphores « View previous topic :: View next topic » 
Author Message
George Carey
PostPosted: Thu Jul 16, 2009 2:10 pm    Post subject: shared memory segs and semaphores Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Am running Solaris 10 zones with MQ version 6.0.2.2

Doing endmqm QMGRNAME

get Ended normally ...

However, now ... always seeing uncleared M and S objects for mqm user

from 'ipcs -a | grep mqm' command

Don't recall seeing these before ... is this a known problem on this platform and versions? ...
sm segs and semaphores should be cleared on a good 'Ended normally' shutdown should they not ??

Any likely cause/problem I may need to be looking into.

GTC
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
fjb_saper
PostPosted: Thu Jul 16, 2009 7:35 pm    Post subject: Reply with quote

Grand High Poobah

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

George, they've always been there.
MQ does not remove the shared memory immediately because it expects to be restarted real soon and would then reclaim that memory...

For what it is worth you can use /opt/mqm/bin/amqiclen to clear the shared memory owned by mqm.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
George Carey
PostPosted: Fri Jul 17, 2009 7:21 am    Post subject: shm and sems Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

I thought that they were totally cleaned up with and 'Ended Normally' ??!!

Don't know which platform or version I thought I saw that behavior ... but if not a big issue I won't sweat it at this point.

I have a tcl script that uses ipcs and ipcrm to clear it up ...

Leaving these around for a reboot is not conducive for administration of HA configuration ... even a clean managed failover for sfw upgrade purposes would/should then need to clean up the shm segs and semaphores after a controlled shutdown which is why I thought they would be cleared on an 'Ended normally'.

Rgrds
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
JosephGramig
PostPosted: Fri Jul 17, 2009 11:09 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Whoa there partner!

Like the book says, use amqiclen.
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/fa22720_.htm

Don't just go a blast'n stuff.
Back to top
View user's profile Send private message AIM Address
George Carey
PostPosted: Fri Jul 17, 2009 11:33 am    Post subject: dspmq Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Command is kind of worthless ... qmgr specific ... and with no qmgrs running a dspmq command leaves IPC objects ...

results of ipcs -a | grep mqm and then ipcrm them when no mq process is running should not be a problem !!!

And if there is, its IBM's.

rgrds
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
fjb_saper
PostPosted: Fri Jul 17, 2009 12:58 pm    Post subject: Re: dspmq Reply with quote

Grand High Poobah

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

George Carey wrote:
Command is kind of worthless ... qmgr specific ... and with no qmgrs running a dspmq command leaves IPC objects ...

results of ipcs -a | grep mqm and then ipcrm them when no mq process is running should not be a problem !!!

And if there is, its IBM's.

rgrds

Not quite. You can choose to make it qmgr specific or you can choose not to use the -m flag...
The advantage in using amqiclen is that it will not remove shared memory that it thinks is still being used by the qmgr.... (So if you don't use force you cannot remove the shared memory of a qmgr that is still running....).

Have faith
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » shared memory segs and semaphores
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.