Operating System - HP-UX
1748070 Members
5362 Online
108758 Solutions
New Discussion юеВ

Re: System Check in hang condition.

 
SOLVED
Go to solution
GauravS
Occasional Advisor

System Check in hang condition.

Dear All
My HP-UX server is responding very slow and sometimes it has got hanged.I have checked the processes.Everything is showing fine there.What is the parameter that I have to check in case of hanging position.Is there any log files that I have to check in this condition? Is there any command from that I can come to know performance of my system?
Thanks
Gaurav Sharma
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: System Check in hang condition.

Define "hanged."

When the system "hangs" can you still log in? If you are already logged in, can you execute any commands?

If you can run commands, things like 'top' and 'sar' are useful to see what is happening.

'top' or 'glance' would be my first step to see what exactly is running and how much CPU it is using.

unixguy_1
Regular Advisor
Solution

Re: System Check in hang condition.

Hi GauravS,

In a Hanging time we have to check teh CPU and Memorey Utilization is high or not and check the is there any pageout is there or not.

Use the glance command to check the memory utilization,CPU utlization and cheked is there any pageout is there or not.

and then use the top command to identify, which process is taking much time.Here you can easily find out.

#/usr/bin/top

after that you grep that particular process.
use the below command.

# /usr/bin/ps -aef | grep oracle

above mentioned command will show sub process details of that Oracle process.

#/usr/sbin/swapinfo -atm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 5607 2585 68% 0 - 1 /dev/vg00/lvol2
dev 34496 5616 28880 16% 0 - 1 /dev/vg01/lvol1
reserve - 17304 -17304
memory 33069 11564 21505 35%
total 75757 40091 35666 53% - 0 -

#/usr/sbin/vmstat

above mnetioned two commnds will show the memeory utilization is high or not.

to kill the process teh system will be coming to a normal position.

Regards,
Unixguy.




Suraj K Sankari
Honored Contributor

Re: System Check in hang condition.

Hi,
There are lot of things to check when your system is in hang state.
1.Are you able to login when system was hang?
2.Did you check the syslog.log for any error?
3.Are you able to run any command?
4.Using top, sar and glance you can check which process are running.
5.Are you able to run ls or bdf command ?
Suraj
Ganesan R
Honored Contributor

Re: System Check in hang condition.

Hi Gaurav,

If the server is responding slow, it means it is running sort of some resources. You have to check the resource utilisation for cpu/memory/swap/disk i/o etc.

If you are not able to access during that period, take the system dump and analyse it to find what went wrong. You can ask HP help to analyse the dump files.
Best wishes,

Ganesh.
Prashanth Waugh
Esteemed Contributor

Re: System Check in hang condition.

Hi Gaurav,

if r u giving the remote support. some times there might be network issue. U can crossverify with network team.

Regards
prashant
For success, attitude is equally as important as ability
SoorajCleris
Honored Contributor

Re: System Check in hang condition.

It seems like Gaurav is hanged now !!!!

:)
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
GauravS
Occasional Advisor

Re: System Check in hang condition.

Thanks Guys for your valuable answers.I am not hanging yaar my server is hanging.
GauravS
Occasional Advisor

Re: System Check in hang condition.

Well now my server is behaving quiet well now and I really thankful to Unixguy and all of you guys.