[eAccelerator] Can not create shared memory 共享内存不足
2013-04-10 18:13
393 查看
Starting php_fpm eAccelerator: Could 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
#说明
php.ini中设置的eAccelerator,eaccelerator.shm_size=”64″,解释:eaccelerator可使用的共享内存大小(单位为MB),即64M
在Linux下,单个进程的最大内存使用量受/proc/sys/kernel/shmmax中设置的数字限制(单位为字节) /proc/sys/kernel/shmmax = 33554432 (32M)
临时更改该值:
echo 128000000 > /proc/sys/kernel/shmmax
或者
vi /etc/sysctl.conf
kernel.shmmax = 128000000
syscatl -p
area in Unknown on line 0 PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0 failed
#说明
php.ini中设置的eAccelerator,eaccelerator.shm_size=”64″,解释:eaccelerator可使用的共享内存大小(单位为MB),即64M
在Linux下,单个进程的最大内存使用量受/proc/sys/kernel/shmmax中设置的数字限制(单位为字节) /proc/sys/kernel/shmmax = 33554432 (32M)
临时更改该值:
echo 128000000 > /proc/sys/kernel/shmmax
或者
vi /etc/sysctl.conf
kernel.shmmax = 128000000
syscatl -p
相关文章推荐
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- Anonymous Shared Memory android 匿名共享内存
- ORA-27125: unable to create shared memory segment Linux-x86_64 Error: 1: Operation not permitted
- ORA-27125: unable to create shared memory segment Linux-x86_64 Error: 1: Operation not per
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- MemoryHeapBase内存分配、Ashmem_create_Region mmap申请共享内存
- QSharedMemory 共享内存 进程间通信
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- 多线程进程间通讯共享内存(Shared Memory with IPC with threads)
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- Oracle 安装报SGA size can not be greater than maximum shared memory segment size(0)
- Oracle 安装报SGA size can not be greater than maximum shared memory segment size(0)以及内核参数讲解
- Qt中共享内存的实现--- QSharedMemory
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- 共享内存与消息传递 Shared memory versus message passing
- linux下由于内存不足造成的 virtual memory exhausted: Cannot allocate memory, qt **.o文件 file not found
- QtSharedMemory——Qt程序之间的内存共享机制
- QT 共享内存 QSharedMemory 和 内存映射