LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2010, 09:59 AM   #1
izzytherocket
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: Disabled
RHEL 5 Screen Freeze


HI,
I am new to Linux and I am having to manage a RHEL 5 server. I am loving the server, except for in the last couple of days the server has completely froze and I am unable to log in at the console nor am I able to connect to it via SSH. Once I force a shut down and restart the server, everything is fine. Where could I look to see what happen to the server? Is there a tool I can use?

Your help would be greatly appreciated!

Izzy
 
Old 09-21-2010, 10:02 AM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
If it's installed you can do a quick analysis using the sar utility. I recommend starting with the following:

Code:
sar -r # Memory usage
sar -q # Load average
sar    # CPU usage
That can let you know if it's a CPU or Memory or neither problem.

Regards,

Alunduil
 
1 members found this post helpful.
Old 09-21-2010, 10:06 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
Check which process is consuming memory memory and CPU using following command.

By this you can find the CPU intensive application running on your server.

Quote:
# top
 
1 members found this post helpful.
Old 09-21-2010, 10:18 AM   #4
izzytherocket
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: Disabled
i don't have sar installed so I wasn't able to show me the results using that command. I was able to see the memory utilization using 'top', and it looks like my main application which is nsm (juniper network security manager) is using most of it.
the screen freezing, is that indication that I don't have enough memory on the server?

Thank you both for responding!

-Izzy
 
Old 09-21-2010, 10:31 AM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Not necessarily. It simply means that that application is currently using the most memory. What is your swap usage and what is the output of `free -m`? If your swap usage is low and you see lots of processes in the D state you may be thrashing which would indicate that you need more memory or to reduce memory usage on your server.

Regards,

Alunduil
 
1 members found this post helpful.
Old 09-21-2010, 10:34 AM   #6
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
If you cannot observe the screen. You can execute following command to send 4 interactions of top to a temporary file.

Code:
# top -b -n 4 > temp
Now observe the file temp and find our the intensive applications running.
 
1 members found this post helpful.
Old 09-21-2010, 10:47 AM   #7
izzytherocket
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: Disabled
results of 'free -m'
[root@linux log]# free -m
total used free shared buffers cached
Mem: 5692 3059 2632 0 59 1253
-/+ buffers/cache: 1745 3946
Swap: 5535 0 5535

so it looks like I do have enough free memory...

this is the output from running the 'top' command.

top - 16:48:09 up 55 min, 1 user, load average: 0.06, 0.41, 0.57
Tasks: 315 total, 1 running, 314 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.0%us, 0.4%sy, 0.0%ni, 96.2%id, 1.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 5828608k total, 3132780k used, 2695828k free, 61884k buffers
Swap: 5668856k total, 0k used, 5668856k free, 1283956k cached


I think I am going to let it run overnight and see what happens in the morning. I will update the thread if I find my Linux box sick! :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
screen freeze. decksmasher Linux - Newbie 3 08-26-2009 01:52 PM
screen and mouse freeze up unixshell101 Linux - Hardware 2 06-22-2008 09:42 PM
freeze up at log on screen tribeone Linux - Newbie 1 12-11-2006 08:56 AM
screen freeze thegreatgatsby Linux - Software 6 06-04-2004 02:44 PM
screen freeze moon48 Linux - Hardware 0 04-21-2004 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration