作曲家内存不足,无法解决 [英] composer runs out of memory, cannot work around

查看:94
本文介绍了作曲家内存不足,无法解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用composer(安装在cygwin中)为PHP命令行工具安装依赖项,但是无论我做什么,它都将耗尽内存.

I'm trying to install dependencies for a PHP command line tool with composer (installed in cygwin), but it runs out of memory no matter what I do.

我将 php.ini 中的 memory_limit 增加到了 2G

我尝试使用

我尝试与 php -d memory_limit = -1 composer.phar一起完全删除该限制...

它一直认为只有64M的RAM可用:致命错误:内存不足(已分配68681728)(试图分配2147215字节)

It keeps thinking it only has 64M of RAM available to it: Fatal error: Out of memory (allocated 68681728) (tried to allocate 2147215 bytes)

这台机器的RAM为24GB.

This machine as 24GB of RAM.

推荐答案

由于 matzeri ,64位cygwin似乎已经成功了.不过,奇怪的是,32位cygwin上的作曲家总是只有64MB可用.

Thanks to matzeri, the 64-bit cygwin seems to have done the trick. Oddly, though, composer on 32-bit cygwin always ran out at only 64MB.

这篇关于作曲家内存不足,无法解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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