Re: How to track Unixware Memory leak?

From: Tony Lawrence (pcunix_at_gmail.com)
Date: 08/25/04


Date: 25 Aug 2004 13:12:56 -0700

David wrote:
> Hi
>
> We're running a new Unixware 7.1.3 Server (Update pack 3), and it is
> running SCO MailServer in the Linux LPK. There's 1GB of RAM.
>
> It's using fetchmail to retrieve mail from our ISP's POP3 mailbox,
> running as a daemon with a 5minute poll interval.
>
> We've just gone live, but we've had a couple of problems where the
> Outlook PCs can't connect to the Mailserver. I wasn't on-site the
> first time it happened, but someone rebooted the server. I've been
> monitoring using rtpm, and I see that the %mem and %swp values are
> steadily increasing over time. After a reboot, they were at 17% and
9%
> respectively. Three days later they're at 71% and 46%. The second
> time the server crashed, they were at 73% and 95%, and after the POP3
> server failed to respond, the entire server fell over (running a 'ps'
> command gave an 'unable to allocate memeory' error).
>
> I'm fairly new to Unix, and am not sure how to go about finding what
> is eating the memory, and how to fix it.

I think you need to start looking BEFORE it gets this bad. I don't
know if you have one process that is leaking memory or lots of runaway
processes, and you need to find that out.

I'd start by writing a program that runs ps every 5-10 minutes or so
and looks for processes that are still around, and sees if they are
using more memory. At the same time, it's easy to see if more and more
processes are hanging about. Run that from boot on, logging what you
find. Then when it dies, you can see what was happening.

Some of the ideas at http://aplawrence.com/Unixart/slow.html may be
useful to you also.

--
Tony Lawrence


Relevant Pages

  • How to track Unixware Memory leak?
    ... running SCO MailServer in the Linux LPK. ... It's using fetchmail to retrieve mail from our ISP's POP3 mailbox, ... After a reboot, they were at 17% and 9% ... time the server crashed, they were at 73% and 95%, and after the POP3 ...
    (comp.unix.sco.misc)
  • Re: Random reboots with M2N-E (even worse now)
    ... error that happens during the reboot, ... I've known memory beeps to be 3 short ones, but this is on the Award ... When I couldn't find the 2.1V setting in the BIOS to adjust the memory ... you should get the same beep code. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: Gateway reset on reboot (was: xnptd insane after reboot) *SOLVED*
    ... TCP/IP with no physical memory available. ... The reboot would have scrubbed ... network came right back. ... Dave Stewart ...
    (AIX-L)
  • Re: Weird XP Start-Up Problem - Please help!
    ... but a while ago we built a number of PCs with gigabyte motherboards and I can't remember what memory but after XP was installed the following day a number of these PCs didn't boot, they blue screened but after that each PC started perfectly ran every test we could think of and nothing. ... Seems crazy and even telling the customer to hold the power button for a second longer when switching on they looked at me crazy but it worked.. ... CHECKING FILE SYSTEM ON D: ... reboot I get the standard "Sorry for the inconvenience" screen to ...
    (microsoft.public.windowsxp.general)
  • Re: Weird XP Start-Up Problem - Please help!
    ... Debi :-) ... problem with the memory starting up correctly. ... new memory in) to hold the power button for a second longer when switching ... reboot I get the standard "Sorry for the inconvenience" screen to ...
    (microsoft.public.windowsxp.general)