Invalid argument: cocould not call shmget Error Handling Method

Source: Internet
Author: User

When Apache fails to start, the following error is reported:

[Tue Mar 20 12:17:27 2012] [emerg] (22) invalid argument: cocould not call shmget

If the kernel sysvipc is not enabled, check that the configuration file is enabled.

It is also said that the shmmax parameter is deterrent and takes effect through sysctl-P. It is found that the parameter value is too large by using the method. After modification, the shmmax parameter can be started normally.

Description of kernel. shmmax values:
Unit: bytes. We recommend that you use half of the physical memory.
Taking 4G memory as an example: 4096/2*1024*1024 = 2147483648

Description of kernel. Shmall values:
Unit: page. 1 page = 4 K, set the value to the physical memory size
Taking 4G memory as an example: 4096*1024*1024/4000 = 1073742

Note: The preceding two values do not take effect if they are greater than the physical memory.

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.