Sunday, January 19, 2014

How to check Memory size in HP-UX


In HP-UX you can use check physical memory allocated to server from command line as well as from SAM.I am going to describe here how to check memory on HP-UX from command line:
1.) Checking phyiscal memory in HP-UX using dmesg :
You can check memory in HP-UX using dmesg output. In HP-UX dmesg print HP-UX server messages and hardware information available to system during the boot time.Here is the command to check physical memory in HP-UX using dmesg output :
hp-uxdev# dmesg |grep Physical
Physical: 8388608 Kbytes, lockable: 5614168 Kbytes, available: 6461644 Kbytes
In dmesg output memory is listed as 8388608 Kbytes or 8 GB.Note: in grep use P(upper) case in word physical to get memory information or “grep –i physical”
2.) Checking HP-UX memory using print_manifest :
HP-UX provides very useful command called print_manifest,i am going to use print_manifest to check how much memory is available :
hp-uxdev# print_manifest |grep –i memory
Main Memory: 8192 MB
Print_manifest is very handy command I don’t even have to
3.) Checking HP-UX memory using cstm:
Check on your HP-UX server if you have cstm installed by running which cstm .If you have CSTM install on your HP-UX server , you can check Physical memory by running following command :
hp-uxdev# which cstm
hp-uxdev# /usr/sbin/cstm
hp-uxdev# print_manifest |grep -i memory
Basic Memory Description
Module Type: MEMORY
Total Configured Memory : 8192 MB
Page Size: 4096 Bytes
Memory interleaving is supported on this machine and is ON.
Memory Board Inventory
Extender
Slot Num Configured and Slot label for each DIMM (MB)
-------- --------------------------------------------
0a 2a 1a 3a 3b 1b 2b 0b
---- ---- ---- ---- ---- ---- ---- ----
EXT 0 1024 1024 1024 1024 1024 1024 1024 1024
------------------------------------------------------
System Total (MB): 8192
Memory Error Log Summary
The memory error log is empty.
Page Deallocation Table (PDT)
PDT Entries Used: 0
PDT Entries Free: 256
PDT Total Size: 256
-- Information Tool Log for MEMORY on path 192 --
Cstm gives detailed memory information and is useful if you experiencing memory errors


Determining your HP-UX version
To determine which HP-UX version is running on your system, use the following command:
 uname -r
Determining your Java version
To find your Java version, assuming the directory where it is installed is in your PATH variable, run the following at the command prompt:
 java -version
If your Java JDK or JRE is installed in a non-default location, or if you have multiple versions installed on your system, run the following command:
 <java-home>/bin/java -version
Alternately, if you installed your Java JDK or JRE using SD (swinstall), you can run the following command:

 /usr/sbin/swlist | grep -i java



No comments:

Post a Comment