dongren1986 2017-02-08 15:32
浏览 95
已采纳

大型HTML显示空白页面(WSOD - 白屏死机) - PHP

I am having a two dimensional PHP array which I need to iterate and show the array data in HTML controls. Array is huge (about 2500 rows and 25 columns for each row), it renders around 10MB web page (on my local system). But this do not display any thing on server and shows a blank page (WSOD - White screen of death). I have to show all data at once (no paging) post_max_size and upload_max_filesize are set to 50M in php.ini/.htaccess, I have confirmed this using phpinfo max_execution_time is 600 Seconds (10 minutes)

I have used

error_reporting(E_ALL);
ini_set('display_errors', 1);

but no errors are displayed.

In apache Error log I am having Fatal Error Allowed memory size of 210763776 bytes exhausted, Its strange because it makes 200 MB? Why this is happening? Whats the solution?

What can be possible issue and solution?

Thanks in advance,

  • 写回答

1条回答 默认 最新

  • douhe4336 2017-02-08 17:44
    关注

    I had to increase memory_limit. It was set to 201 MB but still for this particular request it was not working. After I increased the memory_limit to 500MB the page started working properly. I am not sure though that why 201MB memory_limit is not enough for my request. Also the change of memory_limit was not sufficient in php.ini so I had to change this in Plesk panel.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀