IPB

Welcome Guest ( Log In | Register )




 
Reply to this topicStart new topic
> how do i know if my server is running good/fair/bad
Addy
post Jan 18 2006, 10:10 AM
Post #1


Noob
*

Group: Members
Posts: 9
Joined: 4-January 06
Member No.: 1257



Hello all,

I would like you know if there is a rule of thumb or a chart that could feel me how the server is coping.

I have a Bandwidth hourly monitor, and in shell using "TOP" i can see the load and the CPU usage and Memory usage.

What i would like to know is, for example:

the server is using 1Mbit of the connection constantly, the load fluctuates from 0.85 - 1.57 and the CPU is about 30% including Hyper-Threading

How would i know, maybe by a calculation if the server is coping well or not with the values given. I do not have a problem with the server, but i would like to know more on how to see if there is a problem with the capabilities of the server at anytime if a problem comes up, and if its the server doing to much or not.

I hope this is explained ok.

Thank you.
Go to the top of the page
 
+Quote Post
znx
post Jan 18 2006, 03:01 PM
Post #2


Linux-Noob GURU
********

Group: Members
Posts: 1220
Joined: 21-March 05
From: Aberdeen, Scotland
Member No.: 798



QUOTE (Addy @ Jan 18 2006, 09:10 AM) *
load fluctuates from 0.85 - 1.57

Average usage is 1, top of the line is 2, anything above and beyond 2 you can leave until it reaches 3/4, at which point you should investigate what is causing the high load (top and free will tell you).

QUOTE (Addy @ Jan 18 2006, 09:10 AM) *
CPU is about 30% including Hyper-Threading

Ok make sure you have built an SMP kernel because HT will look like 2 CPUs.

If it is a web server make sure to check stuff like total apache processes:
CODE
ps -ef | grep apache | wc -l

Compare it to MaxServers in your httpd.conf, if too high look into the status of the threads kill the bad ones and hopefully that will settle your server.

There is a lot of other process handling tips required but from the stats you are showing here, nothing untoward is going on.


--------------------
Bye
Go to the top of the page
 
+Quote Post
Addy
post Jan 18 2006, 06:17 PM
Post #3


Noob
*

Group: Members
Posts: 9
Joined: 4-January 06
Member No.: 1257



Cool, ok thank you znx

okay... so... is there a way to find out how it's running overall, I mean, i understand what you said, and its not a web server, but its a multi-funcation server.

But i know what the load should be under... but is there a way to know how the server is running, as i said like a calculation?

Load * connection / cpu

or something. I need to know what to look out for as a whole, not just the load.

I have a connection graph, and i have 10Mbit to play with, so i know if there is to much traffic or not, but how do i know if the server is coping with the traffic or not.

Is that where LOAD comes in, and CPU usage ? this is what im not 100% sure on.

thanks
Go to the top of the page
 
+Quote Post
znx
post Jan 20 2006, 10:16 PM
Post #4


Linux-Noob GURU
********

Group: Members
Posts: 1220
Joined: 21-March 05
From: Aberdeen, Scotland
Member No.: 798



QUOTE (Addy @ Jan 18 2006, 05:17 PM) *
But i know what the load should be under... but is there a way to know how the server is running, as i said like a calculation?


I haven't heard of any calculation with regards to working out the status of a box as a whole. Some obvious things to ensure are:

Server Checks
Connection - Can you connect (ping testing is the simplest)
CPU - What is the loadavg at anything > 3 investigate. (notice CPU% isn't required)
Disks - What is the space free on the system, if >90% look into getting more storage.
Processes - Simple, count the number of processes. Like I expect httpd, mysqld and ftpd to be running so a quick count of the number will tell me that all is well.
Logs - Grep the logs for information about errors that are occuring.

Service Checks
DNS - FTP - HTTP - IMAP / SMTP / POP3 - SSH - ETC!
- Run similar checks on these, for instance with nc you can test several of those, expect will do the others.

I know this maybe isn't what you are looking for but in short there is not an easy way to quantify all of those checks.


--------------------
Bye
Go to the top of the page
 
+Quote Post
z0ny
post Jan 20 2006, 10:35 PM
Post #5


German Beast
****

Group: Moderator
Posts: 187
Joined: 8-March 04
From: Germany
Member No.: 176



znx said everything, there is no such formula. In fact it wouldn't make any sense as every server is built different for its own purpose. You might wanna have a look at some monitoring software like Nagios and/or Cacti.


--------------------
Old C programmers never die. They're just cast into void.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th November 2008 - 12:36 AM