PHP Processes
Posted by: knight_47
Posted on: 2007-03-20 21:57:00
Hello, I've been noticing very slow speeds on some of my sub-domains, and my PHP scripts, so I asked the DH support, and this is what they said:
In reply to:However, your user's PHP processes are continually being killed off by
our process watcher for bypassing the memory and CPU restrictions we have
in effect. We have these precautions in place to prevent users from
crashing the web server and adversely affecting other users.
Please try to keep your memory usage under 50MB to prevent this from
happening. You may want to check into implementing some type of PHP
caching mechanism or accelerator. Also, moving your domains to separate
web users will help isolate any issues.
I have an FTP user, with access to 2 domains, one, my main site, and the second subdomain, a wordpress blog. I have other FTP users, with access to other subdomains. But the main user is the one with the problems (says the support guy). My 2 sites that I have on this main user is a small site, with very little PHP, just a few php scripts, a phpbb forum with a few mods, and my other is a small wordpress blog. I don't understand how these 2 php created scripts can slow down my PHP so much. I had this setup with my old host, and never had any problems with having a forum and a blog setup on the same user. I don't really understand how a forum and a blog can kill my PHP usage, I don't even think the forum and the blog combined equal 50 MB's!
A little clarification would help, I just don't understand really what is going on, maybe I am mis-understanding. My old host, which was a free host, never had this problem!
So I've been looking at the wiki, and saw this, and thought maybe someone is trying to hack my site or slow it down by doing something:
http://wiki.dreamhost.com/index.php/Finding_Causes_of_Heavy_Usage
This is what it says in the wiki:
In reply to:Go to:
/home/user/logs/domain.com/http
where 'user' is your actual user and 'domain.com' is one of your domains - you'll want to do this for each of the domains under your user. Enter this command to see the IPs hitting the domain the most:
tail -10000 access.log| awk '{print $1}' | sort | uniq -c |sort -n
I've accessed the logs via FTP, but I don't know where to type in that command? Do I type it through my SSH program??
Thanks a lot!