how to determine when my server is maxed out?
I have a website that's been running for about a year. We ironed out some of the last really annoying bugs this month and so we've seen steadily increasing traffic. I'm wondering if we might need to upgrade the server soon but don't really know how to tell.
How can I tell if my server is approaching its performance limits? I know a few commands that can give us a hint. There's 'w': Code:
[root@mybox html]# w Code:
[root@mybox html]# free |
w literally tells you nothing about server performance.
free is kind of worthless to. It only tells you or displays current memory and process usage. If you really want to test your server to see if it needs an upgrade, grab some benchmark tests for apache and possibly mysql. Also install some type of graphing tool (cacti.net or opennms.org) to record statistics over a period of days or weeks. This will give you details of peek performance times on the server and graph it's usage. I'd say if you just see a steady climb of services used, swap is used more often than it should, cpu usage and load is steady at higher than normal rates, then upgrade. Other than that, it's a web server and usually those can run on very minimal servers with no problems. It's not til you start getting some intensive requests that involve a database or what not that you may need to start thinking about upgrading. |
my site is *quite* database intensive and in some cases does some intense number crunching in php too.
the reason i was using 'w' is that it provides the 1/5/15 minute load average which does seem like a useful measurement of server load. and i don't really know what it means to say that 'swap is used more often than it should'. my only indicator of how much it is used so far is 'free' which is why i was considering that too. i also don't know what a 'normal' rates is for my cpu. i'll go check out those graphing tools but i am not sure that it will help me detect any bottlenecks. I already have a pretty good idea of traffic peaks from some webalizer graphs. i'd like to more specifically determine whether my server is overloaded at any time during the day - not just see graphs that only resolve detail by the hour. |
Quote:
Quote:
Quote:
I mentioned using these tools so you can determine when it's overloaded, how much it is and if it's enough to warrant a whole new server upgrade. Also I mentioned getting some benchmark tests to run against the server so that will give you an idea of when things start breaking, unresponsive, etc. Put the tools together and see if they ever reach that mark when running the benchmarks, etc. If it comes down to your server being more DB intensive, instead of piling all of your eggs in one basket, get an equally or more powerful server that will run the DB itself, then you can have both a WWW server and a Database server. The database being separate will keep take the load off the server so other applications not using the DB will remain normal, etc. |
All times are GMT -5. The time now is 11:01 AM. |