Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sorry I'm a newbie to this. I'm using a Linux server with Plesk. I just wanted to find out what is the best way to find out how much traffic there is to a website, when resources are running out, and when to get a new server after optimisation. This could be a broad question; I just wanted hints on where to look, and then I will take it from there.

share|improve this question
up vote 2 down vote accepted

I'd say start with top. That's going to tell you how much load your CPU is getting and how much RAM you're using; those are your two real bounds for "resources running out." You can use Google Analytics or a similar service to tell you what time of day you're getting the most visits, and you can watch top around then to get an idea of how your server is running at peak.

Tuning software configuration can get you some breathing room (this page has a good script for optimizing MySQL when it's time to do that) and judicious use of caching (e.g. memcached) can get you more if your traffic is really spiky, but if you're hitting resource bounds on a weekly basis it's time to buy up IMHO.

share|improve this answer
thanks what do you mean top, sorry – Solomon Saleh Oct 28 '10 at 23:53
When you're logged in to your server, give the command top. It shows a page of data on the current state of the server. man top will tell you more about the program. – pjmorse Oct 29 '10 at 0:07

I suggest dstat to monitor performance. I frequently use 'dstat -af' to show all of the various resources on the computer (CPU, disk and network I/O, context switches, interrupts, ...) in a continuous flow, pointing out what resource is bottlenecking, and when.

top / htop are focused on processes, which are at best only meta-related to performance, and CPU, which is only one resource that you can peg (and probably the one least often a bottleneck).

share|improve this answer
dstat is excellent. Can't believe I didn't know about it. – Martijn Heemels May 11 '11 at 21:01

Try iptraf. It will tell you 'live" traffic of your network interfaces.

share|improve this answer

I recommend htop. It's like top, but more graphical.

P.S.: For traffic try "iftop".

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.