Date: Fri, 27 Aug 1999 04:55:42 +0900 From: chas <panda@skinnyhippo.com> To: freebsd-isp@freebsd.org Subject: Memory leak ? Inact memory never gets freed. Message-ID: <3.0.5.32.19990827045542.0094c9b0@mail.skinnyhippo.com> In-Reply-To: <3.0.5.32.19990826115729.009454d0@mail.skinnyhippo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
The 'free' memory on our machine has just gone down steadily over the past 24 hours as the following (in chronological order) shows : Yesterday 04:00 Hrs ~~~~~~~~~~~~~~~~~~~ I remember there was 470 MB free but don't have the 'top' output. 10:00 Hrs (moderate-high load) : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ last pid: 36826; load averages: 0.15, 0.31, 0.33 131 processes: 1 running, 130 sleeping CPU states: 0.4% user, 0.0% nice, 0.0% system, 0.4% interrupt, 99.2% idle Mem: 28M Active, 218M Inact, 22M Wired, 20M Cache, 8348K Buf, 214M Free Swap: 700M Total, 700M Free 16:00 Hrs (peak load) : ~~~~~~~~~~~~~~~~~~~~~~~ last pid: 98274; load averages: 0.84, 0.76, 0.67 142 processes: 1 running, 135 sleeping, 6 zombie CPU states: 48.2% user, 0.0% nice, 15.6% system, 0.0% interrupt, 36.2% idle Mem: 31M Active, 307M Inact, 23M Wired, 20M Cache, 8345K Buf, 122M Free Swap: 700M Total, 700M Free 03:45 Hrs (low traffic) : ~~~~~~~~~~~~~~~~~~~~~~~~~ last pid: 79900; load averages: 0.00, 0.01, 0.00 up 0+23:03:45 03:44:41 40 processes: 1 running, 39 sleeping CPU states: 0.4% user, 0.0% nice, 0.8% system, 0.0% interrupt, 98.8% idle Mem: 19M Active, 431M Inact, 22M Wired, 13M Cache, 8346K Buf, 16M Free Swap: 700M Total, 700M Free It should have freed up memory since there's virtually zero load on the server right now. 04:00 Hrs (restart) : ~~~~~~~~~~~~~~~~~~~~~ Expecting yet another heavy day tomorrow, I figured I'd better restart the machine to free up the memory again; having done that, memory is looking good again - 470 MB free once more. last pid: 380; load averages: 0.07, 0.04, 0.00 up 0+00:06:44 04:01:31 35 processes: 1 running, 34 sleeping CPU states: 0.4% user, 0.0% nice, 0.0% system, 0.0% interrupt, 99.6% idle Mem: 7540K Active, 7012K Inact, 17M Wired, 8339K Buf, 471M Free Swap: 700M Total, 700M Free The server is running apache and mysql; 1.5+ million hits/day (180,000 page views of which 100,000+ are dynamically generated using simple cgi scripts using python). If it is indeed a memory leak, how can I diagnose what it is due to ? and how can I cure it ? Thank you very much, chas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990827045542.0094c9b0>