douluanji8752 2014-04-25 09:41
浏览 68

使用php将内存消耗到服务器上

In my application i often encounter with this error

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 52944 bytes) in C:\xampp\htdocs\demo\index.php on line 337

so far i am working on localhost and encountered with memory error what when i deployed my application on to server where many user perform same operation at a time.

i just want to ask how can i check what are the resources that is in the memory

and is on to the server each user get a separate memory are all user use 128 Mb of memory that i used in my localhost

  • 写回答

2条回答 默认 最新

  • dongliao6491 2014-04-25 09:56
    关注

    Locally turn error_reporting to E_ALL see if anything is being outputted, as you may have error messaging suppressed on your server but it still may be buffering this to a file or database table if you have this set up, this can exhaust memory and the speed of your app

    评论

报告相同问题?

悬赏问题

  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教