APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > Server is slow
Printer Friendly Version




News Group Posts

Sar


See Why is my system so slow? also.




Date: Thu, 08 Nov 2001 06:35:52 -0500
From: Tony Lawrence <tony@aplawrence.com>
Subject: Re: Server is slow

Edwin Ralphael wrote:
> 
> My customer Server had become very slow is there any solution?
> 
> The Configuration is:
> Compaq Proliant 1600
> P2 400
> 1GB Ram
> 18GB HDD
> running on SCO Openserver 5.0.5
> Network Speed is 100 MBps on a switch
> Application running is Oracle
> 
> but the users complaint that the server is really slow what can I do and
> what do I have to check?




You need to figure out WHY it is slow.

Your beginning tool for that is "sar"- enable it if it isn't already
enabled with 
/usr/lib/sa/sar_enable -y

Ignore the warning about rebooting- it is not necessary.

After a day or so, during which you are best occupied reading "man sar",
come back and run sar to see what is slowing your system down, and WHEN
it is slowing down.

sar -d will give you disk info
sar -r shows memory and swapping
just plain "sar" gives you cpu info.
sar -A | more gives you everything

If it is the cpu that is pegged busy, it *may* be a run away process
that is eating cpu cycles.  Do this:














for x in 1 2 3 4 5
do
ps -e | sort -r +2 | head -5
echo "==="
sleep 5
done

Look for a process who's time column has gone up by 4 or 5 seconds each
time- if you have something like that, that's your problem- you probably
need to kill it.

If sar -r shows low memory or (worse) swapping, go buy more memory (I
doubt it since you have 1GB already).   

If there are lots of memory pages available all day long, you may want 
to use some of that memory for disk buffers- see
SCo memory tuning


If your disk is  being hammered, move to a RAID configuration-

--
Tony Lawrence
SCO/Linux Support Tips, How-To's, Tests and more: 


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?




More Articles by



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

pavatar.jpg

This post tagged:

       - Performance
       - SCO_OSR5




Unix/Linux Consultants

Skills Tests

Guest Post Here