cancel
Showing results for 
Search instead for 
Did you mean: 

memory

 
SOLVED
Go to solution
Highlighted
Super Advisor

memory

Dear All

how to monitor my memory ,and how to see the process the take the maximum resource of my memory.

BR,
fadia.marei
8 REPLIES 8
Highlighted
Exalted Contributor
Solution

Re: memory

Attaching some sar scripts that might be useful.

They have some hp-ux statments that need to be removed.

sar comes with the os.

Also look at gtop, which runs in gnome X.

lsof can look at a single process and it utually comes with the OS.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Esteemed Contributor

Re: memory

Hi Fadia,

if you are running text mode top is your real time monitor. You may sort the top processes by memory using M command.

Hiting h you will have the help screen.

regards,
xyko
Highlighted
Respected Contributor

Re: memory

Hi Fadia Almarei ,

vmstat/free/top utility are very useful for monitor memory. Press 'M' when top running , maximum memory process will be appeared.


NiCK
just for fun
Regular Advisor

Re: memory

If you want a nice GUI, and are on RedHat, then use: -
# ksysguard &

Sime.
You never had this problem with a pencil and paper!
Highlighted
Respected Contributor

Re: memory

there is port for glance tool for linux it will show memory usage also all other staf kernel network and so on
Highlighted
Trusted Contributor

Re: memory

There are some times when you don't have really good tools available to you and you have to rely on the just a ps command:

The following will help you track down memory hogs on a system if for some reason you down have top of if you've run out of forks and you need to exec a command, etc, etc.

This is a ps command with user defined outputs, I've just put memory size as the first column, then the process ID, the parent ID, the amount of CPU its using, the command name and its arguments. The w wraps the output. Then just sort.

ps -ewo "size pid ppid %cpu command args"|sort -n

You can redefine the output in pretty much any way you need depending on what you are tracking down.

--Dave
Clothes make the man, Naked people have little to no effect on society
Highlighted
Super Advisor

Re: memory

thanks to all,but i want to ask a question ,i have a radius service running on redhat9 Linux server and also an oracle database my radius writes it's data on the oracle database ,i have 1GB memory on this server , i see there is shortage in memory the free i have is almost 10MB ,is this shortage of memory may affect the writing process from the radius service on the oracle, if this is the case how to solve it .
fadia.marei
Highlighted
Esteemed Contributor

Re: memory

Hi Fadia,

one important thing about Oracle performance is the configuration of SGA. You must verify if your SGA is enougth, mostly the buffer cache parameter, to permit about 90 to 95 percent of readings in memory (read hits). You may use statspack to see if it's ok.

Here you have a good document to guide you :
http://www.puschitz.com/TuningLinuxForOracle.shtml

regards,
Xyko