1833796 Members
4764 Online
110063 Solutions
New Discussion

Re: Free Memory check

 
SOLVED
Go to solution
Rajesh.K
Advisor

Free Memory check

How to check the free memory and used memory in the HP-UX Server?

Thanx
K.Rajesh
9 REPLIES 9
G. Vrijhoeven
Honored Contributor

Re: Free Memory check

Hi,

Glance is the tool you can use.
vmstat and swapinfo -tam and top.

HTH,

Gideon
Mauro Gatti
Valued Contributor

Re: Free Memory check

I suppose without "glance plus" :-)
Try to use vmstat -n
This command are showing virtual memory statistic.

I hope this will help you.

RGDS


Mauro
Ubi maior, minor cessat!
Rajesh.K
Advisor

Re: Free Memory check

Hi,

From top output i am getting the following
Memory: 1264716K (541024K) real, 3137092K (1801408K) virtual, 128124K free Page
# 1/24

And from vmstat

iam getting

memory page
avm free re at pi po
450352 32201 17 0 0 0
KCS_1
Respected Contributor

Re: Free Memory check

Hi,

You will get what you want by these

by the glance that a purchased performance tool with typing 'M'

by commands that vmstat,swapinfo as well.

I usually use the glance for realtime monitoring.





Easy going at all.
Rajesh.K
Advisor

Re: Free Memory check

Memory: 1264716K (541024K) real, 3137092K (1801408K) virtual, 128124K free Page
# 1/24

And from vmstat

iam getting

memory page
avm free re at pi po
450352 32201 17 0 0 0

Because top shows 3.1GB free and vmstat show 32201 and how can i calculate & which one is correct.
Mauro Gatti
Valued Contributor

Re: Free Memory check

vmstat output is divided in three parts:
memory, page and faults.
The "memory" parts conteins:
avm: Active virtual memory. These are the pages that have been assigned to some process.
Free: free pages

RGDS


Mauro
Ubi maior, minor cessat!
Mauro Gatti
Valued Contributor
Solution

Re: Free Memory check

I forgot...
3.1 GB is equal to 3.1*1024=3174,4MB.
So I think vmstat an top are saying same thing. (Note the command ran at different time)

Bye
Ubi maior, minor cessat!
Rajesh.K
Advisor

Re: Free Memory check

Thanx Guys.

Regards,
K.Rajesh
I.Delic
Super Advisor

Re: Free Memory check

Beste Mauro,

You should try vmstat 2 10 .
check je pi and po size. these parameters should be nearly 0 . Otherwise you have swap problem.

Success

Idriz