dongshadu4498 2014-12-14 15:32
浏览 49
已采纳

允许的X字节内存大小耗尽(尝试分配X字节)

I saw this question, but the answer did not help me to solve the problem. So I'm sending a new question.

It drupal 6 site, that in this part it use the flot javascript to open files. It's work when I open few files but when I increase it, I get a blank page and in the error_log I get:

PHP Fatal error:  Allowed memory size of 524288000 bytes exhausted (tried to allocate 107678417 bytes) in /path/to/site/includes/common.inc on line 167, referer: http://server/spectra/list

I tried to increase the size of memory_limit in php.ini & .htaccess, I saw that the size changed with phpinfo() but when I load the page I get exactly the same error with the same number. I increase the size from 128M to 1024M and it still give the same error with the same number 524288000. Where this number is set? Thanks.

  • 写回答

2条回答 默认 最新

  • douben7260 2014-12-15 04:44
    关注

    I cannot tell you directly where to find the setting but I can tell you how.

    If you're using a *nix system, do

    grep -r memory_limit /path/to/drupal/installation 
    

    If you're on Windows, use a(n advanced) text editor to search in the path.

    I suspect you'll find the setting in either index.php or settings.php.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 vue3页面el-table页面数据过多
  • ¥100 vue3中融入gRPC-web
  • ¥15 kali环境运行volatility分析android内存文件,缺profile
  • ¥15 写uniapp时遇到的问题
  • ¥15 vs 2008 安装遇到问题
  • ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
  • ¥15 找一个网络防御专家,外包的
  • ¥100 能不能让两张不同的图片md5值一样,(有尝)
  • ¥15 informer代码训练自己的数据集,改参数怎么改
  • ¥15 请看一下,学校实验要求,我需要具体代码