VirtualAlloc()失败:[0x00000008]没有足够的存储空间可用于处理此命令 [英] VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command

查看:75
本文介绍了VirtualAlloc()失败:[0x00000008]没有足够的存储空间可用于处理此命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经面对这个错误很长时间了,我的生产环境正在Windows 2008 R2企业平台上运行Apache 2.4和php7.

I have been facing this error quite a long time, My production environment is running Apache 2.4 and php7 on a windows 2008 R2 enterprise platform.

我的错误日志充满了这些行 VirtualAlloc()失败:[0x00000008]没有足够的存储空间可用于处理此命令.VirtualFree()失败:[0x000001e7]尝试访问无效的地址

My error log is full of these lines VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command. VirtualFree() failed: [0x000001e7] Attempt to access invalid address

一段时间后,它会导致500错误,后来我不得不重新启动服务器,它只能在一段时间内正常工作.

After some time it leads to a 500 error, and later I have to restart the server it works fine only for some time.

请帮助我解决这些问题,我尝试通过php和wordpress end更新内存,但仍然无济于事

Please help me in resolving these issues I have tried to update the memory from php and wordpress end but still no help

推荐答案

您的项目可能未在合适的体系结构上设置.

Your project may not be setup on the appropriate architecture.

您的PHP是32位吗?检查 PHP_INT_SIZE 常量以找出答案.

Is your PHP 32 bit? Check the PHP_INT_SIZE constant to find out.

print_r(PHP_INT_SIZE); # 4 == 32bit // 8 == 64bit

Windows Server 2008 R2是x64操作系统,因此x86版本的Apache +/- x86 PHP可能会限制您可能已在计算机上安装并尝试分配的内存.在x86版本上,您将不能分配超过2G的内存.

Windows Server 2008 R2 is an x64 operating system, so an x86 version of Apache +/- x86 PHP could be capping the memory you may have installed on your machine and are trying to allocate. You won't be able to allocate more than 2G on on x86 version.

这篇关于VirtualAlloc()失败:[0x00000008]没有足够的存储空间可用于处理此命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆