LinuxQuestions.org
Visit Jeremy's Blog.
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 02-20-2013, 11:15 PM   #1
Rohit_4739
Member
 
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Rep: Reputation: 9
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,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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: 228

Original Poster
Rep: Reputation: 9
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,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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: 228

Original Poster
Rep: Reputation: 9
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: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://collectl.sourceforge.net/
 
Old 02-22-2013, 07:04 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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



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
Is there software to find network issue? Possible packets dropped or similar issue xmrkite Linux - Software 7 03-17-2015 06:33 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

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

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