Startingphp_fpmeAccelerator: Couldnotallocate

Source: Internet
Author: User
Note: The 64-bit server encountered the same situation today. The error message for starting PHP is as follows: Startingphp_fpmeAccelerator: Couldnotallocate67108864bytes, response. lowertheamountofmemoryrequestorincreasethelimit

Note: the 64-bit server encountered the same situation today. the error message for Starting PHP is as follows: Starting php_fpm eAccelerator: cocould not allocate 67108864 bytes, the maximum size the kernel allows is 33554432 bytes. lower the amount of memory request or increase the limit in/p

Note: If the 64-bit host encounters the same situation today

The error message for starting PHP is as follows:

Starting php_fpm eAccelerator: cocould not allocate 67108864 bytes, the maximum size the kernel allows is 33554432 bytes. Lower the amount of memory request or increase the limit in/proc/sys/kernel/shmmax.
PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
Failed

The solution is as follows:

/Etc/sysctl. conf added:
Kernel. shmmax = 128000000

Sysctl-p

# Description
EAccelerator and eaccelerator. shm_size = "64" set in php. ini. explanation: the shared memory size (in MB) That eaccelerator can use, that is, 64 M
In Linux, the maximum memory usage of a single process is limited by the number (in bytes) set in/proc/sys/kernel/shmmax) /proc/sys/kernel/shmmax = 33554432 (32 M)


From http://lihuipeng.blog.51cto.com/3064864/774721

Original article address: Starting php_fpm eAccelerator: cocould not allocate. Thank you for sharing it with me.

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.