LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-06-2007, 02:51 AM   #1
linuxvijith
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Linux server hangs, how to debug?


We have installed few linux servers , all having same hardware and same OS. The hardware is DL380 Proliant. We have RHEL with the following details
Kernel 2.6.9-34.0.2.ELsmp #1 SMP Fri Jun 30 10:32:04 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

It has 16GB RAM and 2 Dual core CPUs. We have the below problem with 2 servers. One server has Oracle and other server has a java process.

The server starts perfectly and after some period(some times 1 day, sometimes 3 days, sometimes 3hrs of server startup) of time, it just hangs. Hangs means that Im not able connect(telnet, sqlplus or anytype connections to the server). The exsiting open oracle connections does not return any data.

It would be nice if someone could tell me what areas I should be looking for and how to debug this issue?

NOte: I did some analysis and found that the memory is pegging at 99.5% most of the times and approx 10% of SWAP is used.
 
Old 10-07-2007, 06:19 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
It's normal for Linux to use most of the existing RAM for cache/buffers but 10% swap is a little bit on the high side. Have you run vmstat or iostat to see how much swapping is regularly going on?

That being said, a high swap load shouldn't cause a systewm crash unless you completely exhaust swap space. Have you noticed any commonality in the hangs? Same time of day? Heavy app/db traffic?

Can you hook up a keyboard/mouse to the machine and see if there's anything on screen (i.e. kernel panic or something similar)?
 
Old 10-07-2007, 06:33 PM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Try to record 'top' output. Is there any sharp rise in memory usage before hang? Looks like system suddnly starts to swap and just lacks machine time to do anything useful (swapping and waiting for swapped paged to load are probably non-interruptible and so effectively hang a box, while it is formally responsive (just really very slow).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux server Hangs satish Linux - Networking 3 09-01-2006 11:49 AM
How to debug without having debug section in an executable ? unclesam Linux - Newbie 0 02-02-2006 07:23 AM
Testing tools and to Debug on a Proxy Server orangefreak Linux - Security 1 10-09-2003 01:09 PM
linux server hangs Pranesh Linux - General 17 06-11-2003 06:06 AM

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

All times are GMT -5. The time now is 09:01 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