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 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接