Re: How to track Unixware Memory leak?
From: Tony Lawrence (pcunix_at_gmail.com)
Date: 08/25/04
- Next message: Jean-Pierre Radley: "Re: I have an accounting app that needs to send Text Email"
- Previous message: Jean-Pierre Radley: "Re: I have an accounting app that needs to send Text Email"
- In reply to: David: "How to track Unixware Memory leak?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jean-Pierre Radley: "Re: I have an accounting app that needs to send Text Email"
- Previous message: Jean-Pierre Radley: "Re: I have an accounting app that needs to send Text Email"
- In reply to: David: "How to track Unixware Memory leak?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|