05-19-2008
Quote:
Originally Posted by
blakekr
I have a dedicated server running centos. It is "slightly managed" meaning I get a little help if I desperately need it; otherwise on my own.
Many of the programs on this server I've had to write myself (less than optimal code for sure). Others are commercial but some are renowned
resource hogs. I find lately that the load is well above 1.0 even during slow times, and I'd really like to find a way to start looking at server usage and hacking away at egregious wastes of resources. Obviously my trouble areas are apache and mysql.
Unfortunately the older I get the less technically adept I get at working from the command line without pretty graphs etc and seem to be figuring out next to nothing from things like ps -aux. If someone could recommend something simple I could start with to get a better picture of my server's usage, I would appreciate it. I'm sure all this has a technical name I could google further on but not sure what that would be.
Thanks!
I use a combination of top , ptree and sar to look at CPU hogs.
Top provides the pids of CPU intensive processes which works well with ptree to work out what they are doing.
Sar, google for ksar as a nice graphing tool, identifies times fo day to go investigate.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
1. If I want to check directory INPUT which files are not update within
5 minutes then move them to DATA1 directory
$ echo a > A.20060321.txt;echo b > B.20060321.txt;echo c > C.20060321.txt;
echo d > D.20060321.txt
$touch control_time; sleep 300
$find . ! -newer control_time -name "*.txt"... (1 Reply)
Discussion started by: sabercats
1 Replies
2. Gentoo
I am trying to write a small (and rather simple) script to gather some info about the system and piping it to dzen2
first, i want to explain some things.
I know i could have used conky, but my intention was to expand my knowledge of bash, pipes and redirections inside a script, and to have fun... (14 Replies)
Discussion started by: broli
14 Replies
3. UNIX for Dummies Questions & Answers
Hi There,
I'm trying to find a way to gather resource usage information (CPU, Memory & Virtual Memory) for a single process in a scripted way.
I've looked at vmstat & top but I can't figure out how to use them to get the information for a single process.
can any one help with this?
... (2 Replies)
Discussion started by: Murph
2 Replies
4. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
5. UNIX for Dummies Questions & Answers
Hi. First of all, would 4 or 5 websites, 1 ftp server (when downloading by someone or a few persons or one, concretize) and one mail server (not many emails, just to sound official and have a nice, spam-free email for myself). Websites with not that many, but some, later more visitors, quite... (0 Replies)
Discussion started by: newn
0 Replies
6. Linux
Hi,
I have just now started working with a company.
I am working on black screen and earlier I didn't knew whether it was unix or linux but today I searched google and found uname command and found that I am using Linux kernel :D .
As you all must've figured out that I am a real ultra newbie and... (5 Replies)
Discussion started by: csrohit
5 Replies
7. UNIX for Dummies Questions & Answers
Hi there,
I'm looking at learning about Red Hat, I am a beginner, can anyone point me in the direction of the best books/manuals to purchase? there are so many available at the moment.
Thanks in advance
PJ (4 Replies)
Discussion started by: Paul John
4 Replies
8. Solaris
Hello, I looking for becoming a Solaris system administrator. Background: I consider myself an entry-level Linux system administrator.
I don't know if I start my studies with Solaris 10 or 11. Maybe Solaris 11 because it's the new thing and the future, and Solaris 10 because since Solaris is... (2 Replies)
Discussion started by: albertoridolfi
2 Replies
9. Infrastructure Monitoring
I need to record min and max resources for RAM, & CPU for each command's execution in a shell script. Maybe going in details I would also be interested to capture plots with resource usage i.e.start to end of individual command with respect to time in a shell script.
Please share ideas. (0 Replies)
Discussion started by: vaibhavvsk
0 Replies
10. UNIX for Advanced & Expert Users
hello all,
on linux servers sometimes any of these resources (cpu,memory,disk) get a spike when you are not in front of the server.
the duration of these spikes might be 5 mins or even whole weekend.
my question is there a good way of capturing the events that caused these issues ( cpu or... (5 Replies)
Discussion started by: coolatt
5 Replies
LEARN ABOUT DEBIAN
nexuiz-server
NEXUIZ-SERVER(6) Games Manual NEXUIZ-SERVER(6)
NAME
nexuiz-server - Nexuiz dedicated server
SYNOPSIS
nexuiz-server [+set option value] [+exec config] ...
DESCRIPTION
nexuiz-server is the Nexuiz dedicated server for the Nexuiz game.
OPTIONS
Options passed to the Nexuiz dedicated server after a +set parameter
(Note that this is not a full list!)
fraglimit_override <value>
After how many frags the game should end. This setting will be applied to all following maps
maxplayers <value>
How many clients can simultaniously connect to this server
port <value>
The port on which this server should listen for clients. (The default port is 26000).
sv_public <bool>
1: Register this server on the master server; 0: Do not register this server on the master server
timelimit_override <minutes>
After how many minutes a game will end. This setting will be applied to all following maps
For more options passed to the Nexuiz binary by the +set and +exec parameter, visit http://www.alientrap.org/nexuiz/.
SEE ALSO
nexuiz(6)
/usr/share/doc/nexuiz-server
AUTHOR
The Nexuiz dedicated server was written by Alientrap.
This manual page was written by Bruno "Fuddl" Kleinert <fuddl@debian.org> for the Debian project (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
January 21, 2006 NEXUIZ-SERVER(6)