Author |
Message
|
subani01491 |
Posted: Wed Mar 19, 2014 12:44 pm Post subject: "dspmq" command hang |
|
|
Novice
Joined: 19 Mar 2014 Posts: 12
|
MQ Gurus,
Anyone encountered with the situation where "dspmq" commands hang and does not give any output at all ?
i can see queue managers list on "mqs.ini" file. I can run other command with no issue only having problem with this command.
running MQ V 7.1.0.2 on RHEL 5.9.
Appreciate your
Thanks. |
|
Back to top |
|
 |
tczielke |
Posted: Wed Mar 19, 2014 5:49 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
We had that happen on Solaris 10. For our situation, it looked like it had to do with the NFS v3 file locking client on the Solaris 10 non-global zone hanging a file lock system call that dspmq was making.
The IBM MQ support has tools to help debug issues like this, if it is persistent and you can receate it.
One thing we did was use an strace command (or truss on Solaris) to see why the dspmq command was hanging. Here would be an example. strace writes its records to standard error (file descriptor 2).
strace -f dspmq qmgr 2>file.out
Tim Zielke
CICS/MQ Systems Programmer
Aon |
|
Back to top |
|
 |
pavan anugoju |
Posted: Thu Mar 20, 2014 4:51 am Post subject: |
|
|
Newbie
Joined: 10 Sep 2012 Posts: 2
|
Please check dspmq mq command is listed in "opt/mqm/bin "
this path is for both LINUX & Solaris..
Last edited by pavan anugoju on Thu Mar 20, 2014 7:45 am; edited 2 times in total |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 20, 2014 5:46 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
pavan anugoju wrote: |
Please check dspmq mq command is listed in "opt/mqm/bin "
this path is for both LINUX & Solaris.. |
Check for what? Then do what? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
pavan anugoju |
Posted: Thu Mar 20, 2014 7:58 am Post subject: |
|
|
Newbie
Joined: 10 Sep 2012 Posts: 2
|
1)In that path all commands will list .....
there may be chance that "dspmq" missed ..this will be one case.
2)other case is like ....server may be in hand or slow due to high cpu utilization .. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 20, 2014 8:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pavan anugoju wrote: |
1)In that path all commands will list .....
there may be chance that "dspmq" missed ..this will be one case. |
If the command was missing, you'd get an unknown command. The fact that the command runs but doesn't produce any output indicates it's been found.
pavan anugoju wrote: |
2)other case is like ....server may be in hand or slow due to high cpu utilization .. |
And if this is the case, why are the other commands running without a problem? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
subani01491 |
Posted: Thu Mar 20, 2014 9:22 am Post subject: |
|
|
Novice
Joined: 19 Mar 2014 Posts: 12
|
Thank you tczieke, strace commad is not giving me any clue.
Thank you Pavan for your input, but that's not the case. I have checked the option you referring to but all looks good.
bruce2359 and Vitor, you guys are the expert. Any suggestion ?
Thank you. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 20, 2014 9:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
subani01491 wrote: |
bruce2359 and Vitor, you guys are the expert. Any suggestion ? |
If other commands are working & you're getting nothing from the OS level, I'd review the mqs.ini. You say you can view it; check for file handles and other things preventing file access.
Also check the OS is configured according to recommendations, and you've set the kernal to have enough resources.
Finally, and just to dot the i, when you say
subani01491 wrote: |
I can run other command with no issue only having problem with this command |
you do mean that you can run other WMQ commands (rather than OS commands) without issue? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
subani01491 |
Posted: Thu Mar 20, 2014 10:29 am Post subject: |
|
|
Novice
Joined: 19 Mar 2014 Posts: 12
|
Thank you Vitor for your suggestion. I ran "mqconfig -v 7.1" command to check the kernel and fs setting, all looks good.
Yes, i can run other WMQ command without any issue.
Thanks. |
|
Back to top |
|
 |
Tibor |
Posted: Fri Mar 21, 2014 4:19 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
Have you already checked the common and queue manager related AMQERR01.LOG files? (in /var/mqm/errors/ and /var/mqm/qmgrs/<QMNAME>/errors/)
Perhaps any new FDC file?
Code: |
cd /var/mqm/errors/
ffstsummary |
|
|
Back to top |
|
 |
subani01491 |
Posted: Fri Mar 21, 2014 5:38 am Post subject: |
|
|
Novice
Joined: 19 Mar 2014 Posts: 12
|
Thank you everyone.
I left with no choice ( it not good practice), i need to reboot the server which resolve the issue. it looks like issue is related with OS. |
|
Back to top |
|
 |
|