LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-23-2013, 07:17 PM   #1
deranjer
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
Unhappy Memory Leak?


I have an issue with my home server locking up, when I check the monitor the memory is completely used. I can restart the server and slowly over about 5 days or so it goes all the way back to full (2Gig) and locks up again. I'm not sure how to figure out what is causing this.

I believe that if I kill the process I should get the memory back?

So I killed every process I don't think is essential, however still have the memory issue. Still using 1.7 Gigs with barely anything running... how do I figure out what is causing this?

Code:
root@DMZ-Server:~# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2028   708 ?        Ss   Jan19   0:02 init [2]
root         2  0.0  0.0      0     0 ?        S    Jan19   0:00 [kthreadd/105]
root         3  0.0  0.0      0     0 ?        S    Jan19   0:00 [khelper/105]
root         4  0.0  0.0      0     0 ?        S    Jan19   0:00 [rpciod/105/0]
root         5  0.0  0.0      0     0 ?        S    Jan19   0:00 [rpciod/105/1]
root         6  0.0  0.0      0     0 ?        S    Jan19   0:00 [nfsiod/105]
root        30  0.0  0.0    104    16 ?        S    Jan19   0:06 [init-logger]
daemon     257  0.0  0.0   1804   456 ?        Ss   Jan19   0:00 /sbin/portmap
statd      264  0.0  0.0   1932   700 ?        Ss   Jan19   0:00 /sbin/rpc.statd
root       427  0.0  0.0  34464  1320 ?        Sl   Jan19   0:00 /usr/sbin/rsyslogd -c4
daemon     437  0.0  0.0   2156   416 ?        Ss   Jan19   0:00 /usr/sbin/atd
root       475  0.0  0.0   4052   880 ?        Ss   Jan19   0:00 /usr/sbin/cron
105        480  0.0  0.0   2576   856 ?        Ss   Jan19   0:00 /usr/bin/dbus-daemon --system
avahi      486  0.0  0.0   2948  1444 ?        S    Jan19   0:01 avahi-daemon: running [DMZ-Server.local]
avahi      487  0.0  0.0   2836   432 ?        S    Jan19   0:00 avahi-daemon: chroot helper
root       754  0.0  0.0   2716   388 ?        Ss   Jan19   0:00 /usr/sbin/inetd
root       837  0.0  0.0   5772  1832 ?        Ss   Jan19   0:01 /usr/lib/postfix/master
root      1122  0.0  0.0   9176  1516 ?        Ss   Jan19   0:02 /usr/sbin/nmbd -D
root      1126  0.0  0.1  16556  2776 ?        Ss   Jan19   0:00 /usr/sbin/smbd -D
root      1133  0.0  0.0  16556  1268 ?        S    Jan19   0:00 /usr/sbin/smbd -D
root      1134  0.0  0.0   5488   932 ?        Ss   Jan19   0:00 /usr/sbin/sshd
root      1356  0.0  0.1  23504  2912 ?        Sl   Jan19   0:00 /usr/sbin/console-kit-daemon --no-daemon
root      3633  0.0  0.1  18156  3584 ?        S    17:38   0:00 /usr/sbin/smbd -D
postfix   9505  0.0  0.0   5788  1820 ?        S    20:01   0:00 pickup -l -t fifo -u -c
root      9559  0.0  0.1   8696  3156 ?        Ss   20:02   0:00 sshd: root@pts/0
root      9572  0.0  0.1   6668  3728 pts/0    Ss   20:02   0:00 -bash
postfix   9660  0.0  0.0   5832  1904 ?        S    20:02   0:00 qmgr -l -t fifo -u
root     10305  0.0  0.0   4112  1024 pts/0    R+   20:12   0:00 ps aux
root@DMZ-Server:~# free -m
             total       used       free     shared    buffers     cached
Mem:          2048       1686        361          0          0       1605
-/+ buffers/cache:         80       1967
Swap:            0          0          0
 
Old 01-23-2013, 07:37 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
I think its saying you have 2GB of RAM and no swap (you could use 'top' to get an alternate view).
You may be running too much SW for that much RAM.
 
Old 01-23-2013, 07:44 PM   #3
deranjer
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
I think its saying you have 2GB of RAM and no swap (you could use 'top' to get an alternate view).
You may be running too much SW for that much RAM.

Code:
root         1  0.0  0.0   2028   708 ?        Ss   Jan19   0:02 init [2]
root         2  0.0  0.0      0     0 ?        S    Jan19   0:00 [kthreadd/105]
root         3  0.0  0.0      0     0 ?        S    Jan19   0:00 [khelper/105]
root         4  0.0  0.0      0     0 ?        S    Jan19   0:00 [rpciod/105/0]
root         5  0.0  0.0      0     0 ?        S    Jan19   0:00 [rpciod/105/1]
root         6  0.0  0.0      0     0 ?        S    Jan19   0:00 [nfsiod/105]
root      1134  0.0  0.0   5488   932 ?        Ss   Jan19   0:00 /usr/sbin/sshd
root      9559  0.0  0.1   8696  3156 ?        Ss   20:02   0:00 sshd: root@pts/0
root      9572  0.0  0.1   6676  3772 pts/0    Ss   20:02   0:00 -bash
root     11643  0.0  0.0   4112  1024 pts/0    R+   20:32   0:00 ps aux
root@DMZ-Server:~# free -m
             total       used       free     shared    buffers     cached
Mem:          2048       1678        369          0          0       1605
-/+ buffers/cache:         72       1975
Swap:            0          0          0
Well I killed even more processes.. If the process isn't running won't it release the memory? Because I only have a couple of things running, AND when I start my server it runs for days before the memory gets critical..
 
  


Reply

Tags
memoryleak


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
[SOLVED] Memory leak: How risky not to free allocated memory. kaz2100 Linux - General 1 12-24-2008 12:00 AM
Inactive memory issue, Freebsd (memory leak?) JasperB *BSD 7 08-12-2008 03:19 AM
memory leak? vegas35 Linux - Newbie 2 11-03-2007 03:29 PM
memory leak... piotrekg Linux - Software 5 06-01-2007 10:58 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM


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