我的服务器4G内存,双核,然后PHP的MEMORY_LIMIT=512M
每秒连接在15个左右,大概每分钟会出现5个左右Out of memory tried to allocate xxxx bytes的提示,很是郁闷网上说一是PHP的版本问题,查看了,我的PHP版本已经是5.2.9.1,不是那个出BUG的版本
还有就是MEMORY_LIMIT设置,之前是128,现在改成512M,还是出问题
请问还有什么终极解决方案吗?谢谢!

解决方案 »

  1.   

    在apache 的 httpd.conf 中有一个设置的参数,把它提高即可
      

  2.   

    大概是这个段落:
    [code=INIFile]
    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;max_execution_time = 60     ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 32M      ; Maximum amount of memory a script may consume (16MB)[/code]
      

  3.   

    还有,不是http.conf,是php的配置文件。
      

  4.   

    memory_limit 改成1024了,还是有这个问题
      

  5.   

    这是PHP代码有问题, 你是不是用了一些比较特别的库?