Author |
Message
|
bkiran2020 |
Posted: Thu Jul 11, 2013 9:42 am Post subject: MQ startup script |
|
|
 Master
Joined: 20 Jan 2011 Posts: 243 Location: US
|
Iam working on the queue manager startup script.
In the script I want to check the shared memory andsemaphores beofre starting qmgr.
that could done by ipcs -a| grep mqm
My doubt is regarding the cleaning the shared memory andsemaphores which option should we use:
a)ipcrm for mqm id
b)AMQICLEN
 |
|
Back to top |
|
 |
markt |
Posted: Thu Jul 11, 2013 10:28 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
|
Back to top |
|
 |
bkiran2020 |
Posted: Thu Jul 11, 2013 2:47 pm Post subject: |
|
|
 Master
Joined: 20 Jan 2011 Posts: 243 Location: US
|
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Jul 11, 2013 3:41 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
You might "want" to check, but there is no "need". Thousands of MQ start up scripts work reliably without any concern about MQ's IPC resources.
The only situation I can think of where MQ might not start is that it was previously running on the system and someone went through randomly issuing "kill -9" of MQ processes, and the queue manager IPCs ended up in an inconsistent state, and some other non-MQ process started under a PID that was previously used by MQ. In this case, you want the startup to fail, and be informed about it, so that you can perform a proper investigation.
I remember all sorts of IPC related startup issues in early versions of MQ (5.2 and older), but recent versions have been very solid. _________________ Glenn |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 11, 2013 8:34 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You may want to clean you ipc memory when applying fix packs or APAR's (they usually tell you you need to run some other utility as root to clean the global program cache as well...)
However in normal operations (stop, restart) you should not touch IPC. Some stuff stays allocated for some time after shutdown expecting a quick restart and will speed up the restart this way.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
JosephGramig |
Posted: Tue Jul 16, 2013 12:25 pm Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
|
Back to top |
|
 |
Tibor |
Posted: Wed Jul 17, 2013 12:00 am Post subject: Re: MQ startup script |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
bkiran2020 wrote: |
My doubt is regarding the cleaning the shared memory and semaphores ... |
It was a common problem in version 5, but since then it has luckily vanished. |
|
Back to top |
|
 |
|