I have purchased VPS from one webhosting company. VPS comes with Virtuozzo power panel. It has 512MB gurranted RAM and dynamic RAM 2048 MB.
I have hosted single domain with 50MB database and wordpress installation.
But I am getting resource alerts. It goes sometime in yellow zone. I am not able to trace which thing is consuming more memory. My site has 3000 posts and 50,000 comments. is it because of that ? is it because of apache and mysql connections ? it is because of any plug-ins ?
how to trace that ? I have installed putty and typed "top" which is showing me following status at this time :
Well removing high load on a web application really depends on many things. Poor coding, lots of traffic, how you have sql setup will all play a role in performance.
I would check the php-cgi application.
Are you getting a lot of web traffic?
Run the below command and report with what you see:
I am using wordpress installation and using some standard plugins.
I have 400 visitors per hour and daily 1500 unique visitors. Database size is 50MB. but it has 1200 posts and 25,000 comments. I think it is creating number of connections when readers connects and stay long time on site for reading articles. I have not made any manual php files. everything is wordpress.
here is the output by running the following command :
Get with your hosting company and ask them to increase your kmemsize. You are over this resource. Many hosting companies advertise lots of ram, but limit the kmemsize so that you don't actually use much of it.
Well to be honest, you have what I would say large traffic for wordpress. Good job btw, I would love to have 400 unique visitors per hour.
To be fair, the hosting company is providing you with 512 megs of RAM with 2048 megs of burstable RAM. I think with your site's traffic, you should be on a larger VPS (Maybe even dedicated)
You may want to get another VPS or dedicated server and have the MYSQL reside there dedicated to MYSQL only. NO email, HTTP or anything.
Then I would modify your blog software to connect to that MYSQL in your configuration include document.
Other things can cause a system to have high CPU / MEMORY utilization such as DISK IO.
Hopefully you get some advertising off of your site or donations that can help offset your costs.
I hope that this helps a bit, but unfortnately my friend . . . your site may just be doing too good for that little VPS
thank you very much, I think you are right. It is very heavy load. And my site has literature articles, so people read for longer times and goes to previous articles. I also have archive which has 2400 articles and 30,000 more comments which I have made static but it is also on same VPS.
you will be surpirsed to know that, till last month I was running all this on shard hosting...!!