
05-29-2010, 09:28 PM
|
|
Web Hosting Guru
|
|
Join Date: Apr 2006
Posts: 259
|
|
How to evaluate performance and determine when an upgrade is needed?
Hello,
I run a few different VPS servers with many sites on them. Sometimes I will put a really busy site on one but I never can really tell how its affecting the other sites and if in fact the VPS is performing sufficiently.
How can I determine if performance is sufficient? And how do I know when an upgrade is needed? I am running CentOS with Plesk 9.5.
It's difficult, because looking at bandwidth or number of visitors never really give an accurate measure of server performance... because if it's a DB heavy site for example, well then it cant handle much traffic, but if it's just HTML pages then it can handle a lot more.
So ultimately, how can I tell when I am in need of something with better performance?
|

05-29-2010, 09:49 PM
|
|
Junior Guru
|
|
Join Date: Jun 2009
Posts: 189
|
|
You can use software such as mrtg to measure the overall VPS performance.
__________________
Affordable, Reliable Hosting Solutions
Quality Host Premium Support
Powered By HOSTNEVERDIE Web Hosting
|

05-29-2010, 10:09 PM
|
|
Web Hosting Guru
|
|
Join Date: Apr 2006
Posts: 259
|
|
MRTG? I googled it got like 20 different applications... do you have a link?
|

05-29-2010, 11:25 PM
|
|
Junior Guru
|
|
Join Date: Oct 2009
Location: Florida
Posts: 176
|
|
All of the Google results lead to the same software - the first result is the main site.
If you want to see how a VPS is doing load-wise for the past 5/10/15 minutes, try running the command 'uptime'; if the load average remains consistently high, you probably need more CPU power, but there's many other factors.
'free -m' shows how much memory you're using out of your quota (in megabytes); the bottom-left values (after the row '+/- buffers/cache') are the ones you should be looking at.
There's also disk I/O to consider (especially on DB-heavy sites), but I'm not sure how to measure that.
The most important factor, however, is what the users think. If the users say the site loads fast, then it doesn't really make much of a difference what all the statistics tell you - they're the ones that matter.
If the site isn't fast enough, there may be ways of getting more performance out of your existing VPS. An example: if you're thrashing disk I/O but a lot of memory is still free (usually on OpenVZ), you may be able to set up caching.
|

05-30-2010, 12:25 AM
|
|
Web Hosting Guru
|
|
Join Date: Apr 2006
Posts: 259
|
|
Ok thanks for the information. I am running Plesk, so the server load as well as memory usage are both showing up for me. Also the VPS is running RAID 10 so I don't think disk IO would be the first thing to go?
Also, in regards to MRTG, I just want to verify that it's just for bandwidth usage? Because I think my hosting control panel shows me that already as well.
The problem for me is that my users are customers, not forum members or anything, so they are unlikely to tell me when the site is slow (it's not like I would contact Dell and let them know their site is slow...) so that's why I am trying to find a kind of logical way to figure out when it's time to get something with a bit more performance and more importantly also knowing which piece of the server is the one that requires the performance boost (ie. need more RAM, better IO, better CPU, etc.)
Any other suggestions? Really appreciate the advice so far. Cheers.
|

05-30-2010, 12:27 AM
|
|
Web Hosting Guru
|
|
Join Date: Apr 2006
Posts: 259
|
|
Also for the server loads.... what are acceptable numbers?
|

05-30-2010, 06:30 PM
|
|
Junior Guru
|
|
Join Date: Oct 2009
Location: Florida
Posts: 176
|
|
MRTG is a way of graphing all kinds of statistics as monitored over time; a good example is one of Ramhost's server status pages. Do note that this is using RRDTool (which is newer) instead of MRTG.
I'm not quite sure exactly how to set it up, so if you want to set up something like this, you would be better off searching or waiting for someone more knowledgeable in that area.
As for the load averages, the short answer is 'it varies.' Some people like an average around 1, while others say a decent average is the number of cores your VPS has access to. What are your load/RAM usage numbers?
Also, I just found out that the command that can show I/O statistics is named iostat.
|

05-30-2010, 06:36 PM
|
|
Community Liaison 2.0
|
|
Join Date: Feb 2005
Location: Australia
Posts: 5,148
|
|
Quote:
Originally Posted by smkied
Also the VPS is running RAID 10 so I don't think disk IO would be the first thing to go?
|
In my experience, no matter how good the disk array, I/O is nearly always the first thing to go.
vmstat is also good for monitoring i/o - eg. use "vmstat 2" to take a measurement every 2 seconds.
__________________
Chris
"Learn from the mistakes of others. You can never live long enough to make them all yourself." - Groucho Marx
|

05-30-2010, 07:04 PM
|
|
WHT Addict
|
|
Join Date: Jul 2009
Posts: 133
|
|
Use the command "top" and say what you see.
Generally the important numbers are the load averages in the top right, the %id and %wa. Also, how many CPU cores do you have access to will determine what load average is high or not.
Then use the command "free -m". Give us the number under total and the second number down under free (in the -/+ buffers/cache: row).
|

05-30-2010, 08:42 PM
|
|
Web Hosting Master
|
|
Join Date: Jun 2004
Posts: 970
|
|
You my friend need sysstat (sar) - http://pagesperso-orange.fr/sebastien.godard/
A VPS owner, logs into his VPS and sees a load spike, he sees Apache processes and MySQL processes on top, in his top… His server is topped out.. He wants to know, when this started, what is causing it, is it I/O bound, is it CPU bound, how long is it going on?
With Sysstat, Link to developer all this data is provided to you quickly, and in a very easy to read format. Debian, Suse, CentOS, and of course Fedora/Redhat distributions have Sysstat in the installation media, or you can use your automated package installer to install the “sysstat” package. Anyone that manages a server, must have sysstat and must learn to use it properly.
I have a small and short article and photos about this program, and how it helps VPS owners, here.
Sar really is your best friend.
Take care
__________________
EuroVPS VPS Hosting - Virtual Private Servers | Web Hosting | Dedicated Servers
Providing Reliable Plesk and cPanel Servers since 2004, now offering low priced Xen & VMware VPS in Amsterdam
UK +44.203.355.6681 / Amsterdam +31.208.202.120
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|