IPCS Message Queue command

Source: Internet
Author: User

Modify the Message Queue size:

Root: User:/etc/sysctl. conf

Kernel. msgmnb = 4203520
# Kernel. msgmnb = 3520
Kernel. msgmni= 2878

Run sysctl-P after saving.,Then all message queues are rebuilt.

IPCS-Q: displays all message queues.

IPCS-QT: display the creation time of the message queue, the time when the last message is sent and received

Mas @ [172.16.9.38:/MAS] $ IPCS-QT

------ message queues send/Recv/change times --------
msqid owner send Recv change
65536 mas not set May 15 15:56:39
98305 mas May 15 15:59:22 May 15 15:59:22 May 15 15:56:39

IPCS-QP: displays the ID of the process that places messages in the message queue and retrieves messages from the message queue.

Mas @ [172.16.9.38:/MAS] $ IPCS-QP

------ Message queues PIDs --------
Msqid owner lspid lrpid
65536 mas 0 0
98305 mas 21941 21941

IPCS-Q-I msgid: displays the message information in the message queue structure:

Mas @ [172.16.9.38:/MAS] $ IPCS-Q-I 98305

Message Queue msqid = 98305
Uid = 512 gid = 500 cuid = 512 cgid = 500 mode = 0600
Cbytes = 0 qbytes = 4203520 qnum = 0 lspid = 21941 lrpid = 21941
Send_time = Thu May 15 16:00:19 2008
Rcv_time = Thu May 15 16:00:19 2008
Change_time = Thu May 15 15:56:39 2008

IPCS-Ql: displays the Message Queue restrictions:

Mas @ [172.16.9.38:/MAS] $ IPCS-QL

------ Messages: Limits --------
Max queues system wide = 2878 // maximum number of processes
Max size of message (bytes) = 8192 // maximum message length in the queue
Default Max size of queue (bytes) = 4203520

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.