-
Cannot allocate memory
I am finding that when I am having memory problems when Yahoo, 68.180.228.41 and BingBot, 207.46.13.77 come and visit my Vbulletin Forums.
Errors look like:
[Sat Oct 03 20:47:30 2015] [error] [client 68.180.228.41] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/teambuic/public_html/showroom/showphoto.php
CPU usage is also too high.
Any tips or suggestions?
Thanks
-
If some specific IP's are causing the memory errors, then it would be better to block them and see how things will run.
Also, I would suggest you to create a robots.txt file in your public_html folder and blocking all bots except of those you'd like to visit your website.
You should be able to see in stats what exact file is usually accessed by bots. Based on the stats, we can further add security measures into the site by adding some redirect rules to block request or password protecting that file.
-
We also highly recommend you to add crawl-delay directive to your robots.txt file, it will decrease bot's activity on your site.
It will be look like this:
User-agent: *
Crawl-delay: 5