LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2012, 04:47 AM   #1
digitaldude
LQ Newbie
 
Registered: Sep 2010
Posts: 20

Rep: Reputation: 0
Exclamation Swap spike


Hello,

I have a centos 5.5 web app server which has its swap graph rise to 100% in a very short time interval... usually less than 30-40 seconds. This halts the machine and all I can do is reboot it. I have a periodical memory clean script that flushes the memory upon swap being over 20% which works well. But in cases when the swap rises sharply, the script doesn't get enough time to finish execution and hence server halts. What could be the solution to this?
 
Old 05-09-2012, 10:06 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
You need to know what progs you are running; one (at least) has a major memory leak, assuming you have a reasonable amt of swap(!).
Maybe the machine is just under-specced..
You need to run top and check the logs to see what's causing it.
 
Old 05-10-2012, 01:32 AM   #3
digitaldude
LQ Newbie
 
Registered: Sep 2010
Posts: 20

Original Poster
Rep: Reputation: 0
How do I detect memory leaks? top and htop don't show anything out of the ordinary. Its just once in a month maybe that the server instantly becomes un responsive and when it is rebooted, I can see a spike on the swap graph.
Its a 4GB machine with 8GB swap.
Is there any specific tool that could investigate the memory leaks issue?
 
  


Reply

Tags
centos55, httpd, memory, mysql, swap


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
Fruit/Spike chess engines madwac Linux - Games 2 04-03-2009 03:44 PM
Spike in load for dB server Swakoo Linux - General 1 09-07-2007 01:52 PM
Weird Spike On Mrtg Graphs debloxie Linux - Networking 3 06-06-2006 05:38 AM
KDE had CPU 'spike' every 15seconds! HELP! dezireduser Linux - General 13 11-26-2005 05:22 AM
Spike in outbound traffic- where to look? htmlcoder Linux - Security 3 03-19-2005 04:13 PM


All times are GMT -5. The time now is 01: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration