LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 02-20-2013, 11:15 PM   #1
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 223

Rep: Reputation: 7
How to find root cause of Memory spiking issue


Hi Gurus,

I faced a issue yesterday where i found that the System Memory utilization went upto 99%. I was looking at the SAR reports to find these stats where it showed continuos Memory use between 95-99% for some 2-3 hours. I am actually trying to find out the exact root cause of the issue that casued the memory usage to spike.

I looked at /var/log/message to find if anything unusual happened and logged into it during those timings but couldn't find anything

So can you guys please suggest some more ways to troubleshoot, what others things i can look at investigate to really dig deep to catch the roots of the issue.

YOur ideas would be appreciated.
 
Old 02-20-2013, 11:25 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,778
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Invoke:
Code:
~$ top
See if any heavy process(s) is/are running. Also what does other log files say like message.1, message.2 etc.?

Also mention your system disto, it's version as well what applications it's running on.
 
Old 02-20-2013, 11:36 PM   #3
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 223

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by shivaa View Post
Invoke:
Code:
~$ top
See if any heavy process(s) is/are running. Also what does other log files say like message.1, message.2 etc.?

Also mention your system disto, it's version as well what applications it's running on.
I am on RHEL 5.6, well top won't work as i am looking for yesterday's information only, messages.1, message.2 are involved as current messages file is having all log entries for for last 6 days.
 
Old 02-21-2013, 12:16 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,778
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Alright. If you've SAR scripts enabled, then you can find high memory usage details and then check logs for corresponding date or time. So did you find anything unusual in logs for that time period?

Code:
~$ cd /var/log/sa
~$ sar -f sa#
And as I said above, what application(s) is/are running on this system?

Last edited by shivaa; 02-21-2013 at 12:23 AM. Reason: Code added
 
Old 02-21-2013, 12:40 AM   #5
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 223

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by shivaa View Post
Alright. If you've SAR scripts enabled, then you can find high memory usage details and then check logs for corresponding date or time. So did you find anything unusual in logs for that time period?

Code:
~$ cd /var/log/sa
~$ sar -f sa#
And as I said above, what application(s) is/are running on this system?
Yeah thats what i explained earlier. I did that checked with the SAR and it showed there was high RAM for some 2-3 hours but then i checked logs and it showed nothing unsual. There are some Java applicatiosn running, then TSM, HP Open View etc.

Last edited by Rohit_4739; 02-21-2013 at 01:22 AM.
 
Old 02-21-2013, 09:21 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
The problem is SAR is too coarse to be able to say "display the top 10 resource-hogging processes by name since 03:45 yesterday". Atop can do that but obviously that won't help you until you install and run it...
 
Old 02-22-2013, 06:22 AM   #7
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,726
Blog Entries: 3

Rep: Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628Reputation: 628
http://collectl.sourceforge.net/
 
Old 02-22-2013, 07:04 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Quote:
Originally Posted by Habitual View Post
http://collectl.sourceforge.net/
Well, yes and not quite. For Collectl to do what Atop does by default you should point to http://collectl.sourceforge.net/Process.html specifically. Given that you mentioned Collectl Mark probably will be here soon to explain ;-p

Last edited by unSpawn; 02-22-2013 at 07:05 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there software to find network issue? Possible packets dropped or similar issue xmrkite Linux - Software 6 02-22-2013 03:27 PM
Overall system impact when 1 cpu core is spiking when the rest are not binary_pearl Linux - General 5 06-26-2011 10:21 AM
Bandwidth spiking to 3mb/s Apexsys Linux - Server 1 06-29-2009 05:11 AM
Inactive memory issue, Freebsd (memory leak?) JasperB *BSD 7 08-12-2008 03:19 AM
hlds ping spiking eyespy Linux - Software 0 07-30-2008 01:35 PM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration