LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2012, 03: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, 09:06 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 12: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



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

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

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