LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-15-2004, 08:27 PM   #1
matt80
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Rep: Reputation: 0
possible memory leak??


Can any guru's help me out here?? I think i might have a major memory leak.. My system boots up and only uses around 80MB of actual Memory during the bootup.. within 24 hours, I have nothing but 8 MB left a lot of times, and sometimes it hard locks my machine after it runs out of virtual mem as well.. Currently, I am running httpd, mysql, and sendmail (only one web site on this server) which uses vBulletin PHP scripts. I am running Apache 2.0.40 and 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686 i686 i386 GNU/Linux, and MySQL 3.23.58 My machine previously had no problems and ran months and months without using even half the amount of memory. but right now im having to reboot it once every other day to free up the mem and keep it form hard locking on me.. Anyone with any suggestions is greatly appreciated!

I've listed TOP information if it will help?
Code:
50 processes: 49 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
CPU1 states:  0.0% user,  0.1% system,  0.0% nice, 99.0% idle
Mem:   513468K av,  505840K used,    7628K free,       0K shrd,  184884K buff
Swap: 1044216K av,    4996K used, 1039220K free                  219220K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 8808 root      12   0  1032 1032   848 R     0.9  0.2   0:00 top
    1 root       8   0   104   84    52 S     0.0  0.0   0:06 init
    2 root       9   0     0    0     0 SW    0.0  0.0   0:00 keventd
    3 root      19  19     0    0     0 SWN   0.0  0.0   0:01 ksoftirqd_CPU0
    4 root      18  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU1
    5 root       9   0     0    0     0 SW    0.0  0.0   0:06 kswapd
    6 root       9   0     0    0     0 SW    0.0  0.0   0:02 kscand/DMA
    7 root       9   0     0    0     0 SW    0.0  0.0   5:11 kscand/Normal
    8 root       9   0     0    0     0 SW    0.0  0.0   0:00 kscand/HighMem
    9 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
   10 root       9   0     0    0     0 SW    0.0  0.0   0:01 kupdated
   11 root      -1 -20     0    0     0 SW<   0.0  0.0   0:00 mdrecoveryd
   17 root       9   0     0    0     0 SW    0.0  0.0   0:00 scsi_eh_0
   18 root       9   0     0    0     0 SW    0.0  0.0   0:00 scsi_eh_1
   21 root       9   0     0    0     0 SW    0.0  0.0   0:07 kjournald
   77 root       9   0     0    0     0 SW    0.0  0.0   0:00 khubd
  147 root       9   0     0    0     0 SW    0.0  0.0   0:00 kjournald
  452 root       9   0   368  356   288 S     0.0  0.0   0:00 syslogd
  456 root       9   0    56    4     0 S     0.0  0.0   0:00 klogd
  508 root       9   0   468  336   224 S     0.0  0.0   0:01 sshd
  521 root       8   0   536  484   396 S     0.0  0.0   0:00 xinetd
  533 root       9   0   152    4     0 S     0.0  0.0   0:00 safe_mysqld
  565 mysql      9   0 12156 9804  2332 S     0.0  1.9   0:25 mysqld
  582 root       9   0   992  512   368 S     0.0  0.0   0:07 sendmail
  591 smmsp      9   0   720  312   228 S     0.0  0.0   0:00 sendmail
  603 root       8   0  6644 5928  4112 S     0.0  1.1   0:58 httpd
  612 root       9   0   216  216   144 S     0.0  0.0   0:00 crond
  621 daemon     9   0   188  188   128 S     0.0  0.0   0:00 atd
  628 root       9   0    48   48     0 S     0.0  0.0   0:00 mingetty
  629 root       9   0    44   44     0 S     0.0  0.0   0:00 mingetty
  630 root       9   0    40   40     0 S     0.0  0.0   0:00 mingetty
  631 root       9   0    40   40     0 S     0.0  0.0   0:00 mingetty
  632 root       9   0    40   40     0 S     0.0  0.0   0:00 mingetty
  633 root       9   0    40   40     0 S     0.0  0.0   0:00 mingetty
 8754 root      10   0  1496 1496  1140 S     0.0  0.2   0:00 bash

Last edited by matt80; 06-15-2004 at 08:34 PM.
 
Old 06-16-2004, 12:45 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
go to www.sourceforge.net and download valgrind. It reports memory leaks. You run it in the context of another process.

The other choice is to google for known memory problems with the software + version you just started running.
 
Old 07-02-2004, 12:07 AM   #3
MBH
Member
 
Registered: Sep 2003
Location: Kuwait
Distribution: Slack 10.0 @ Kernel 2.4.27
Posts: 63

Rep: Reputation: 15
Hi!

I know this thread is OLD! but I had the same problem and I was sniffing around in LQ till I found you ^_^

Yesterday I was reading about Linux commands and stuff and came across the term "Nice", The lower the nice, the higher the priority of the process

If you're using KDE, hit ctrl+esc to view the process table, click on nice tab untill you get "MDRECOVERYD" on top, its nice=-20, so I thought, the hell with it .. and changed it to -10

* My total memory=512MB ram & 2GB swap
Before :: 12MB free ram
After :: 300MB free ram !!!!!!

Can someone tell me what's MDRECOVERYD doing "pigging" my memory ?!?!

* I just installed KDE 3.2.3 + kernel 2.4.26, this never happened before! my memory never got below 312MB

* I'm not new to LQ, I just never login ;p

Last edited by MBH; 07-02-2004 at 12:12 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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
memory leak ? os2 Programming 1 05-19-2005 02:45 PM
Memory Leak?! RoaCh Of DisCor Linux - General 9 05-07-2005 01:26 AM
memory leak mfitzpat Linux - Newbie 1 09-24-2004 03:58 PM
memory leak mdk Mandriva 1 09-17-2004 11:54 AM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 10:39 AM


All times are GMT -5. The time now is 04:02 AM.

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