LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2010, 05:55 AM   #1
samprabhu
LQ Newbie
 
Registered: Jul 2005
Location: madurai
Posts: 11

Rep: Reputation: 0
Red face server hung frequently


Hi,

Greetings,i am managing a desktop which has 256 MB ram only. Always the system load reaches 37 and above, processes occupies 250 MB it has only 3 or 4 MB free memory only. recently we are facing a problem , the desktop is hung frequently so we are doing hard reboot. kindly suggest us how to find out problem and steps. Thanks
 
Old 05-10-2010, 06:01 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What is the operating system? Does it have a swap partition?

If you do not know the OS, look for a file called /etc/*release* or /etc/*version* using
Code:
cd /etc
ls *release* *version*
and post the contents.

If you do not know about swap, post the output of
Code:
fdisk -l
cat /etc/fstab
 
Old 05-10-2010, 06:08 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
It would be pretty easy to find out which process is consuming all resources just by using the top command.

Code:
top -c
whilst in top,

press Shift M

Now processes are listed in order by memory consumed.

Copy and paste output here for analysis if you want..
 
Old 05-10-2010, 09:24 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by samprabhu View Post
Hi,

Greetings,i am managing a desktop which has 256 MB ram only. Always the system load reaches 37 and above, processes occupies 250 MB it has only 3 or 4 MB free memory only. recently we are facing a problem , the desktop is hung frequently so we are doing hard reboot. kindly suggest us how to find out problem and steps. Thanks
Ok. We will 'kindly suggest' you add more RAM. If you're using 250MB out of 256MB, you're obviously running out. Upgrade your machine or buy more RAM.
 
Old 05-10-2010, 10:27 AM   #5
samprabhu
LQ Newbie
 
Registered: Jul 2005
Location: madurai
Posts: 11

Original Poster
Rep: Reputation: 0
# top -c

top - 16:38:33 up 46 min, 1 user, load average: 1.14, 1.63, 2.38
Tasks: 61 total, 1 running, 60 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 0.3% sy, 0.0% ni, 51.9% id, 43.6% wa, 1.4% hi, 2.8% si
Mem: 244512k total, 242300k used, 2212k free, 88556k buffers
Swap: 491512k total, 144k used, 491368k free, 88504k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2751 gdm 16 0 20328 10m 6456 S 0.0 4.2 0:01.32 /usr/bin/gdmgreeter
2391 root 15 0 21800 9860 2460 S 0.0 4.0 0:01.37 /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
2006 root 18 0 12592 6668 2016 D 0.0 2.7 0:10.13 sendmail: running queue: /var/spool/mqueue
6709 miits 16 0 8048 5464 2136 S 0.0 2.2 0:01.47 /usr/local/bin/perl /home/miits/perl/touchpaper/touchpaper_gpl_new_mig.pl
2117 root 16 0 7520 4456 1600 S 0.0 1.8 0:00.36 hald
1999 root 16 0 8808 3100 2064 S 0.0 1.3 0:00.03 sendmail: accepting connections
2386 root 17 0 11596 2804 2276 S 0.0 1.1 0:00.01 /usr/bin/gdm-binary -nodaemon
6747 miits 16 0 8152 2692 1812 S 0.0 1.1 0:00.08 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
2007 smmsp 16 0 6908 2584 1780 S 0.0 1.1 0:00.00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
2266 root 16 0 11072 2328 1912 S 0.0 1.0 0:00.03 /usr/bin/gdm-binary -nodaemon
2752 root 16 0 7376 2208 1796 S 0.0 0.9 0:00.29 sshd: root@pts/1
1929 root 16 0 8788 2032 1608 S 0.0 0.8 0:00.00 cupsd
1965 root 16 0 5476 1652 1368 S 0.0 0.7 0:00.02 /usr/sbin/sshd
2054 xfs 16 0 4248 1604 872 S 0.0 0.7 0:00.02 xfs -droppriv -daemon
2754 root 15 0 6324 1448 1172 S 0.0 0.6 0:00.07 -bash
2092 dbus 16 0 12876 1296 1128 S 0.0 0.5 0:00.06 dbus-daemon-1 --system
6703 root 16 0 6024 1116 912 S 0.0 0.5 0:00.04 crond
2106 root 19 0 4580 1044 928 S 0.0 0.4 0:00.00 cups-config-daemon
1846 root 16 0 5036 1004 840 S 0.0 0.4 0:00.05 rpc.idmapd
9679 root 16 0 3860 932 756 R 0.0 0.4 0:00.11 top -c
2028 root 16 0 5464 848 732 S 0.0 0.3 0:00.00 crond
1980 root 15 0 3452 828 696 S 0.0 0.3 0:00.01 xinetd -stayalive -pidfile /var/run/xinetd.pid
6705 miits 18 0 3852 824 716 S 0.0 0.3 0:00.00 /bin/sh -c (/usr/local/bin/perl /home/miits/perl/touchpaper/touchpaper_gpl_new_mig.pl)
1907 root 17 0 3084 820 612 S 0.0 0.3 0:00.00 /usr/sbin/smartd
1813 rpcuser 17 0 1932 756 660 S 0.0 0.3 0:00.00 rpc.statd
2073 daemon 16 0 3000 648 564 S 0.0 0.3 0:00.00 /usr/sbin/atd
1793 rpc 15 0 2160 592 488 S 0.0 0.2 0:00.00 portmap
1767 root 16 0 3444 588 500 S 0.0 0.2 0:00.48 syslogd -m 0
1 root 16 0 3484 560 480 S 0.0 0.2 0:00.67 init [5]
1917 root 18 0 3400 556 484 S 0.0 0.2 0:00.00 /usr/sbin/acpid
2018 root 15 0 2536 544 472 S 0.0 0.2 0:00.00 gpm -m /dev/input/mice -t imps2
1771 root 15 0 2808 484 420 S 0.0 0.2 0:00.04 klogd -x
1782 root 16 0 1468 468 400 S 0.0 0.2 0:00.09 irqbalance
1036 root 7 -10 1952 456 376 S 0.0 0.2 0:00.00 udevd
2127 root 18 0 2920 408 352 S 0.0 0.2 0:00.00 /sbin/mingetty tty1
2134 root 18 0 1476 408 352 S 0.0 0.2 0:00.00 /sbin/mingetty tty2
2151 root 19 0 2916 408 352 S 0.0 0.2 0:00.00 /sbin/mingetty tty3
2262 root 19 0 3380 408 352 S 0.0 0.2 0:00.00 /sbin/mingetty tty4
 
Old 05-10-2010, 10:31 AM   #6
samprabhu
LQ Newbie
 
Registered: Jul 2005
Location: madurai
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for all..

i suggest the team to upgrade RAM
 
Old 05-10-2010, 11:34 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Clearly the system is short of RAM but given adequate paging that should not make it hang ...
 
  


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
RHEL installed DELL server is not getting out of network frequently............... rockhack Linux - Hardware 2 03-30-2010 12:52 AM
Have tried loading 4 versions of ubuntu to my server and get hung on the agp chipset. mickealdw Linux - Newbie 3 01-25-2010 12:10 PM
Have tried loading 4 versions of ubuntu to my server and get hung on the agp chipset. mickealdw Linux - Server 2 01-24-2010 12:57 PM
Dropped/hung TCP sessions on both NIC's, Compaq server with Debian doctorcisco Linux - Networking 1 01-16-2006 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:06 PM.

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