memory_limit = 1024M,仍然无法分配内存:无法创建子进程:/opt/suphp/sbin/suphp [英] memory_limit = 1024M, still, Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp

查看:285
本文介绍了memory_limit = 1024M,仍然无法分配内存:无法创建子进程:/opt/suphp/sbin/suphp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道还有另一个标题/错误类似的问题,但是我认为这是一个不同的问题.

I know that there is another question with a similar title/error, but i think this is a different problem.

上下文:

  • 在共享的Linux主机1gb内存上运行wordpress 3.6.1,PHP 5.3.27,MySql 5.1.70.
  • .htaccess:suPHP_ConfigPath /home/[username]/public_html
  • php.ini:memory_limit = 512M(我尝试了2048M,1024M,32M​​,.h甚至是-1)
  • 我也尝试过(ini_set(/* all the values above, in the WordPress index.php */))
  • 我禁用了所有插件,甚至重新启用了一个插件.
  • 我平均同时在该站点上拥有300-400个并发连接/用户.
  • 我没有SSH访问权限:/
  • 我无法在本地重现该错误(在运行'MAMP'和'ab'的Mac上,我甚至将本地内存限制降低到16m..)
  • 我知道所有方法都不起作用的方式是,在/cpanel错误日志屏幕中,我看到错误(在标题中)每分钟大约3-4次!!! (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/infomed/public_html/index.php
  • 我已经给托管公司Directnic打了电话,他们无法为我提供很多帮助,他们建议了我已经尝试过的解决方案,因为它们不支持SSH,所以这对我来说是死路一条.我知道我可以切换主机,但目前无法切换主机.
  • Running wordpress 3.6.1, PHP 5.3.27, MySql 5.1.70, on a shared Linux host, 1gb Memory.
  • .htaccess: suPHP_ConfigPath /home/[username]/public_html
  • php.ini: memory_limit = 512M (I tried 2048M, 1024M, 32M, .. heck even -1)
  • I also tried (ini_set(/* all the values above, in the WordPress index.php */))
  • I disabled ALL plugins, I even re-enabled one by one.
  • I have about 300-400 concurrent connection/users on the site at the same time, on average.
  • I DO NOT have SSH access :/
  • I cannot reproduce the bug locally (On Mac running 'MAMP' and 'ab', I even lower the mem limit locally to 16m.. )
  • the way I know that none of that worked is that, in the /cpanel errorlog screen, I see the Error (in the title) about 3-4 times per minute !!! (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/infomed/public_html/index.php
  • I already called the hosting company, directnic, and they weren't able to help me much, they suggested few of the solutions that I already tried, they don't support SSH, so that's a dead end for me. I know I can switch hosts, but I am not able to do so at the moment.

拜托,我要问的是指出我可以调查的任何其他潜在原因,我没有主意...在一个简单的Wordpress博客中,什么可以使用超过1gb的内存,所有插件均已禁用,主屏幕?没有图像上传,只有2个wp_get_recent_posts,每个图像的限制为6个.

Please, all I am asking is to point out any potential other causes that I can investigate, I am out of ideas ... what could use more than 1gb of memory, in a simple Wordpress blog, all plugins disabled, on the home screen? there is no images upload happening, just 2 wp_get_recent_posts each with a limit of 6.

在此处编码

推荐答案

我的网站上大约有300-400个并发连接/用户 同时,平均而言.我没有SSH访问权限:/

I have about 300-400 concurrent connection/users on the site at the same time, on average. I DO NOT have SSH access :/

这是您的问题.

共享托管公司通常不仅限制PHP内存,还可能达到I/O,并将内存限制限制在其他地方.您可能已经在虚拟机内,并且达到了该限制,等等.共享主机的价格很便宜,但是一旦您开始向它投掷体面的流量,它们通常会挂起您的帐户,或者您会开始遇到限制.

Shared hosting companies usually limit more than just PHP memory, you could be reaching i/o, and memory limits elsewhere. You could be inside a VM already and reaching that limit, etc. Shared hosting comes cheap but once you start throwing decent traffic at it they generally suspend your account or you start running up against limits.

我建议您将大量流量升级到VPS,专用服务器或迁移到基于云的托管.显然,您在流量水平上做得不错,因此请迅速离开:)

I'd advise upgrading with that much traffic to something like a VPS, dedicated server or move to cloud based hosting. You're obviously doing something right with the traffic levels so move off quickly :)

这篇关于memory_limit = 1024M,仍然无法分配内存:无法创建子进程:/opt/suphp/sbin/suphp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆