1752591 Members
3663 Online
108788 Solutions
New Discussion юеВ

Re: message Q

 
himacs
Super Advisor

message Q

Hi Admins,

Our apps team complains that message Q is full.When i checked using ipcs -qba,it shows 3 Qs are exists.Please tell me how i can remove these Qs?

Please help on this...
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: message Q

Shalom,

Its called the message queue

Increase kernel parms

http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
himacs
Super Advisor

Re: message Q

Hi All,

Actually i want to clear the message Qs from the server.
With ipcs -qba i got below output.
>>ipcs -qba
IPC status from /dev/kmem as of Fri Apr 3 01:37:59 2009
T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME
Message Queues:
q 0 0x3c1c1091 -Rrw--w--w- root root root root 0 0 16384 0 0 no-entry no-entry 2:52:29
q 1 0x3e1c1091 --rw-r--r-- root root root root 0 0 264 0 0 no-entry no-entry 2:52:29


i used ipcrm q 0 to clear message Q with id 0.

But it destoyed message Q system and data structures from the server .
Now ipcs -qba shows below output.
IPC status from /dev/kmem as of Fri Apr 3 01:41:56 2009
Message Queue facility not in system.

i wanted to remove message Qs from the system with certain ids,not whole message Q system.

Please help me on this..Quick response is highly appreciated.


regards
himacs
Dennis Handly
Acclaimed Contributor

Re: message Q

>I used ipcrm q 0 to clear message Q with id 0.

The syntax is: ipcrm -q 0
(Or was that a typo?)
Matti_Kurkela
Honored Contributor

Re: message Q

Your ipcrm command should only have destroyed the message queue 0, not disabled the entire message queue system. This might be a kernel bug.

What is your HP-UX version? Are you up to date with patches? What is the version of the latest installed Quality Pack?

MK
MK
Dennis Handly
Acclaimed Contributor

Re: message Q

>MK: not disabled the entire message queue system. This might be a kernel bug.

No, if you have no message queues, semaphores or memory segments, it says that facility not in system.
himacs
Super Advisor

Re: message Q

Hi admins,

Thanks for ur replies

My HP-UX version is B.11.23.I have updated patches in system.

Hi Dennis,
<
so no problem in my system?


regards
himacs
Dennis Handly
Acclaimed Contributor

Re: message Q

>so no problem in my system?

Well ipcs(1) is working. But removing those root message queues is going to break something.
himacs
Super Advisor

Re: message Q

Hi Admins,

Thanks to ur reply.
I have logged a call with HP.According to them,if no message queue exists in system it shows "Message Queue facility not in system".

But one more help i require from ur side..

Could you please tell me how message queue can be created?
Is this an automatic process or manual?

regards
himacs
Dennis Handly
Acclaimed Contributor

Re: message Q

>I have logged a call with HP. According to them, if no message queue exists in system it shows ...

(Yes, I already told you that. That's what the sources show.)

>Could you please tell me how message queue can be created?

Your program has to call the proper function, msgget(2).