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.
Context:
- 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.
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.
我知道还有另一个类似标题/错误的问题,但我认为这是一个不同的问题。
上下文: p>
- 在共享的Linux主机上运行wordpress 3.6.1,PHP 5.3.27,MySql 5.1.70, 1gb内存。 li>
- .htaccess:
suPHP_ConfigPath /home/[username]/public_html
- php.ini: memory_limit = 512M code>(我试过2048M,1024M,32M,......甚至-1)。 li>
- 我也试过(
ini_set(/ *上面的所有值,在WordPress索引中)。 php * /) code>) li>
- 我禁用了所有插件,我甚至一个一个地重新启用。 li>
- 我有大约300-400个并发连接/ 平均而言,网站上的用户。 li>
- 我没有SSH访问权限:/ li>
- 我无法在本地重现该错误(在Mac上运行' MAMP code>'和'
ab code>',我甚至将mem限制在本地降低到16m ..) li>
- 我知道这一切都不起作用 就是这样,在/ cpanel errorlog sc中 reen,我看到Error(在标题中)大约每分钟3-4次!
(12)无法分配内存:无法创建子进程:/ opt / suphp / sbin / suphp for /home/infomed/public_html/index.php
- I 已经被称为托管公司,directnic,他们无法帮助我,他们提出了我已经尝试过的解决方案,他们不支持SSH,所以这对我来说是一个死胡同。 我知道我可以切换主机,但我目前无法这样做。 li> ul>
请问,我要问的是要指出任何其他可能的原因 我可以调查,我的想法是什么......在一个简单的Wordpress博客中,什么可以使用超过1GB的内存,在主屏幕上禁用所有插件? 没有图像上传发生,只有2
wp_get_recent_posts code>,每个限制为6. p>
这里的代码 p> div>
I have about 300-400 concurrent connection/users on the site at the same time, on average. I DO NOT have SSH access :/
This is your problem.
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.
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 :)